Java tutorial
//package com.java2s; import android.annotation.SuppressLint; public class Main { @SuppressLint("NewApi") public static boolean isGetListSuccess(String listjson) { if (listjson == null) { return false; } if (listjson.isEmpty()) { return false; } if (listjson.contains("error_code")) { return false; } else { return true; } } }