码迷,mamicode.com
首页 >  
搜索关键字:componentname    ( 88个结果
启动系统自带的应用程序
//-----启动系统自带的应用程序------------------ Intent intent=new Intent(); intent.setComponent(new ComponentName("cn.com.cn", "cn.com.cn.Activity")); sta...
分类:其他好文   时间:2015-01-08 17:02:24    阅读次数:105
判断activity是否显示在界面上
boolean result = false; ActivityManager am = (ActivityManager) context .getSystemService(Context.ACTIVITY_SERVICE); ComponentName cn = am.g...
分类:其他好文   时间:2015-01-07 18:32:33    阅读次数:116
Android工程开发笔记<一>
---------------------------------------不同 APP相互调用 activity1.ComponentName()Intent _Intent = new Intent(Intent.ACTION_MAIN); _Intent.setComponent(new ....
分类:移动开发   时间:2015-01-07 12:36:00    阅读次数:106
getSystemService的使用示例
1.设备管理器 硬件服务 // 拿到一个设备管理器 DevicePolicyManager devicePolicyManager = (DevicePolicyManager) getSystemService(Context.DEVICE_POLICY_SERVICE); // new一个新的组件出来,用来启动注册管理器的界面 ComponentName componentNam...
分类:其他好文   时间:2015-01-07 09:26:52    阅读次数:136
ComponentName的意思
ComponentName是用来打开其它应用程序中的Activity或服务的。使用方法:Intent i=new Intent();i.setComponent(new ComponentName(String packageName,String activityName ));startActi...
分类:其他好文   时间:2015-01-04 14:58:15    阅读次数:152
Android - 在一个应用程序中启动另外一个已经安装的应用程序或系统程序(前提是要知道该应用程序的主activity和包名)
//组件名称,第一个参数是应用程序的包名,后一个是这个应用程序的主Activity       ComponentName com = new ComponentName("com.antroid.Test", "com.antroid.Test.TestActivity");             Intent  intent = new Intent();       //设...
分类:移动开发   时间:2014-11-30 16:59:57    阅读次数:135
android 从APP启动另一个APP
写下如下代码即可import android.content.ComponentName; //引入Intent mIntent = new Intent("android.intent.action.MAIN"); ComponentName comp = new ComponentNam...
分类:移动开发   时间:2014-11-26 18:15:24    阅读次数:179
[BTS] Deploy Command
BizTalkDeploymentTools.AddResource.bat@Echo OFFSET ApplicationName=%~1SET ComponentType=%~2SET ComponentName=%~3Echo.Echo.Echo #######################...
分类:其他好文   时间:2014-11-25 20:16:55    阅读次数:122
RemoteViews用法三:包含的widget的类音乐播放器
这篇博文主要是完成一个类音乐播放器,作为综合应用activity,widget,service这几个类的参考,希望能帮助像我一样新手朋友们。...
分类:其他好文   时间:2014-11-21 18:54:40    阅读次数:174
Activity向服务传递数据
activity界面负责启动服务把数据打包,service获取数据,进行操作。具体demo如下: package com.example.android_service_trance; import android.annotation.SuppressLint; import android.app.Activity; import android.content.ComponentName...
分类:其他好文   时间:2014-11-19 15:58:36    阅读次数:226
88条   上一页 1 ... 5 6 7 8 9 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!