FileDocCategorySizeDatePackage
UninstallAppDone.javaAPI DocAndroid 1.5 API2509Wed May 06 22:42:46 BST 2009com.android.packageinstaller

UninstallAppDone

public class UninstallAppDone extends android.app.Activity implements View.OnClickListener
This activity corresponds to a uninstall status screen that is displayed when an application gets uninstalled. The screen contains a single ok button at the bottom.

Fields Summary
private final String
TAG
private boolean
localLOGV
private android.content.pm.ApplicationInfo
mAppInfo
private android.widget.Button
mOkButton
private boolean
uninstallFlag
Constructors Summary
Methods Summary
public voidinitView()

        String unknown =  getString(R.string.unknown);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.uninstall_done);
        TextView centerText = (TextView)findViewById(R.id.center_text);
        if(uninstallFlag) {
            centerText.setText(getString(R.string.uninstall_done));
        } else {
            centerText.setText(R.string.uninstall_failed);
        }
        mOkButton = (Button)findViewById(R.id.ok_button);
        mOkButton.setOnClickListener(this);
    
public voidonClick(android.view.View v)

        if(v == mOkButton) {
            Log.i(TAG, "Finished installing "+mAppInfo);
            finish();
        }
    
public voidonCreate(android.os.Bundle icicle)

    
    
        
        super.onCreate(icicle);
        Intent intent = getIntent();
        mAppInfo = intent.getParcelableExtra(PackageUtil.INTENT_ATTR_APPLICATION_INFO);
        //TODO set installFlag
        uninstallFlag = intent.getBooleanExtra(PackageUtil.INTENT_ATTR_INSTALL_STATUS, true);
        initView();