If you want to write your own activity implementing those actions, how would you do that ? Implementing a new whole ContactsProvider ? If you only want to replace, say INSERT ? How your new ContactsProvider can coexist with the standard one if you want to extend its functionality ?
On Mar 26, 7:35 am, hackbod <[EMAIL PROTECTED]> wrote: > The android.intent.action.INSERT and android.intent.action.VIEW > actions are not broadcasts, they are actions for starting activities > to show a UI to insert a new entry, or view an existing entry, > respectively. Thus you don't register for them with a <receiver>, you > launch them with startActivity(). (You can also write your own > activity implementing those actions to replace the standard UI, but > that's probably not what you are wanting.) > > On Mar 25, 8:35 pm, "Dexter's Brain" <[EMAIL PROTECTED]> wrote: > > > Thanks Megha...But, will it be provided in the subsequent releases??? > > > Can you think of a situation where we would need this??? > > > Dexter. > > > On Mar 26, 3:15 am, "Megha Joshi" <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > I don't think that the intents for contacts added and contacts deleted > > > intents are broadcasted. > > > So you cannot receive these intents. > > > > Thanks, > > > Megha > > > > On Mon, Mar 24, 2008 at 9:49 AM, Dexter's Brain <[EMAIL PROTECTED]> > > > wrote: > > > > > Hello All, > > > > > I have an Intent Receiver which I will be triggered when a contact is > > > > added or deleted. > > > > > My reciever properties in the androidmanifest.xml are as follows. > > > > > <receiver android:name=".ContactAdded"> > > > > <intent-filter> > > > > <action > > > > ndroid:name="android.intent.action.INSERT" > > > > /> > > > > <action android:name="android.intent.action.VIEW" > > > > /> > > > > </intent-filter> > > > > </receiver> > > > > > And in my Intent Reciever class, I have the following lines of code. > > > > > public class ContactAdded { > > > > public void onReceiveIntent(Context context, Intent intent){ > > > > try{ > > > > Log.i("Received Intent", intent.getAction()); > > > > } > > > > catch(Exception e){ > > > > Log.i("Exception in Intent",e.getLocalizedMessage > > > > ()); > > > > } > > > > } > > > > } > > > > > Now, when I try to add or delete a contact, I can see in the LogCat > > > > that the required Intent is broadcast, but I don't see my message > > > > "Received Intent" in the LogCat which I have coded in my reciever > > > > class. > > > > > Am I doing something wrong??? > > > > > Dexter. --~--~---------~--~----~------------~-------~--~----~ 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] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---