2011-07-12 5 views
1

私は、明らかにプロジェクト要件としてアンドロイドにカスタムダイヤラーを作成しました。だから私の質問は、ユーザーがデフォルトのダイヤラで自分のカスタムダイヤラを選択するオプションを見たはずの番号をダイヤルするときです。彼が私のダイヤラを選択した場合、彼は私のカスタムダイヤラにリダイレクトする必要があります。だから私の作成したカスタムダイヤラをアンドロイドに登録する方法は?AndroidでDialerを呼び出す

よろしく、 Shishir Shetty。

ありがとうございました。

答えて

0

このコードは動作しています

<application 
    android:icon="@drawable/ic_launcher" 
    android:label="@string/app_name" > 
    <activity 
     android:name=".MyDialerApplication" 
     android:label="@string/app_name" > 

     <intent-filter android:priority="100" > 
      <action android:name="android.intent.action.MAIN" /> 
      <action android:name="android.intent.action.DIAL" /> 
      <action android:name="android.intent.action.CALL_PRIVILEGED" /> 
      <category android:name="android.intent.category.DEFAULT" /> 
      <data android:scheme="tel" /> 

     </intent-filter> 
    </activity> 
</application> 

問題がありますが、これはアプリケーションメニューにアプリケーションを表示していません。 どうか、私はアプリケーションのアクションのメインとダイヤルを設定することができます

0

あなたのアクティビティでこれらのイベントを処理できるようにマニフェストを編集しましたか? そのこれに類似した何か:

<activity ...> 
    <intent-filter android:priority="100"> 
     <action android:name="android.intent.action.DIAL"/> 
     <category android:name="android.intent.category.DEFAULT" /> 
     <data android:scheme="tel"/> 
    </intent-filter> 
</activity> 

完全な例は、ここで見つけることができます:http://mobileorchard.com/android-app-development-intents-and-intent-filters/

0

あなたの活動インテントフィルタにこれを追加します。このことができます

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

希望..このようにあなただけの、あなたのマニフェストにインテントフィルタを追加する必要が

0

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

他のオプションがありますが、ここでいくつかの長さで説明した:http://developer.android.com/reference/android/content/Intent.html

関連する問題