Ellen Spertus
01/22/2020, 7:59 PMvar method: String? = null
try {
method = jsonResponse.getString("method")
} catch (exception: JSONException) {
Log.i(TAG, "No method provide by server.")
}
diesieben07
01/22/2020, 8:00 PMval method = try {
jsonResponse.getString("method")
} catch (exceptino: JSONException) {
Log.i(TAG, "No method provide by server.")
null
}
Ellen Spertus
01/22/2020, 8:03 PMdiesieben07
01/22/2020, 8:03 PMMike
01/23/2020, 1:34 PM