我想拨一个号码时,显示我的应用程序作为一个选项 - 新的或接触。我按照这个话题。我有一个活动的应用程序。这里是清单文件:
<应用机器人:图标=@可绘制/图标机器人:标签=@字符串/ APP_NAME>
<活动机器人:SomeActivity名称=机器人:标签=@字符串/ APP_NAME>
<意向滤光器>
<作用机器人:名称=android.intent.action.MAIN/>
<类机器人:名称=android.intent.category.LAUNCHER/>
&所述; /意图滤光器>
<意向滤光器>
<作用机器人:名称=android.intent.action.CALL_PRIVILIGED/>
<类机器人:名称=android.intent.category.DEFAULT/>
<数据机器人:计划=电话/>
&所述; /意图滤光器>
< /活性GT;
< /用途>
解决方案
最后,它的工作。我拼错字,'光荣'为具有特权
I want to show my app as a option when dialing a number - new or contact. I have followed this topic. I have an app with a single activity. Here is the manifest file:
<application android:icon="@drawable/icon" android:label="@string/app_name">
<activity android:name=".SomeActivity" android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.CALL_PRIVILIGED" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="tel" />
</intent-filter>
</activity>
</application>
解决方案
Finally it worked. I misspelled the word 'PRIVILEGED' as PRIVILIGED
上一篇:安卓:解析特殊字符(ä,ö,ü)的JSON特殊字符、JSON
下一篇:如何解决javax.xml.bind.JAXBContext在Eclipse?如何解决、javax、xml、Eclipse