Friday, June 24, 2011

[android-developers] Re: Default SMS Activity Result code coming asRESULT_CANCELED even SMS is received successfully

Copy of the help startActivityForResult(). See the Note on why the result might
not be as expected.
John

Launch an activity for which you would like a result when it finished. When this
activity exits, your onActivityResult() method will be called with the given
requestCode. Using a negative requestCode is the same as calling startActivity
(the activity is not launched as a sub-activity).

Note that this method should only be used with Intent protocols that are defined
to return a result. In other protocols (such as Intent.ACTION_MAIN or
Intent.ACTION_VIEW), you may not get the result when you expect. For example, if
the activity you are launching uses the singleTask launch mode, it will not run
in your task and thus you will immediately receive a cancel result.

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate