M
M
MdaUZH2016-08-24 12:45:13
Android
MdaUZH, 2016-08-24 12:45:13

Selecting a number from the database does not work on some devices?

Hello everyone, I ran into a problem that on some devices (mostly old ones, I noticed when I tested it on small screens), there is no selection of a number from the database, and everything else gets it without any problems, namely this is not, why?

int im = t.getInt(t.getColumnIndex("image")); 
String in = t.getString(t.getColumnIndex("name"));

For example, on Nexus 5X API 23 everything is fine
On Nexus One API 23, the variable im = 0
is stored in int image number 2130837589
It is not clear why this is so, please tell me how to fix it?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question