Reputation: 3
I am developing a Contacts Application for Android. Now how can I replace Default out of the box Contacts Application with my new application?
Upvotes: 0
Views: 755
Reputation: 63303
You cannot replace an Android system application (meaning one bundled with the device when shipped) with one of your own unless you are creating a custom ROM image...period.
You may, however, emulate that application's functionality so that anytime a user would be presented with an option to jump into the default Contacts app, they can choose yours instead. You do this by exposing that your application responds to the same list of Intents as that particular app. Here is a link to the current Contacts manifest to give you an idea of which Intents it responds to.
The user will be presented with an option to select your app as the default when triggering a Contacts related action. IF THE USER CHOOSES to make your application the default handler of these activities, they may do so, but there is not way to force that decision upon them.
HTH
Upvotes: 1