public static JSONObject getAppUpdate() throws BarfooError, JSONException { JSONObject jsonobj = CustomHttpClient.httpGet(ApiConfig.AppUpdate, null); Log.i("app_msg", "" + jsonobj); if (!jsonobj.getBoolean("status")) { throw new BarfooError(jsonobj.getString("ErrorMessage")); } return jsonobj.getJSONObject("msg"); }