On Sat, May 1, 2010 at 10:45 AM, fabricio <[email protected]> wrote:

> This action will result in an Intent being received by a BroadcastReceiver,
> defined in my application.
> Finally, this BroadcastReceiver will start an activity ("activity 2") to
> deal with this intent.
>

Why not just start the second activity from the first? Why go through
broadcasting and receiving an intent?


> The problem is that I have a "quit application" entry in my menu, and
> I can only finish() currently active activity.
> ie I am not able to finish "activity 1" from the menu of "activity 2".
>

Here's an idea: get rid of the "quit application" option. It's really
unnecessary, especially if you're only dealing with 2 activities. You're
saving, what, two back-button presses?


> And I can't use startActivityForResult() as "activity 2" can't be started
> from "activity 1".
>

Why not?

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

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