android - use Broadcast receiver to receive ViewPager.getCurrentItem() changes -


the title says , want use broadcast receiver watch viewpager.getcurrentitem() changes , when user turns first page second page , value of viewpager.getcurrentitem changes 0 1 ... when changes want invalidateoptionsmenu() can setup new menuitems new page ... can me in ?

edit :

my purpose done answer got in comments , , still need answer utilizing broadcast receiver operation , later on use ...

why dont use shared preferences this......its less complex.....these tutorials should help....

http://www.mybringback.com/tutorial-series/12260/android-sharedpreferences-example/

http://alchemiaandroid.altervista.org/sharedpreferencestutorial.html


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -