On Mon, Mar 14, 2011 at 5:07 PM, TreKing <[email protected]> wrote: > On Sat, Mar 12, 2011 at 3:15 PM, Snarky <[email protected]> wrote: >> >> Depending on the layout that's current, I want the Back button to either >> take the user back to the Main layout (Prefs and T-List), or back to the >> Transaction List (T-Details). > > Why not use two activities and let the system do it's thing (automatically > taking you back where you came from) instead of this conditional > tom-foolery?
Or, hang tight for a bit, and you can use fragments and the FragmentManager, if some of these things might be on the screen at the same time. The "hang tight" is just a matter of the community wrapping its collective head around fragments and the new Android Compatibility Library (with the painful acronym of ACL). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in Oslo: http://bit.ly/fjBo24 -- 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

