Android - If condition is not working correctly

expeweemo

New Member
Can any please find out what is the mistake I am doing here... The value in str is printing true everywhere but still it goes to else..Thanks in Advance\[code\] String str = inputStreamToString(response.getEntity().getContent()).toString(); Log.w("gotit signup response from web", str); if(str.toString().equalsIgnoreCase("true")) { // GO TO HOMEPAGE Intent j = new Intent(); j.setClassName("com.test.babynames", "com.test.babynames.Home"); startActivity(j); }else { Log.w("gotit Signup .... ",str); Log.w("gotit Signup .... ", "FALSE"); result.setText(str); }\[/code\]
 
Top