Hi ..
u can try this code
Cursor c = getContentResolver().query(Phones.CONTENT_URI,
null,phones._id =+id, null, null);
this code will return a row contain _id.
first ...
you try with phone no to get _id
Cursor c= context.getContentResolver().query
I'm not 100% sure, but i think it's because you passed
Contacts.Phones.CONTENT_URI instead of creating your own uri which has
an id-segment appended.
The ID is the unique _ID field you have in your phone table.If you
know the _ID you can generate a uri (it's called URI not URL btw :P)
with this
Thanks. But can you please tell me how can If I find the _ID from the
phone number?
On Mon, Feb 9, 2009 at 6:00 AM, Odessa Silverberg
silverberg.ode...@googlemail.com wrote:
I'm not 100% sure, but i think it's because you passed
Contacts.Phones.CONTENT_URI instead of creating your own uri
3 matches
Mail list logo