Hey Hi,

The following link might be useful.  And also check anywhere in the Activity
A, call to finish() has handled properly or not.
http://developer.android.com/guide/practices/ui_guidelines/activity_task_design.html


Thanks,
Nidhi


On Tue, Nov 30, 2010 at 8:29 AM, MaheshSharma <
[email protected]> wrote:

> Hello All,
> My app is kind of a music app and I have a playback bar that I need to
> be visible across all the views.
>
> I had three activities, A/B/C. Instead of adding the playback bar
> explicitly to all  A,B,C. I added the Playback Bar to A and made A,B,C
> as ActivityGroups.
>
> Since, A has the playback bar, now I when I start B from A, I call
> setContentView from A to show B.
>
> The problem is, once I call setContentView to show B, and then if the
> user presses back key in B, then it goes to home screen, instead of
> coming to A.
>
> I have seen some snippets on web, which maintain the view stack and
> when user presses the back key they pop up the previous view.
>
> I couldnt implement that.
>
> Questions :
> 1) Is there any better way to having a activity like Playback bar/
> Status bars across all the views/activities ?
>
> 2) If the above way is the only way to do it,then how can I handle the
> back key?
>
> With Regards
> MS.
>
> --
> 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]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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