In my app, I'm trying to open the Gmail account selection screen that
you see when you choose the "Accounts" option in the Gmail app. The
same screen is displayed when you've received new email notifications
on more than one Gmail account. Using the the logcat utilities, I've
learned the name of the Intent that is called but when I attempt to
launch that activity, I get a "Permission Denial" warning from the
ActivityManager right before my startActivity call causes an uncaught
exception force close. Following is the relevant log entry.
04-09 14:13:31.497: WARN/ActivityManager(1033): Permission Denial:
starting Intent
{ cmp=com.google.android.gm/.MailboxSelectionActivity } from
ProcessRecord{44a3feb0 1608:com.brandongoodman.gmailswitcher/10125}
(pid=1608, uid=10125) requires null
I'm guessing the issue lies in the permissions google has set on this
activity. I see the "requires null" at the end of the warning. Am I
correct in assuming this means there are permissions set on that
activity that I do not hold? Is there way to determine and obtain the
required permission?
I do realize that not all builds of android have the gmail app and of
those that do, not all support multiple accounts. I still intend to
pursue this functionality for the benefit of those that can support
it. Thanks in advance for any insight.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
To unsubscribe, reply using "remove me" as the subject.