android - How to resolve multiple onclicklistner that are using together -


this code , can't solve this. i've been confused couple of days error not disappear. see error in onclicklistner , other places. please me.

import java.util.arraylist; import java.util.collections; import java.util.random; import android.app.activity; import android.app.dialog; import android.content.context; import android.content.intent;  import android.graphics.color;   import android.graphics.typeface;  import android.media.mediaplayer;   import android.os.bundle;  import android.os.handler;   import android.view.view;   import android.widget.button;   import android.widget.imageview;  import android.widget.progressbar;  import android.widget.textview;  import android.view.view.onclicklistener;      this.   optionb.setonclicklistener(new view.onclicklistener(){            @override         public void onclick(view arg0)         {             arabicquiz.this.optiona.setenabled(false);             arabicquiz.this.optionc.setenabled(false);           arabicquiz.this.optiond.setenabled(false);           arabicquiz.this.temps.cancel();           string str = arabicquiz.this.optionb.gettext().tostring();           if (((question)arabicquiz.this.var4.get(arabicquiz.this.index.intvalue())).getans().equalsignorecase(str))           {               arabicquiz localarabicquiz = arabicquiz.this;             localarabicquiz.lavel = integer.valueof(1 + localarabicquiz.lavel.intvalue());             arabicquiz.this.dynamiclevel = localarabicquiz.lavel.intvalue();             arabicquiz.this.optionb.setbackgroundresource(2130837504);             arabicquiz.this.optionb.settextcolor(-16777216);             if (arabicquiz.mpright != null) {                 arabicquiz.mpright.start();             }             arabicquiz.this.handler.postdelayed(new runnable()             {               public void run()               {                   arabicquiz.this.optiond.setenabled(true);                 arabicquiz.this.optionc.setenabled(true);                 arabicquiz.this.optiona.setenabled(true);                 arabicquiz.this.optionb.setbackgroundresource(2130837507);                 arabicquiz.this.optionb.settextcolor(-1);                 arabicquiz.this.kbc(arabicquiz.this.var4, arabicquiz.this.lavel.intvalue());                 arabicquiz.this.initcount();                 arabicquiz.this.temps.start();               }             }, 5000l);             return;           }           arabicquiz.this.optionb.setbackgroundresource(2130837505);           arabicquiz.this.optionb.settextcolor(-16777216);           arabicquiz.this.temps.cancel();           if (((question)arabicquiz.this.var4.get(arabicquiz.this.index.intvalue())).getans().equalsignorecase(arabicquiz.this.optiona.gettext().tostring()))           {               arabicquiz.this.optiona.setbackgroundresource(2130837504);             arabicquiz.this.optiona.settextcolor(-16777216);           }           (;;)           {             if (arabicquiz.mpwrong != null) {                 arabicquiz.mpwrong.start();             }             arabicquiz.this.handler.postdelayed(new runnable()             {               public void run()               {                 intent localintent = new intent();                 localintent.putextra("total", arabicquiz.this.min);                 localintent.putextra("status", "آسÙØŒ حاول مرة أخرى");                 arabicquiz.this.finish();                 arabicquiz.this.startactivity(localintent.setclass(arabicquiz.this, end.class));               }             }, 5000l);             return;              if (((question)arabicquiz.this.var4.get(arabicquiz.this.index.intvalue())).getans().equalsignorecase(arabicquiz.this.optionc.gettext().tostring()))             {                 arabicquiz.this.optionc.setbackgroundresource(2130837504);               arabicquiz.this.optionc.settextcolor(-16777216);             }             else if (((question)arabicquiz.this.var4.get(arabicquiz.this.index.intvalue())).getans().equalsignorecase(arabicquiz.this.optiond.gettext().tostring()))             {                 arabicquiz.this.optiond.setbackgroundresource(2130837504);               arabicquiz.this.optiond.settextcolor(-16777216);             }           }         }       });        this.optionc.setonclicklistener(new view.onclicklistener()       {           @override           public void onclick(view arg0)         {             arabicquiz.this.optionb.setenabled(false);           arabicquiz.this.optiona.setenabled(false);           arabicquiz.this.optiond.setenabled(false);           arabicquiz.this.temps.cancel();           string str = arabicquiz.this.optionc.gettext().tostring();           if (((question)arabicquiz.this.var4.get(arabicquiz.this.index.intvalue())).getans().equalsignorecase(str))           {               arabicquiz localarabicquiz = arabicquiz.this;             localarabicquiz.lavel = integer.valueof(1 + localarabicquiz.lavel.intvalue());             arabicquiz.this.dynamiclevel = localarabicquiz.lavel.intvalue();             arabicquiz.this.optionc.setbackgroundresource(2130837504);             arabicquiz.this.optionc.settextcolor(-16777216);             if (arabicquiz.mpright != null) {                 arabicquiz.mpright.start();             }             arabicquiz.this.handler.postdelayed(new runnable()             {               public void run()               {                   arabicquiz.this.optionb.setenabled(true);                 arabicquiz.this.optiond.setenabled(true);                 arabicquiz.this.optiona.setenabled(true);                 arabicquiz.this.optionc.setbackgroundresource(2130837508);                 arabicquiz.this.optionc.settextcolor(-1);                 arabicquiz.this.kbc(arabicquiz.this.var4, arabicquiz.this.lavel.intvalue());                 arabicquiz.this.initcount();                 arabicquiz.this.temps.start();               }             }, 5000l);             return;           }           arabicquiz.this.optionc.setbackgroundresource(2130837505);           arabicquiz.this.optionc.settextcolor(-16777216);           arabicquiz.this.temps.cancel();           if (((question)arabicquiz.this.var4.get(arabicquiz.this.index.intvalue())).getans().equalsignorecase(arabicquiz.this.optionb.gettext().tostring()))           {               arabicquiz.this.optionb.setbackgroundresource(2130837504);             arabicquiz.this.optionb.settextcolor(-16777216);           }           (;;)           {             if (arabicquiz.mpwrong != null) {                 arabicquiz.mpwrong.start();             }             arabicquiz.this.handler.postdelayed(new runnable()             {               public void run()               {                 intent localintent = new intent();                 localintent.putextra("total", arabicquiz.this.min);                 localintent.putextra("status");                 arabicquiz.this.finish();                 arabicquiz.this.startactivity(localintent.setclass(arabicquiz.this, end.class));               }             }, 5000l);             return;             if (((question)arabicquiz.this.var4.get(arabicquiz.this.index.intvalue())).getans().equalsignorecase(arabicquiz.this.optiona.gettext().tostring()))             {                 arabicquiz.this.optiona.setbackgroundresource(2130837504);               arabicquiz.this.optiona.settextcolor(-16777216);             }             else if (((question)arabicquiz.this.var4.get(arabicquiz.this.index.intvalue())).getans().equalsignorecase(arabicquiz.this.optiond.gettext().tostring()))             {                 arabicquiz.this.optiond.setbackgroundresource(2130837504);                 arabicquiz.this.optiond.settextcolor(-16777216);             }           }         }       });       this.optiond.setonclicklistener(new view.onclicklistener()       {           @override          public void onclick(view arg0)         {             arabicquiz.this.optionb.setenabled(false);           arabicquiz.this.optionc.setenabled(false);           arabicquiz.this.optiona.setenabled(false);           arabicquiz.this.temps.cancel();           string str = arabicquiz.this.optiond.gettext().tostring();           if (((question)arabicquiz.this.var4.get(arabicquiz.this.index.intvalue())).getans().equalsignorecase(str))           {               arabicquiz localarabicquiz = arabicquiz.this;             localarabicquiz.lavel = integer.valueof(1 + localarabicquiz.lavel.intvalue());             arabicquiz.this.dynamiclevel = localarabicquiz.lavel.intvalue();             arabicquiz.this.optiond.setbackgroundresource(2130837504);             arabicquiz.this.optiond.settextcolor(-16777216);             if (arabicquiz.mpright != null) {                 arabicquiz.mpright.start();             }             arabicquiz.this.handler.postdelayed(new runnable()             {               public void run()               {                   arabicquiz.this.optionb.setenabled(true);                 arabicquiz.this.optionc.setenabled(true);                 arabicquiz.this.optiona.setenabled(true);                 arabicquiz.this.optiond.setbackgroundresource(2130837509);                 arabicquiz.this.optiond.settextcolor(-1);                 arabicquiz.this.kbc(arabicquiz.this.var4, arabicquiz.this.lavel.intvalue());                 arabicquiz.this.initcount();                 arabicquiz.this.temps.start();               }             }, 5000l);             return;           }           arabicquiz.this.optiond.setbackgroundresource(2130837505);           arabicquiz.this.optiond.settextcolor(-16777216);           arabicquiz.this.temps.cancel();           if (((question)arabicquiz.this.var4.get(arabicquiz.this.index.intvalue())).getans().equalsignorecase(arabicquiz.this.optionb.gettext().tostring()))           {               arabicquiz.this.optionb.setbackgroundresource(2130837504);               arabicquiz.this.optionb.settextcolor(-16777216);           }           (;;)           {             if (arabicquiz.mpwrong != null) {                 arabicquiz.mpwrong.start();             }             arabicquiz.this.handler.postdelayed(new runnable()             {               public void run()               {                 intent localintent = new intent();                 localintent.putextra("total", arabicquiz.this.min);                 localintent.putextra("status", ");                 arabicquiz.this.finish();                 arabicquiz.this.startactivity(localintent.setclass(arabicquiz.this, end.class));               }             }, 5000l);             return;             if (((question)arabicquiz.this.var4.get(arabicquiz.this.index.intvalue())).getans().equalsignorecase(arabicquiz.this.optionc.gettext().tostring()))             {                 arabicquiz.this.optionc.setbackgroundresource(2130837504);                 arabicquiz.this.optionc.settextcolor(-16777216);             }             else if (((question)arabicquiz.this.var4.get(arabicquiz.this.index.intvalue())).getans().equalsignorecase(arabicquiz.this.optiona.gettext().tostring()))             {                 arabicquiz.this.optiona.setbackgroundresource(2130837504);                 arabicquiz.this.optiona.settextcolor(-16777216);             }           }         }       });       this.imgfivtyfivty.setonclicklistener(new view.onclicklistener()       {         public void onclick(view paramanonymousview)         {             arabicquiz.this.lifelinefivtyfivty();         }       });       this.imgphoneafriend.setonclicklistener(new view.onclicklistener()       {         public void onclick(view paramanonymousview)         {             arabicquiz.this.loadphoneafriend();         }       });       this.imgaudiancepoll.setonclicklistener(new view.onclicklistener()       {         public void onclick(view paramanonymousview)         {          arabicquiz.this.lifelineaudiancepoll();         }       });       return;     }     catch (exception localexception) {}     protected void onpause()   {     super.onpause();     this.temps.pause();   }    protected void onresume()   {     super.onresume();     this.temps.start();   } } 

i did notice line

localintent.putextra("status", "); 

should be...

localintent.putextra("status"," "); 

Comments

Popular posts from this blog

jquery - How do you format the date used in the popover widget title of FullCalendar? -

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -