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. Help! My simple app works in Eclipse Emulator but not on droid

My simple app - with no fancy stuff - just one preferences screen and
simple while loop logic keeps crashing on my droid though it works
fine in the emulator ... I've tried everything I could find online for
possible answers, I think...  is there something very basic I'm
missing?

I get a blank screen showing the app title and nothing else!  It hangs
forever before crashing!


Thank you so much for helping!  Anyone?

-- 

2. android sdk in /usr/local

I am trying to run android-sdk in linux under a diretory structure
that would all the sdk to be installed and used by multiple people.

I have already resolved the export GDK_NATIVE_WINDOWS=true problem.

I used root to update the sdk.
No I have something like:
drwxr-xr-x 7 root root 4096 2009-11-20 17:26 android-sdk-linux/
drwxr-xr-x 2 root root 4096 2009-11-20 16:20 android-sdk-linux/add-
ons/
drwxr-xr-x 13 root root 4096 2009-11-20 17:26 android-sdk-linux/docs/
drwxr-xr-x 3 root root 4096 2009-11-20 16:20 android-sdk-linux/tools/
drwxr-xr-x 6 root root 4096 2009-11-20 17:23 android-sdk-linux/
platforms/
drwxr-xr-x 8 root root 4096 2009-11-20 17:22 android-sdk-linux/
platforms/android-1.1/
drwxr-xr-x 8 root root 4096 2009-11-20 17:21 android-sdk-linux/
platforms/android-1.5/
drwxr-xr-x 8 root root 4096 2009-11-20 17:21 android-sdk-linux/
platforms/android-1.6/
drwxr-xr-x 8 root root 4096 2009-11-20 17:23 android-sdk-linux/
platforms/android-2.0/

Now when I type sudo /usr/local/android-sdk-linux/tools/android list I
get:
Available Android targets:
id: 1 or "android-2"
     Name: Android 1.1
     Type: Platform
     API level: 2
     Revision: 1
     Skins: HVGA-L, HVGA (default), QVGA-L, QVGA-P, HVGA-P
id: 2 or "android-3"
     Name: Android 1.5
     Type: Platform
     API level: 3
     Revision: 1
     Skins: HVGA-L, HVGA (default), QVGA-L, QVGA-P, HVGA-P
id: 3 or "android-4"
     Name: Android 1.6
     Type: Platform
     API level: 4
     Revision: 1
     Skins: WVGA854, HVGA (default), WVGA800, QVGA
id: 4 or "android-5"
     Name: Android 2.0
     Type: Platform
     API level: 5
     Revision: 1
     Skins: WVGA854, HVGA (default), WQVGA432, WVGA800, WQVGA400, QVGA
Available Android Virtual Devices:


All good but when I run as a user:  /usr/local/android-sdk-linux/tools/
android
I get:
mpo...@vmhost:/usr/local$ /usr/local/android-sdk-linux/tools/android
list
Available Android targets:
Available Android Virtual Devices:

What is not working?

-- 

3. I just gotta say

4. UNIX domain socket used on PhoneFactory.java

5. Trouble passing a KML file to the DDMS Location Emulator

6. Access to exchange email server

7. downloading and Building Android source for ARM9