On Thu, Jan 6, 2011 at 2:18 AM, Warren <[email protected]> wrote:
> First, I want to get the new mail notification

There is no "new mail notification" in Android, because "mail" is not
in Android. "Mail" is an application concept, not an OS concept.

> I used
> getContentResolver().registerContentObserver(Uri.parse"content://
> com.android.email.provider"), true, service)

This assumes:

-- That application exists
-- That application has not been modified
-- That application is what the user is using

None of those are safe assumptions. That is why this is not part of
the Android SDK.

> Then, i want to get this new mail content
> I used
> final String URI = "content://com.android.email.provider/message";

See the above list of assumptions.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android 2.3 Programming Books: http://commonsware.com/books

-- 
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

Reply via email to