[android-developers] Re: How to know SMS and Contacts update?

2009-04-02 Thread jaimin

hi . i am new to android.
i have same problem or questio that u have so if u find any answer
then plz can u share with me?
because i need the solution very badly.


On Mar 16, 12:41 pm, Kenny yxw...@gmail.com wrote:
 Can anybody help? To be clear, I want to write a Android Java program
 to monitor the sent-outSMSand input contacts (like SYNC caused).

 BecauseSMSand Contacts are both stored indatabase, I want to know
 if android.database.ContentObserver is good for this purpose. First I
 wish to listen to ContentObserver::onChange(). Then I will querydatabaseto 
 see ifSMS/Contacts were just added/updated. If this is
 doable, really wish to get some sample code.

 Kenny
 On Mar 15, 12:09 pm, Kenny Yu yxw...@gmail.com wrote:

  WhereSMS/Contacts are added/updated/deleted, how can I write an App-
  Service to know the contents change? The changes are possibly caused
  by App activities or SYNC activity, or any else.

  Any content observer or intents I should look into? Welcome your
  design suggestion.

  Kenny
--~--~-~--~~~---~--~~
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
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to know SMS and Contacts update?

2009-03-16 Thread Kenny

Can anybody help? To be clear, I want to write a Android Java program
to monitor the sent-out SMS and input contacts (like SYNC caused).

Because SMS and Contacts are both stored in database, I want to know
if android.database.ContentObserver is good for this purpose. First I
wish to listen to ContentObserver::onChange(). Then I will query
database to see if SMS/Contacts were just added/updated. If this is
doable, really wish to get some sample code.

Kenny
On Mar 15, 12:09 pm, Kenny Yu yxw...@gmail.com wrote:
 Where SMS/Contacts are added/updated/deleted, how can I write an App-
 Service to know the contents change? The changes are possibly caused
 by App activities or SYNC activity, or any else.

 Any content observer or intents I should look into? Welcome your
 design suggestion.

 Kenny
--~--~-~--~~~---~--~~
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
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---