小白跪求高手指导,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
解决方案 »
- Could not find class
- gridview问题
- 想使用Intent要import哪个类库
- 跪求!!! 我的apk安装不到真手机
- 寻求android一同学习,交流心得
- TabActivity布局的页签高度设置问题
- android 瀑布流Bitmap OOM
- Android中有没有linux下类似awk或sed的流编辑器(同时懂Android+linux进)
- Android TV版--文件管理器
- 手机连接PC,adb devices无连接,DDMS无连接,这是为什么呢?
- android能与电脑局域网吗?
- 安卓自定义数据库,在数据库里存放大量的题库,这样会不会扩大程序的内存,关于模拟考试的软件该怎么安排题库,是从xml上取得还是自定义数据库存放题库好呢?求解
Intent intent = new Intent();
ComponentName cn = new ComponentName(FILE_PACKAGE, FILE_PACKAGE_CLASS);
startActivity(intent);
或者
//com.android.settings.usbStting.class 为包名+class名称
Intent intent = new Intent(this,com.android.settings.usbStting.class);
startActivity(intent);
ComponentName componentName = new ComponentName("cim.zhanhui.activity",// 包路径
"cim.zhanhui.activity.MainAct");// 要启动的Activity Intent intent = new Intent();
Bundle bundle = new Bundle();
bundle.putString("Parm_UserId", String.valueOf(STC_UserId));
bundle.putString("Parm_UserName", name); intent.putExtras(bundle);
intent.setComponent(componentName); try
{
startActivity(intent);
}
catch (Exception e)
{
MyToast.show(R.string.notinstalled_ECGSoft);// 心电传输软件未安装
}