Saturday, March 26, 2011

[android-developers] Email Intent Back Button Handling

Hi All,

I am facing a problem in my application.  I am having an activity in which there is an Email button from which the Email Intent is called.  Now, the flow should be like that when I press back button without clicking on email button it should finish the current activity.  However, once i clicked on email button and then pressing back button it should stay there in the activity as per the normal flow.
I had written the code that when the back button is directly pressed in the activity, then onKeyCode() method I had called the finish() and when the email button is pressed i had checked a boolean variable in that. 
Now, the problem is it never goes in the onKeyCode() method when the email intent is called and pressing back button on it.

Any help on this will be highly appreciated as i need it on urgent basis.

Thanks & Regards
Laxmi Verma

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