Try calling setResult from onPause - I believe onStop is too late, due
to how Start/Stop/Pause/Resume are intermingled.

2011/8/12 hectordu...@yahoo.com <hectordu...@yahoo.com>:
> :-(
>
> so, if the user press back, the method setResult(RESULT_OK, rit),
> called from onStop() ... does not work?
>
> On Aug 12, 12:35 pm, Mark Murphy <mmur...@commonsware.com> wrote:
>> On Fri, Aug 12, 2011 at 1:16 PM, hectordu...@yahoo.com
>>
>> <hectordu...@yahoo.com> wrote:
>> > "have Activity 1 use
>> > startActivityForResult() to start up Activity 2, with Activity 2
>> > sending the result back via setResult(), followed by finish(). "
>>
>> > ok, thats exactly what the activities do; but the result back doesnt
>> > work when the hardware keyboarb (back) is used.
>>
>> It's not supposed to. If they press BACK, that means they are not
>> choosing something.
>>
>> --
>> Mark Murphy (a Commons 
>> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>>
>> Android Training...At Your Office:http://commonsware.com/training
>
> --
> 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

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