I want to open Contact from my own Android app.
If I do :
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setData(ContactsContract.Contacts.CONTENT_URI);
I can open contact, showing the People tab. How can I achieve a similar goal but showing the Group tab instead? Changing to ContactsContract.Contacts.CONTENT_GROUP_URI
or ContactsContract.Groups.CONTENT_URI
does not work. Once clicked, it would give a popup "Could not complete operation" and the following message in the console:
01-14 17:21:36.525: W/ContentResolver(26851): Failed to get type for:
content://com.android.contacts/contacts/group/0 (
URI: content://com.android.contacts/contacts/group/0,
calling user: android.uid.system:1000,
calling package is one of: [
com.motorola.usbcamera,
com.motorola.android.deepsleepservice,
com.android.keychain,
com.motorola.blur.setup,
com.android.settings,
com.motorola.atcmd,
com.android.portal,
com.android.vpndialogs,
com.motorola.meter.omap,
com.motorola.dockcomm,
com.motorola.blur.setupsettings,
com.android.providers.settings,
com.motorola.Upgrader,
com.motorola.devicestatistics,
com.motorola.android.eapauthservice,
com.motorola.android.fota,
android,
com.motorola.android.providers.settings,
com.motorola.atcmdlauncher,
com.google.android.backup,
com.motorola.globalunplug,
com.motorola.android.encryption.settings,
com.motorola.blur.provider.datacollector,
com.motorola.datacollection,
com.motorola.dataswitch,
com.android.systemui,
com.motorola.contextual.fw,
com.motorola.vpn,
com.motorola.android.extdispservice,
com.motorola.android.dlnasystemservice
]
)
EDIT Or is it possible to programmatically switch to "Group" tab after starting contact with "People" Tab ?
Any suggestions would be greatly appreciated.