应用被其他应用启动
来源:互联网 发布:薄膜厚度测量实验数据 编辑:程序博客网 时间:2024/05/18 02:29
被启动的应用必然只是启动它其中一个页面,所以只需要给被启动的activity配置属性就好,在AndroidManifest.xml中如下:
<activity android:name="com.example.ui.MainActivity" android:label="@string/app_name" > <intent-filter> <action android:name="com.example.action.setting" /> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity>
action android:name="com.example.action.setting" />是随便命名
添加两行:<action android:name="com.example.action.setting" /> 和 <category android:name="android.intent.category.DEFAULT" />即可
然后用intent去启动:
Intent intent=new Intent();intent.setAction("com.example.action.setting"); startActivity(intent);
1 0
- 应用被其他应用启动
- 启动其他应用
- intent 启动其他应用程序应用
- android 调用启动其他应用
- 启动其他应用的方式
- 利用startActivity启动其他应用
- Android 在应用中启动其他应用
- android启动其他应用的一段代码
- Android应用如何启动其他应用程序
- iOS在程序中启动其他应用
- android 启动其他应用的一段代码
- android启动其他应用的一段代码
- android启动其他应用的一段代码
- android 程序外启动其他应用
- Android启动其他应用的方式
- 允许其他应用启动你的APP
- 允许其他应用启动您的 Activity
- Intent调用其他应用setComponent启动其他应用程序
- Hibernate框架简述
- JS设置cookie
- 项目开发第三天
- 操作cookie
- android或linux调试addr2line工具锁定命令的使用
- 应用被其他应用启动
- easyui 框架的一些属性
- Java操作Hbase进行建表、删表以及对数据进行增删改查,条件查询(转)
- 网络编程基础1-字节序
- NullPointerException at android.widget.AbsListView.obtainView.
- 删除模糊表名的所有表,存储过程
- leetcode257 Binary Tree Paths
- 简单粗暴的eclipse hadoop 2.5.2 插件
- ALLJOYN® SYSTEM DESCRIPTION