Hi,

     I sent this out last night, but I didn't see it come through, so I'm
sending it again.  Sorry if it is a duplicate.

     This has been killing me.  I finally found examples around the
net for things I wanted to experiment with.  I had to go searching cuz
I could find this information anywhere in the API Docs.

     Two things specifically that I'm interested in are:

     1) For listening for broadcast SMS messages through a broadcast
receiver, I see that you have to defined the action, for the intent in
the broadcast receiver element as:

       <receiver android:name=".<myClassName>">
           <intent-filter>
               <action android:name=
                   "android.provider.Telephony.SMS_RECEIVED" />
           </intent-filter>

       First, where is that name android.provider.Telephony.SMS_RECEIVED
defined?  How am I supposed to
track that down in the API Doc?  There is no android.provider.Telephony
class or package.

       Second, in the code for receiving the actual broadcast, I see you
need to do something like this to get the message(s).

       Object[] pdus = (Object[]) bundle.get("pdus");

       Where is it defined that the extra name in the bundle is "pdus" for
SMS messages.

    2) OK, similar thing for receiving GMail and Exchange email delivery
notifications.

        First, is there a way to get them via a broadcast receiver?

        I see code floating around that you need to do something like this
instead:

contentResolver.registerContentObserver(Uri.parse("content://gmail-ls"),
true, gmailObserver);
Cursor conversations =
_contetResolver.query(Uri.parse("content://gmail-ls/conversations/" +
YourEmailAddress, null, null, null, null);

And the actual conversation messages will be:
Cursor messages =
_contetResolver.query(Uri.parse("content://gmail-ls/conversations/"+
YourEmailAddress + "/"
                                  + String.valueOf(conversationId)
                                  + "/messages"), null, null, null, null);

If this is how you have to do it, then that's fine.  But where is this
documented so that I could have figured this out myself?

   Thanks,
   Joe

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to