获取Launcher 启动列表
2010-08-26 00:08:00 来源:WEB开发网核心提示:startActivity(intent);}});adapter = new LauncherAdapter(this);lv.setAdapter(adapter);lv.setOnItemClickListener(new OnItemClickListener(){@Overridepublic void on
startActivity(intent);
}
});
adapter = new LauncherAdapter(this);
lv.setAdapter(adapter);
lv.setOnItemClickListener(new OnItemClickListener(){
@Override
public void onItemClick(AdapterView arg0, View arg1, int arg2,
long arg3) {
// TODO Auto-generated method stub
Intent intent =new Intent(Intent.ACTION_VIEW);
intent.setComponent(lvalue.get(arg2).component);
startActivity(intent);
}
});
5. emulator 结果结果
- 列出所有application
- 单击Alarm Clock 的情形:
更多精彩
赞助商链接