测试
来源:互联网 发布:人工智能微信公众号 编辑:程序博客网 时间:2024/06/01 08:31
Intent intent = new Intent();intent.setAction("android.intent.action.STATUS_BAR");intent.putExtra("isWhite", true);intent.putExtra("color", "#000000");intent.putExtra("isShowNotSim", false);Intent eintent = new Intent(this.getExplicitIntent(this.context, intent));startService(eintent);public Intent getExplicitIntent(Context context, Intent implicitIntent) { PackageManager pm = context.getPackageManager(); List resolveInfo = pm.queryIntentServices(implicitIntent, 0); if(resolveInfo != null && resolveInfo.size() == 1) { ResolveInfo serviceInfo = (ResolveInfo)resolveInfo.get(0); String packageName = serviceInfo.serviceInfo.packageName; String className = serviceInfo.serviceInfo.name; ComponentName component = new ComponentName(packageName, className); Intent explicitIntent = new Intent(implicitIntent); explicitIntent.setComponent(component); return explicitIntent; } else { return null; }}
0 0
- 测试
- 测试
- 测试
- 测试
- 测试
- 测试
- 测试
- 测试
- 测试
- 测试
- 测试
- 测试
- 测试
- 测试~!
- 测试
- 测试
- 测试
- 测试
- 友盟第三方登陆,及分享,使用工具集成。
- 对英文单词按照字母顺序进行排序(升序or降序)
- MVC中的ActionResult的子类介绍
- 带min函数的栈
- surfaceView和View区别
- 测试
- 0035C++中vector类的常用函数
- 一个Demo搞定Gson解析+Volley框架+Universal框架+通用适配器
- Charles使用介绍--MAC上优秀的抓包工具
- 1107: 单向公路(bfs+输入整理)(DFS也可以,而且更快)
- webService-cxf方式生成客户端
- IOS RunLoop浅析 一
- VMware Workstation下安装vmware tools
- 如何让按钮UIButton的文字左对齐?