Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Navigate to previous Activity

I have two screens, in second screen i have one back button that shows the first screen(using intent). if i click that back button from second screen i navigated to first screen no probs in that.. now i want to navigate back to second screen automatically without clicking any button. Please help me how can i do this. Thanks for ur valuable time .

like image 562
selva Avatar asked Feb 02 '26 07:02

selva


1 Answers

I would give a try to a ViewFlipper activity, with two screens. This, of course, if you can encapsulate your actions into one activity (which i'm sure is manageable with AsyncTasks / Threads, Services and Handlers).

This way you can use gestures, (soft/hard)buttons, dropdowns, -whatever-, to navigate between your screens.

like image 158
rekaszeru Avatar answered Feb 03 '26 21:02

rekaszeru