Accessing contacts ?

by Sarath Kamisetty » Fri, 19 Dec 2008 14:25:45 GMT


Sponsored Links
 Hi,

My sample application wants to display the contacts (that were
previously added) in the phone and let user pick some of them. Are
there any APIs we can use to access the contents of the contacts ? If
contacts are stored in some database, do I need to know the underlying
schema of contacts ?

Thanks,
Sarath

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



Accessing contacts ?

by for android » Fri, 19 Dec 2008 14:37:15 GMT


 You can start an intent with actionpick and set the type as People.content
type..and on the activityresultset u will get the uri with
intens.getData.From that in ur activity u have the uri frm whch u can get
the info about the contact selected.

On Fri, Dec 19, 2008 at 12:57 AM, Sarath Kamisetty <




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


Sponsored Links


Accessing contacts ?

by roland » Sat, 20 Dec 2008 00:52:42 GMT


 Here is an official document which talks about the contacts.

 http://code.google.com/intl/fr/android/devel/data/contentproviders.html 


On 18 dc, 20:27, "Sarath Kamisetty" <sarath.kamise...@gmail.com>


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



Other Threads

1. creating custom intent

Hi,
Can anyone tell me what I am doing wrong, I'm sure it is real simple.
I am trying to create a custom intent but everytime I try to launch it
from another activity I get a "No Activity found to handle Intent"
error?  Am I failing to register the new intent somehow even though it
is in the manifest?


Thanks,
Bob

In other activity,produces error:

 Intent i = new Intent("com.example.Intent1");
        startActivity(i);

In Receiver Activity:

In Manifest:

 <receiver android:name=".TestBroadcastReceiver"
android:enabled="true" >
             <intent-filter>
         <action android:name="com.example.Intent1" />

            </intent-filter>
        </receiver>


In Code File:

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

public class TestBroadcastReceiver extends BroadcastReceiver {

        @Override
        public void onReceive(Context context, Intent intent) {
                // TODO Auto-generated method stub

        }

}

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

2. API to delete SIM contacts & Messages AND erasing the SD card contents

Hi Schimmel,

Thanks for yous advice and suggestions.

What about SIM card tool kit? I read in the cupcake feature list on android
web page.
But now in 1.5 SDK I didnt find any SIM related API.
If any one want to contribute to this, I am ready with my team to develop
the SIM tool kit.

I read in the android developers guide that, we need to sign our application
with the device manufacture's certificate to get the most of the API to
work. Do any one have any info on this?


SD card formatting should be possile as of now with private API in 1.5.
But we can access all the files/dirs on the SD Card and I have written a
java code to delete the files recursively and it is working fine. But the
only problem is that, if u have more data on SD card, that java code takes
more time.
For 500MB it took 5 sec to delete all the files and directories.

Regards
Surendra


On Wed, Apr 29, 2009 at 5:47 PM, brian.schimmel <









-- 
Surendra Reddy T

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

3. Compile problem after repo sync.

4. How to create a file in current directory?

5. Is it possible to call methods of a Activity from service.

6. Several errors with 1.5 + Linux.

7. Is there a recommended method for app updates?