Hi,

I have 4 fragments. each fragments have it's own layout and each of them
have MediaPlayer and SeekBar. I have extended FragmentPageAdapter and now I
can change fragments by drag them into right or left of the screen.
The problem is than I want to know which fragments are active and which of
them are paused. because I have MediaPlayer in each fragments and I need to
control MediaPlayer.
How can I stop MediaPlayer of fragment1 when user drag the screen to
fragment2 and so on?
The problem is that onPause() callback doesn't called when the user drag
screen and go to fragment2, but when the user go to fragment3 the onPause()
callback of fragment1 is called. But I don't need to pause fragment1 when
fragment3 is displayed, instead I need to pause fragment1 when fragment2 is
displayed.
Any solution?

-- 
Milad Khajavi
http://lincafe.wordpress.com
Having the source means you can do it yourself.
I tried to change the world, but I couldn’t find the source code.

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