【问题标题】:Intent Filter for Call呼叫意图过滤器
【发布时间】:2019-09-08 16:02:42
【问题描述】:

如何让我的应用能够处理这样的呼叫动作?

【问题讨论】:

    标签: android android-intent intentfilter


    【解决方案1】:

    你应该像这样声明你的活动:

    <activity android:name=".DialerActivity">
        <intent-filter>
            <action android:name="android.intent.action.DIAL"/>
            <category android:name="android.intent.category.DEFAULT"/>
        </intent-filter>
    </activity>
    

    参考这里:https://developer.android.com/guide/components/intents-common#Phone

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-09-04
      • 2020-06-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多