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

RunningProcesses

public class RunningProcesses extends android.app.ListActivity

Fields Summary
android.content.pm.PackageManager
mPm
private final Comparator
sDisplayNameComparator
private AppListAdapter
mAdapter
Constructors Summary
Methods Summary
protected voidonCreate(android.os.Bundle icicle)

        super.onCreate(icicle);

        mPm = getPackageManager();
        mAdapter = new AppListAdapter(this);
        if (mAdapter.getCount() <= 0) {
            finish();
        } else {
            setListAdapter(mAdapter);
        }
    
protected voidonListItemClick(android.widget.ListView l, android.view.View v, int position, long id)

        ListItem app = mAdapter.appForPosition(position);
        // Create intent to start new activity
        Intent intent = new Intent(Intent.ACTION_VIEW);
        intent.setClass(this, ProcessInfo.class);
        intent.putExtra("processName", app.procInfo.processName);
        intent.putExtra("packageList", app.procInfo.pkgList);
        // start new activity to display extended information
        startActivity(intent);
    
protected voidonResume()

        super.onResume();
    
protected voidonStop()

        super.onStop();