码迷,mamicode.com
首页 >  
搜索关键字:componentname    ( 88个结果
ComponentName的意思
ComponentName是用来打开其它应用程序中的Activity或服务的。使用方法:Intent i=new Intent();i.setComponent(new ComponentName(String packageName,String activityName ));startActi...
分类:其他好文   时间:2014-11-07 20:33:05    阅读次数:175
android ComponentName
从一个activity跳转到另一个activity有多种方法ComponentName //此为一个按钮相应的代码摘录 ComponentName comp = new ComponentName(ComponentAttr.this, Se...
分类:移动开发   时间:2014-11-05 16:58:06    阅读次数:253
ComponentName的意思
ComponentName是用来打开其它应用程序中的Activity或服务的。使用方法:Intent i=new Intent();i.setComponent(new ComponentName(String packageName,String activityName ));startActi...
分类:其他好文   时间:2014-09-20 16:08:28    阅读次数:119
android 打开指定包名的apk
例如: 系统音乐 Intent intent = new Intent(Intent.ACTION_MAIN); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); intent.addCategory(Intent.CATEGORY_LAUNCHER); ComponentName cn = new ComponentName("com.an...
分类:移动开发   时间:2014-08-24 23:55:03    阅读次数:258
Android apk互调
1、启动另外一个应用程序的主Activity. //这些代码是启动另外的一个应用程序的主Activity,当然也可以启动任意一个Activity ComponentName componetName = new ComponentName( //这个是另外一个应用程序的包名 "com.poynt.w...
分类:移动开发   时间:2014-08-13 22:09:47    阅读次数:393
Android分享图文到朋友圈代码。
分享到微信朋友圈代码。不好用,最后选择了shareSdk。 private static void shareToTimeLine(File file) { Intent intent = new Intent(); ComponentName comp = new...
分类:移动开发   时间:2014-08-11 17:21:53    阅读次数:348
打开其他应用程序和分享
一、打开其它应用程序[以打开QQ为例]1 Intent intent = new Intent();2 ComponentName cmp = new ComponentName("com.tencent.mobileqq","com.tencent.mobileqq.activit...
分类:其他好文   时间:2014-08-06 10:24:01    阅读次数:165
Android -- 分享功能和打开指定程序
打开指定程序 Intent intent = new Intent();ComponentName cmp = new ComponentName("com.sina.weibo","com.sina.weibo.EditActivity");intent.setAction(Intent.ACTI...
分类:移动开发   时间:2014-08-03 12:36:35    阅读次数:385
调用Android系统设置中的Intent
开发Android软件时,常常需要打开系统设置或信息界面,来设置相关系统项或查看系统的相关信息,这时我们就可以使用以下语句来实现:(如打开“无线和网络设置”界面)Intent intent = new Intent();ComponentName comp = new ComponentName("...
分类:移动开发   时间:2014-07-27 09:57:02    阅读次数:258
ComponentName的意思
ComponentName是用来打开其它应用程序中的Activity或服务的。使用方法:Intent i=new Intent();i.setComponent(new ComponentName(String packageName,String activityName ));startActi...
分类:其他好文   时间:2014-07-22 22:59:52    阅读次数:145
88条   上一页 1 ... 6 7 8 9 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!