android - How do I make the native address book display an option to call via MY_APPLICATION? -


there couple of apps viber , skype export contacts native contact database.

the native contact app comes along, merges contacts , these merged contacts displays multiple options "call", "sms", "call via skype" ,"im via skype", "video call via skype".

how can insert contact native address book in such way native address book app display option "call via my_application" ?

i know how insert contact programatically, if name similar existing contact native address book app merges them, there no option call via app.

thanks.

you need add call action manifest, inside activity tag.

<intent-filter> <action android:name="android.intent.action.call_dial" />                 <category android:name="android.intent.category.launcher" /> <category android:name="android.intent.category.default" /> <data android:scheme="tel" /> </intent-filter> 

and then, handle incoming data inside activity.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -