Retrieve the Starred Contacts

by Parbhakar Bikkaneti » Tue, 17 May 2011 16:41:46 GMT


Sponsored Links
 Hello everybody,

Please provide me a code/suggestions for performing the following tasks.

   1. Display a list of all the Starred contacts to the user.
   2. When user selects a contact, setting the
ContactsContract.Contacts.STARRED
   to 0

Thank-you.
-- 



Regards,
Bikkanati Prabhakar.
E-Mail: prabhakar.9...@gmail.com
Blog:     http://LetsXploreIT.blogspot.com 

-- 



Re: Retrieve the Starred Contacts

by Ali Chousein » Fri, 20 May 2011 03:52:54 GMT


 Prabhakar,

So far I've done some programming with Android contacts. I have much
sample code except the starred contacts. However it should be
straightforward. Check the link below. Personally I found it possible
to get everything running by following the documentation of
ContactsContract. There is good amount of sample code on the web as
well.

 http://developer.android.com/reference/android/provider/ContactsContract.html 

Good luck,
-Ali

-- 


Sponsored Links


Other Threads

1. Can AlertDialog not dismiss after click buttons?

I used AlertDialog.Builder to create a dialog to  edit settings, and
check the user input basing on some logic. I wish to show a warning
toast when users click OK button and keep the AlertDialog on screen,
but it seems that the AlertDialog always dismissed after clicking
buttons. Do anyone know how to do that or other solutions? Thanks!

Best Regards,
Willy

--~--~---------~--~----~------------~-------~--~----~

2. Physical Device Keypad Events.

Hi,
Doessomeone knowhow to send events to keypad of an Android physical device (a 
real device) ?
if so, can you please publish this part of the code (I'm willing to simulate 
press-key during my application)?

10x
Yorgen Valune



      
--~--~---------~--~----~------------~-------~--~----~

3. Error - Unable to create the selected preference page.

4. Error While Downloading Android Development Toolkit in Eclipse

5. android:label

6. Documentation Update

7. BufferedReader.readLine() undocumentedly discards "#!" prefix