Hi all,

I would like to replace the default contact application from android
by mine. I've read some post on forum that advise to "play" with
intents as the core do ( for instance, HOME for the Home app ).

So I started to look for what intents are used when contacts
application is launched, but I'm not very successful.

My first question is : What is the intent broadcasted when we click on
the contact icon to launch the phone book.

The second one is : not a question .... but I have implemented a
BroadcastReceiver so that I can capture itent(s) fired by android
contact app, then I would launch my own contact manager.

so the 2nd question could be : Is it the right approach to do such a
thing ?

This the manifest :

XML:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android";
      package="www.test.intent"
      android:versionCode="1"
      android:versionName="1.0.0">
    <application android:icon="@drawable/icon" android:label="@string/
app_name">

         <receiver android:name=".ContactReceiver">
           <intent-filter>
                     <action
android:name="android.intent.action.VIEW" />
                     <category
android:name="android.intent.category.DEFAULT" />
                     <type android:value="com.android.contacts/
com.android.contacts.ContactShortcut" />
                 </intent-filter>
         </receiver>
    </application>
</manifest>



My ContactReceiver class extends of course BroadcastReceiver .
Please note that I'm not sure at all reagrding the intent-filter in
that file.

Please advise.
Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to