contacts.extensions

by Stefan Selariu » Wed, 29 Oct 2008 20:44:40 GMT


Sponsored Links
 Hi guys,
I'm trying to extend the contacts by adding additional fields to
contacts.people using contacts.extensions. My only problem is that have no
idea how to query the contacts.people using a join with contacts.extensions.
I'm not trying to modify/extend the contacts provider.

One very very ugly solution would be to query on contacts.extensions and
using the person ids to query the contacts.people (manual join) ... The idea
is to create an ListActivity which displays only the extended contacts.

I would like to be able to create a content provider that uses directly the
contacts.db (from the content provider) where i could use my join queries...
but from what I know this is not possible.

Do the content providers support joins? Or is there another way to create
this kind of joins?

One more thing... How can I use Contacts.People.Extensions?

Thanks

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



contacts.extensions

by Tughi » Thu, 30 Oct 2008 03:00:19 GMT


 Hi guys,
I'm trying to extend the contacts by adding additional fields to
contacts.people using contacts.extensions. My only problem is that
have no idea how to query the contacts.people using a join with
contacts.extensions. I'm not trying to modify/extend the contacts
provider.

One very very ugly solution would be to query on contacts.extensions
and using the person ids to query the contacts.people (manual
join) ... The idea is to create an ListActivity which displays only
the extended contacts.

I would like to be able to create a content provider that uses
directly the contacts.db (from the content provider) where i could use
my join queries... but from what I know this is not possible.

Do the content providers support joins? Or is there another way to
create this kind of joins?

One more thing... How can I use Contacts.People.Extensions?

Thanks
--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Other Threads

1. intent-filter for addContact and editContact ?

I would start looking here:

http://code.google.com/android/reference/android/content/ContentResolver.html#registerContentObserver(android.net.Uri,
boolean, android.database.ContentObserver)

with ContentObserver.registerContentObserver which sounds like it
should do what you want.  I haven't used the function yet, so you may
have to mess with it.  Please report back you results so others can
know the answer too.  Thanks!

Bill




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

2. ContentProvider/SQLiteDatabase.delete() Docs

The online docs for ContentProvider/SQLiteDatabase.delete() do not
document the third parameter "String[] whereArgs".

I assume that the idea is that the second parameter (the where clause)
could contain replaceable parameters in the form of question marks (?)
and the Strings contained in the whereArgs array would replace the
question marks in the where clause.

Could someone verify/debunk this assumption?
--~--~---------~--~----~------------~-------~--~----~

3. ALSA userspace library

4. If I find a bug in Android OS

5. Why Android Market blocked in some countries?

6. Alert on menu select

7. kSOAP2 with SDK1.0