我有这个字符串:"no_questions_by_user"
在一个名为 result 的变量中。
比我做这个检查:
if ( result != null && result.equals( "no_user_id" ) )
{
Log.d( "Post execute: " , "NOOOT OKKKK - no user id" );
}
else
if ( result != null && result.equals( "database_error" ) )
{
Log.d( "Post execute: " , "NOOOT OKKKK - database error" );
}
else
if ( result != null && result.equals( "no_questions_by_user" ) )
{
Log.d( "Post execute: " , "NOOOT OKKKK - no questions by user so far" );
}
else
{
Log.d( "MyQuestionsActivity" , "In JSON parsing area.." );
}
它总是到最后一个。但据我了解,它应该真正进入检查的块result.equals( "no_questions_by_user" )
知道为什么该块没有被执行吗?
谢谢!!