I have a ViewPager in which i am displaying 5 Fragments like f1,f2,f3,f4,f5when 
i am pressing back button from in f2 it coming to f1(f2->f1) but when 
i am trying to come from f3 to f1 the back key is not responding.f3->f1 is 
not happening.Why f2 to f1 is possible and why after f2 its not possible
*i am using this code:* 

public boolean onKeyDown(int keyCode, KeyEvent event) {
                if (keyCode == KeyEvent.KEYCODE_BACK) {
                    pager.setCurrentItem(0, true);
                    return true;
                }
                return true;}

-- 
-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to