On Sat, Mar 26, 2011 at 12:42 PM, Laxmi Verma
<[email protected]>wrote:

> Now, the flow should be like that when I press back button without clicking
> on email button it should finish the current activity.
>

That's the default behavior.


> However, once i clicked on email button and then pressing back button it
> should stay there in the activity as per the normal flow.
>

That's not normal flow. Pressing back button finishes an activity - that's
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.
>

What? That's not very clear.


> Now, the* problem is it never goes in the onKeyCode() method when the
> email intent is called and pressing back button on it.
> *
>

If you're expecting your key code function to be called during another
activity, that's not going to happen.

-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices

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

Reply via email to