没有出现在活动选择器应用每当呼出使用dailer制成 [英] Application not appearing in activity chooser whenever outgoing call is made using dailer

查看:139
本文介绍了没有出现在活动选择器应用每当呼出使用dailer制成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

应该使用什么样的意图过滤器,使显示在活动选配我的应用程序,每当呼出由:像显示Viber的和Skype

What intent filter should be used so that my app is shown in activity chooser whenever outgoing call is made :like Viber and Skype are shown.

我使用这个过滤器:

   <receiver android:name="OutgoingCallReceiver" >
        <intent-filter>
            <action android:name="android.intent.action.ACTION_NEW_OUTGOING_CALL" />

            <category android:name="android.intent.category.DEFAULT" />
        </intent-filter>
    </receiver>

许可:

<uses-permission android:name="android.permission.PROCESS_OUTGOING_CALLS" />

还对myApp不会出现在活动选配。

still myApp do not appear in activity chooser.

推荐答案

声明你的活动作为将其添加在选项列表中,调用应用程序

Declare your Activity as to add it in option list for calling application

<activity android:name="Makecall" >
    <intent-filter> 
        <action android:name="android.intent.action.CALL" />
        <data android:scheme="tel" />
        <category android:name="android.intent.category.DEFAULT" />
        <action android:name="android.intent.action.CALL_PRIVILEGED" />
    </intent-filter>
</activity>

和调用任意数量的使用 Intent.ACTION_DIAL 为:

and for calling to any Number use Intent.ACTION_DIAL as :

Uri numberuri = Uri.parse("tel:"  + edit_text_number);
Intent intent_call = new Intent(Intent.ACTION_DIAL, numberuri);
startActivity(intent_call);

这篇关于没有出现在活动选择器应用每当呼出使用dailer制成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆