Search code examples
androidandroid-contactslaunching-application

Launching an application from the Contact list


Im looking for a way to make a link between contact and Android Application. An example of this is Whatsapp, this application binds to a contact and makes it possible to launch the whatsapp application with the number as parameter. I have not been able to find a way of accomplishing this, and was wondering if there was someone with expierence in this area.

Your help is very much appreciated


Solution

  • I didn't try this, but I hope my answer will be helpful for you.

    To clarify, you want your app was in the 'Connections' section as Whatsapp app:
    enter image description here

    In this case, you should use Account Manager If you go to the phone Settings in the "Accounts and Sync" you should see all of the custom accounts registered on your phone: enter image description here

    Sorry, for not providing exact code snippets, but I hope this was useful for you, and you can Google your question (looking for Account Manager). Maybe these links will be useful for you too:

    create custom account android
    Custom Account Type with Android AccountManager