forum

Home / DeveloperSection / Forums / How to get boolean from savedInstancestate on orientatioin change

How to get boolean from savedInstancestate on orientatioin change

Anonymous User231603-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 !

Can you answer this question?


Answer

1 Answers

Liked By