好贷网好贷款

(android 基础知识) AliasActivity(应用程序命别名)

发布时间:2016-12-4 5:53:50 编辑:www.fx114.net 分享查询网我要评论
本篇文章主要介绍了"(android 基础知识) AliasActivity(应用程序命别名)",主要涉及到(android 基础知识) AliasActivity(应用程序命别名)方面的内容,对于(android 基础知识) AliasActivity(应用程序命别名)感兴趣的同学可以参考一下。

The target must be in the same application as the alias and it must be declared before the alias in the manifest.为同一个应用程序命名的别名。  例如:  <activity android:name="OutgoingCallBroadcaster"                  android:permission="android.permission.CALL_PHONE"                  android:theme="@android:style/Theme.NoDisplay"                  android:screenOrientation="nosensor">              <!-- CALL action intent filters, for the various ways                   of initiating an outgoing call. -->              <intent-filter>                  <action android:name="android.intent.action.CALL" />                  <category android:name="android.intent.category.DEFAULT" />                  <data android:scheme="tel" />              </intent-filter>              <intent-filter>                  <action android:name="android.intent.action.CALL" />                  <category android:name="android.intent.category.DEFAULT" />                  <data android:scheme="voicemail" />              </intent-filter>              <intent-filter>                  <action android:name="android.intent.action.CALL" />                  <category android:name="android.intent.category.DEFAULT" />                  <data android:mimeType="vnd.android.cursor.item/phone" />                  <data android:mimeType="vnd.android.cursor.item/phone_v2" />                  <data android:mimeType="vnd.android.cursor.item/person" />              </intent-filter>          </activity>  <activity-alias android:name="EmergencyOutgoingCallBroadcaster"                  android:targetActivity="OutgoingCallBroadcaster"                  android:permission="android.permission.CALL_PRIVILEGED"                  android:theme="@android:style/Theme.NoDisplay"                  android:screenOrientation="nosensor">              <intent-filter>                  <action android:name="android.intent.action.CALL_EMERGENCY" />                  <category android:name="android.intent.category.DEFAULT" />                  <data android:scheme="tel" />              </intent-filter>              <intent-filter>                  <action android:name="android.intent.action.CALL_EMERGENCY" />                  <category android:name="android.intent.category.DEFAULT" />                  <data android:scheme="voicemail" />              </intent-filter>              <intent-filter>                  <action android:name="android.intent.action.CALL_EMERGENCY" />                  <category android:name="android.intent.category.DEFAULT" />                  <data android:mimeType="vnd.android.cursor.item/phone" />                  <data android:mimeType="vnd.android.cursor.item/person" />              </intent-filter>          </activity-alias>   <activity-alias android:name="PrivilegedOutgoingCallBroadcaster"                  android:targetActivity="OutgoingCallBroadcaster"                  android:theme="@android:style/Theme.NoDisplay"                  android:permission="android.permission.CALL_PRIVILEGED"                  android:screenOrientation="nosensor">              <intent-filter>                  <action android:name="android.intent.action.CALL_PRIVILEGED" />                  <category android:name="android.intent.category.DEFAULT" />                  <data android:scheme="tel" />              </intent-filter>              <intent-filter>                  <action android:name="android.intent.action.CALL_PRIVILEGED" />                  <category android:name="android.intent.category.DEFAULT" />                  <data android:scheme="voicemail" />              </intent-filter>              <intent-filter>                  <action android:name="android.intent.action.CALL_PRIVILEGED" />                  <category android:name="android.intent.category.DEFAULT" />                  <data android:mimeType="vnd.android.cursor.item/phone" />                  <data android:mimeType="vnd.android.cursor.item/phone_v2" />                  <data android:mimeType="vnd.android.cursor.item/person" />              </intent-filter>          </activity-alias>  同时出现在一个AndroidManifest.xml  

上一篇:编程求出单链表中倒数第m个元素,当m=0时,指链表最后一个元素
下一篇:WEB服务器、应用程序服务器、HTTP服务器区别

相关文章

相关评论