And the developer post about the new Gmail API under the hood of the Play Store update:
The Gmail Android app now includes a public ContentProvider that you can use to retrieve label data to access unread counts for specific accounts’ inboxes and labels.

More details, and sample code, at the link.
Shared publiclyView activity