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);
}
}