Android:android.intent.category 定义

本文详细介绍了Android 4.1 (API级别16)中的Intent类别,包括常见的应用程序类别如浏览器、计算器、日历等,以及系统级别的类别如HOME、LAUNCHER等。这些类别用于指定应用程序的功能范围和启动条件。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

定义的种类与版本相关,这里列出 android 4.1的定义 :

F:\Android\sdk\platforms\android-16\data\categories.txt

  1. android.intent.category.ALTERNATIVE #  
  2. android.intent.category.APP_BROWSER #启动浏览器  
  3. android.intent.category.APP_CALCULATOR #计算器  
  4. android.intent.category.APP_CALENDAR #日历  
  5. android.intent.category.APP_CONTACTS #联系人  
  6. android.intent.category.APP_EMAIL  #email  
  7. android.intent.category.APP_GALLERY #相册  
  8. android.intent.category.APP_MAPS #google maps  
  9. android.intent.category.APP_MARKET #google play  
  10. android.intent.category.APP_MESSAGING #消息  
  11. android.intent.category.APP_MUSIC #音乐  
  12. android.intent.category.BROWSABLE #在浏览器中可以调用该app  
  13. android.intent.category.CAR_DOCK  
  14. android.intent.category.CAR_MODE  
  15. android.intent.category.DEFAULT #如果没有设置其他category,定义为DEFAULT,允许在没有任何其他intent filter匹配的情况下可以调用该程序  
  16. android.intent.category.DESK_DOCK  
  17. android.intent.category.DEVELOPMENT_PREFERENCE  
  18. android.intent.category.EMBED  
  19. android.intent.category.HE_DESK_DOCK  
  20. android.intent.category.HOME #将作为Launcher的选择项启动  
  21. android.intent.category.INFO  
  22. android.intent.category.LAUNCHER #作为主菜单启动,即在主菜单中会出现  
  23. android.intent.category.LE_DESK_DOCK  
  24. android.intent.category.MONKEY  
  25. android.intent.category.OPENABLE  
  26. android.intent.category.PREFERENCE  
  27. android.intent.category.SELECTED_ALTERNATIVE  
  28. android.intent.category.TAB #作为TabActivity的一个Tab使用 
<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:installLocation="preferExternal"> <supports-screens android:smallScreens="true" android:normalScreens="true" android:largeScreens="true" android:xlargeScreens="true" android:anyDensity="true" /> <uses-permission android:name="android.permission.NFC" /> <uses-feature android:name="android.hardware.nfc.hce" android:required="false" /> <uses-feature android:name="android.hardware.nfc" android:required="false" /> <application android:theme="@style/UnityThemeSelector" android:icon="@drawable/app_icon" android:label="@string/app_name" android:hardwareAccelerated="true"> <activity android:name="com.unity3d.player.UnityPlayerActivity" android:label="@string/app_name" android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> <!-- 添加NFC处理 --> <intent-filter> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.BROWSABLE" /> <data android:scheme="myapp" /> </intent-filter> <!-- 添加深度链接处理 --> <intent-filter> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.BROWSABLE" /> <data android:scheme="xl" android:host="goods" android:port="8888" android:pathPrefix="/goodsDetail" /> </intent-filter> </activity> </application> </manifest> 这是我现在的xml文件,我的应用包名为com.example.text 我该怎么更改,并使用什么URL去启动应用并传递数据
最新发布
08-07
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值