I have a function which saves Android data in sqlite but I have to convert the String data to an Integer.
sqlite
String
Integer
Whenever the S
S
Try this
int block_id = (jsonarray.getJSONObject(i).has(block_id)) ? jsonarray.getJSONObject(i).getInt("block_id") : 0;