Android-Debug-Database
Android-Debug-Database copied to clipboard
Error value when reading data of Long Type!!!!
This tool is of greate help.Thank you~But I found a problem that confuse me:
Long type value in the database:
494532142382833664 494532388517175296 494533174080954368
but showed in the Android debug database as follows:
494532142382833660 494532388517175300 494533174080954400
correct value can be seen in navicat, please fix this!
That's because the web can't use big numbers.You can change DatabaseHelper.java
case Cursor.FIELD_TYPE_INTEGER:
columnData.dataType = DataType.INTEGER;
columnData.value = cursor.getLong(i);
to
case Cursor.FIELD_TYPE_INTEGER:
columnData.dataType = DataType.TEXT;
columnData.value = String.valueOf(cursor.getLong(i));
@mnb65482 thank you for your help~