Need clarification for the SmsManager doc

by chris » Sat, 11 Apr 2009 18:03:26 GMT


Sponsored Links
 Hi , i'm trying to send properly a SMS aka get notified when the sms
is not send.

here is what the doc says :

sentIntent      if not NULL this PendingIntent is broadcast when the
message is sucessfully sent, or failed. The result code will be
Activity.RESULT_OK for success, or one of these errors:
RESULT_ERROR_GENERIC_FAILURE RESULT_ERROR_RADIO_OFF
RESULT_ERROR_NULL_PDU. The per-application based SMS control checks
sentIntent. If sentIntent is NULL the caller will be checked against
all unknown applicaitons, which cause smaller number of SMS to be sent
in checking period.

What i would like to know is what is how to get the result code.
where is this information in the broadcasted intent ?


Regards

Chris
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. com.google Authenticator for the new android.accounts.AccountManager API.

I am working on writing (and eventually releasing on the Android
marketplace) a Google authenticator that will authenticate with Google
and return a Google Auth Token (see: 
http://code.google.com/apis/gdata/docs/auth/overview.html).
The ultimate goal is to have this authenticator mirror the behavior of
the com.google authenticator that comes with the Motorola Droid.

This will hopefully allow developers to have such an authenticator
available to them on the SDK emulator as well as end-users with any
phone running Android 2.0 that does not have the official Google
version of the authenticator (ie: custom ROMs, future phones that
don't get the full Google package, etc.).

Also, since there is no word on how long before any phones besides the
Motorola Droid get Android 2.0, this will hopefully allow developers
to start leveraging the new AccountManager APIs sooner rather than
later (ie: via the SDK emulator).

I have created an open source project for this endeavor (see link
below) that contains the first bit of work I have done on getting the
Authenticator writen.  If you are interested in contributing let me
know, I am definitely open to the help or if you can offer insight as
to the proper use of the new AccountManager API or some place I am
using it wrong it would be much appreciated.  Worst case scenario I'll
plug away at this in my free time and at least people can use it as a
reference for writing their own Authenticators in the future.

http://code.google.com/p/google-authenticator-for-android/

-- 

2. AccountManager and Google App Engine

I am also interested in this.  If it is indeed possible to access the
authentication token for the Google accounts associated with the phone
itself, and to subsequently pass those to GAE so that backend
functionality can proceed to use the various GAE and other Google
services without requiring authentication, it seems like it's going to
be a significant draw to GAE for Android devs.




-- 

3. ScrollView scroll timeout ?

4. Android Eclair -- hangs after gralloc/mapFrameBufferLocked

5. I Didn't come here to cause no trouble, I just came to do the Android Market Shuffle!

6. RESET SQLite AUTOINCREMENT

7. Service runnning while PowerManager decides to sleep ?