//-----启动系统自带的应用程序------------------ Intent intent=new Intent(); intent.setComponent(new ComponentName("cn.com.cn", "cn.com.cn.Activity")); sta...
分类:
其他好文 时间:
2015-01-08 17:02:24
阅读次数:
105
boolean result = false; ActivityManager am = (ActivityManager) context .getSystemService(Context.ACTIVITY_SERVICE); ComponentName cn = am.g...
分类:
其他好文 时间:
2015-01-07 18:32:33
阅读次数:
116
---------------------------------------不同 APP相互调用 activity1.ComponentName()Intent _Intent = new Intent(Intent.ACTION_MAIN); _Intent.setComponent(new ....
分类:
移动开发 时间:
2015-01-07 12:36:00
阅读次数:
106
1.设备管理器 硬件服务
// 拿到一个设备管理器
DevicePolicyManager devicePolicyManager = (DevicePolicyManager) getSystemService(Context.DEVICE_POLICY_SERVICE);
// new一个新的组件出来,用来启动注册管理器的界面
ComponentName componentNam...
分类:
其他好文 时间:
2015-01-07 09:26:52
阅读次数:
136
ComponentName是用来打开其它应用程序中的Activity或服务的。使用方法:Intent i=new Intent();i.setComponent(new ComponentName(String packageName,String activityName ));startActi...
分类:
其他好文 时间:
2015-01-04 14:58:15
阅读次数:
152
//组件名称,第一个参数是应用程序的包名,后一个是这个应用程序的主Activity
ComponentName com = new ComponentName("com.antroid.Test", "com.antroid.Test.TestActivity");
Intent intent = new Intent();
//设...
分类:
移动开发 时间:
2014-11-30 16:59:57
阅读次数:
135
写下如下代码即可import android.content.ComponentName; //引入Intent mIntent = new Intent("android.intent.action.MAIN"); ComponentName comp = new ComponentNam...
分类:
移动开发 时间:
2014-11-26 18:15:24
阅读次数:
179
BizTalkDeploymentTools.AddResource.bat@Echo OFFSET ApplicationName=%~1SET ComponentType=%~2SET ComponentName=%~3Echo.Echo.Echo #######################...
分类:
其他好文 时间:
2014-11-25 20:16:55
阅读次数:
122
这篇博文主要是完成一个类音乐播放器,作为综合应用activity,widget,service这几个类的参考,希望能帮助像我一样新手朋友们。...
分类:
其他好文 时间:
2014-11-21 18:54:40
阅读次数:
174
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