WEB开发网
开发学院手机开发Android 开发 Android 获取Launcher 启动列表 阅读

Android 获取Launcher 启动列表

 2010-08-22 04:28: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 的情形:

上一页  1 2 3 4 

Tags:Android 获取 Launcher

编辑录入:coldstar [复制链接] [打 印]
赞助商链接