FileDocCategorySizeDatePackage
ProcessInfo.javaAPI DocAndroid 1.5 API1914Wed May 06 22:41:08 BST 2009com.android.development

ProcessInfo

public class ProcessInfo extends android.app.Activity

Fields Summary
android.content.pm.PackageManager
mPm
Constructors Summary
Methods Summary
protected voidonCreate(android.os.Bundle icicle)

        super.onCreate(icicle);
        Intent intent = getIntent();
        String processName = intent.getStringExtra("processName");
        String pkgList[] = intent.getStringArrayExtra("packageList");
        mPm = getPackageManager();
        setContentView(R.layout.process_info);
       TextView processNameView = (TextView) findViewById(R.id.process_name);
       LinearLayout pkgListView = (LinearLayout) findViewById(R.id.package_list);
       if(processName != null) {
           processNameView.setText(processName);
       }
       if(pkgList != null) {
           for(String pkg : pkgList) {
               TextView pkgView = new TextView(this);
               pkgView.setText(pkg);
               pkgListView.addView(pkgView);
           }
       }
    
protected voidonResume()

        super.onResume();
    
protected voidonStop()

        super.onStop();