I am stuck in swich case. Please check code below
Log.e("@@@@@@@@@@@@@@@@@@@@@ pos",""+posSel_lay);
String ff=Integer.toString(posSel_lay);
//var ffs=Integer.toString(posSel_lay);
Log.e("@@@@@@@@@@@@@@@@@@@@@ pos",""+ff);
if(ff.equals("0")){
Log.e("@@@@@@@@@@@@@@@@@@@Lagan","");
}else if(ff.equals("1")){
Log.e("@@@@@@@@@@@@@@@@@@@MBBS","");
}else if(ff.equals("2")){
Log.e("@@@@@@@@@@@@@@@@@@@JODHA","");
}else if(ff.equals("3")){
Log.e("@@@@@@@@@@@@@@@@@@@ZINDAGI","");
}
I got log only this line
@@@@@@@@@@@@@@@@@@@@@ pos 2
& its not going in swich case why i dont know, can you help me please?
I found solution. I get this posSel_lay from bundle which is passed by other activity.Previously i written switch code in on button click so now i changed flow,
When i am getting value of posSel_lay from bundle that time only i written code of switch
& there i am making some boolean values true or false which is declared locally. And when user
clicks on button that time i used boolean variables for checking. Then its done.
Thanks for your reply.