if (result == SMSSDK.RESULT_COMPLETE)
{
.....
}
else
{Toast.makeText(getApplicationContext(), "报错信息+"+event, Toast.LENGTH_SHORT).show();//判断异常((Throwable) data).printStackTrace();try
{System.out.println("异常信息:"+((Throwable) data).getMessage().toString());//解析异常JSONObject josn=new JSONObject(((Throwable) data).getMessage().toString());System.out.println(josn.get("/status/").toString());System.out.println(josn.get("description").toString());System.out.println(josn.get("detail").toString());}
catch (JSONException e)
{// TODO Auto-generated catch blocke.printStackTrace();}
}