Replace default contact application

Put your problem here if it does not fit any of the other categories.

Replace default contact application

Postby thao » Mon Nov 17, 2008 6:03 pm

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 :

Syntax: [ Download ] [ Hide ]
Using xml Syntax Highlighting
  1.  
  2. <?xml version="1.0" encoding="utf-8"?>
  3.  
  4. <manifest xmlns:android="http://schemas.android.com/apk/res/android"
  5.  
  6.      package="www.test.intent"
  7.  
  8.      android:versionCode="1"
  9.  
  10.      android:versionName="1.0.0">
  11.  
  12.     <application android:icon="@drawable/icon" android:label="@string/app_name">
  13.  
  14.    
  15.  
  16.             <receiver android:name=".ContactReceiver">
  17.  
  18.                  <intent-filter>
  19.  
  20.                         <action android:name="android.intent.action.VIEW" />
  21.  
  22.                         <category android:name="android.intent.category.DEFAULT" />
  23.  
  24.                         <type android:value="com.android.contacts/com.android.contacts.ContactShortcut" />
  25.  
  26.                     </intent-filter>
  27.  
  28.             </receiver>  
  29.  
  30.     </application>
  31.  
  32. </manifest>
Parsed in 0.003 seconds, using GeSHi 1.0.8.4



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
thao
Freshman
Freshman
 
Posts: 4
Joined: Tue Oct 28, 2008 3:35 pm

Top

Postby thao » Tue Nov 18, 2008 5:14 pm

No one has an idea ?
thao
Freshman
Freshman
 
Posts: 4
Joined: Tue Oct 28, 2008 3:35 pm

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 21 guests