首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >Android:如何像truecaller一样将我的应用程序添加到默认的手机应用程序列表中

Android:如何像truecaller一样将我的应用程序添加到默认的手机应用程序列表中
EN

Stack Overflow用户
提问于 2018-06-14 12:13:23
回答 2查看 701关注 0票数 1

我想把我的应用程序添加到手机应用程序列表中,就像truecaller那样,这样用户就可以从这个列表中选择我的应用程序。

请帮帮我。谢谢

编辑:这里是一篇文章添加短信应用程序到默认短信应用列表。https://android-developers.googleblog.com/2013/10/getting-your-sms-apps-ready-for-kitkat.html

我需要同样的文章为手机应用程序。

EN

回答 2

Stack Overflow用户

发布于 2018-06-14 12:15:55

代码语言:javascript
运行
复制
  <intent-filter>
        <action android:name="android.intent.action.CALL_PRIVILEGED" />                
        <category android:name="android.intent.category.LAUNCHER" />
        <category android:name="android.intent.category.DEFAULT" />
        <data android:scheme="tel" />
     </intent-filter>

注意:权限标签是允许打电话的。

代码语言:javascript
运行
复制
<uses-permission android:name="android.permission.CALL_PHONE" />
票数 0
EN

Stack Overflow用户

发布于 2018-11-23 14:49:48

你可以加上:

代码语言:javascript
运行
复制
  <intent-filter>
      <action android:name="android.intent.action.VIEW"/>
      <action android:name="android.intent.action.DIAL"/>
      <category android:name="android.intent.category.DEFAULT"/>
      <category android:name="android.intent.category.BROWSABLE"/>
      <data android:scheme="tel"/>
  </intent-filter>
  <intent-filter>
      <action android:name="android.intent.action.DIAL"/>
      <category android:name="android.intent.category.DEFAULT"/>
  </intent-filter>
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/50857304

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档