Every time get result from else block cant get result from if block in android -


every time result else block cant result if block time show result else block,how solve problem please me.here code:

protected void onpostexecute(string result) {      if (pd != null) {         pd.dismiss();     }     try {         log.d("request : 2 ", "" + result);         if (result.equals("1")) {             toast.maketext(registrationpatient.this, "you have submited successfully", toast.length_short).show();             intent intent = new intent(registrationpatient.this, duraentmenu.class);             startactivity(intent);         } else {             textview txt2 = (textview) findviewbyid(r.id.textview2);             txt2.settext("not available");         }     } catch (exception ex) {         ex.printstacktrace();     } } 


Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -