• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps ContactManager Group UI

srolawson

Lurker
Hi All,

First post here. I am new to Android 2.3.3 but enjoying the ride!

I want to launch an activity which shows the Contact Manager Groups UI. The Activity. The user would be allows to insert and delete users from that group.

This is an exmaple of what I have used to lauch a pick user activity, this works:

Code:
Intent intent = new Intent(Intent.ACTION_PICK,ContactsContract.Contacts.CONTENT_URI);
startActivityForResult(intent, PICK_CONTACT);

I was hoping to do something similar to launch the an insert group Intent:

Code:
Intent intent = new Intent(Intent.ACTION_INSERT_OR_EDIT);
intent.setType(ContactsContract.Groups.CONTENT_ITEM_TYPE);   
startActivity(intent);

This fails as android is unable to find a registered activity.

This surprised me as I assume the contact manager would have a UI for editing groups which I could reuse.

So, is there a way of launching an activity to add manage the groups in the standard contact manager?


Many Thanks....


Resources

This launches the favorites member view in 2.3 but is marked a deprecated. The behavior I want is similar to this.
Code:
Intent intent = new Intent(Contacts.Intents.UI.LIST_STARRED_ACTION);
startActivity(intent);




ContactsContract.Intents | Android Developers
 
Is there such a screen?

On Android 4.0 the group editing is done from the contacts edit screen. The UI is just a Spinner (drop down list) on the "Edit Contact" screen/Activity.

And their lies another problem:

Unfortunately the various UIs (Sense, TouchWhiz, Blur) all have custom implementations of contacts. It has gotten better over the years but I'd imagine there are still some differences and problems.


Edit: Also welcome to the forums! :)
 
Back
Top Bottom