Users Pricing

forum

home / developersection / forums / how to get boolean from savedinstancestate on orientatioin change

How to get boolean from savedInstancestate on orientatioin change

Anonymous User 2850 03 Feb 2015

I want to save some boolean variables in Bundle i.e savedInstaceState those i can use after orientation changed .

I tried but always the savedInstanceState result in null

if(savedInstanceState==null){

 savedInstanceState=new Bundle();

 savedInstanceState.putBoolean("isLogoLoaded",true);

 }else{

 savedInstanceState.putBoolean("isLogoLoaded",true);

please provide the better way thanks .


I am a content writter !


1 Answers