Lancio la mia applicazione da diversi device:
in una activity precisa effettuo diverse query una dopo l'altra per creare e inserire il db di anagrafiche.
Da diversi device va tutto a buon fine.
In particolare da un device Android 4.0 e un samsung galaxy tab.1 ottengo questi log.
codice:
09-20 10:48:19.900: D/dalvikvm(9849): JDWP invocation returning with exceptObj=0x40d0c5c0 (Ljava/lang/NullPointerException;)
09-20 10:48:20.720: D/dalvikvm(9849): JDWP invocation returning with exceptObj=0x40d0cf08 (Ljava/lang/NullPointerException;)
09-20 10:48:24.360: E/Environment(9849): getExternalStorageState/mnt/sdcard
09-20 10:48:24.670: E/SqliteCursor.cpp(9849): Invalid statement in fillWindow()
09-20 10:48:24.680: D/dalvikvm(9849): JDWP invocation returning with exceptObj=0x40e8fdc8 (Landroid/database/CursorIndexOutOfBoundsException;)
09-20 10:48:24.890: D/dalvikvm(9849): JDWP invocation returning with exceptObj=0x40e901e0 (Landroid/database/CursorIndexOutOfBoundsException;)
09-20 10:48:25.110: D/dalvikvm(9849): JDWP invocation returning with exceptObj=0x40e90450 (Landroid/database/CursorIndexOutOfBoundsException;)
09-20 10:48:25.410: D/dalvikvm(9849): JDWP invocation returning with exceptObj=0x40e90758 (Landroid/database/CursorIndexOutOfBoundsException;)
09-20 10:48:25.650: D/dalvikvm(9849): JDWP invocation returning with exceptObj=0x40e909c8 (Landroid/database/CursorIndexOutOfBoundsException;)
09-20 10:48:25.840: D/dalvikvm(9849): JDWP invocation returning with exceptObj=0x40e90de0 (Landroid/database/CursorIndexOutOfBoundsException;)
09-20 10:48:26.310: D/dalvikvm(9849): JDWP invocation returning with exceptObj=0x40e92688 (Ljava/lang/NullPointerException;)
09-20 10:48:26.950: D/dalvikvm(9849): JDWP invocation returning with exceptObj=0x40e95a70 (Ljava/lang/NullPointerException;)
09-20 10:48:27.380: D/dalvikvm(9849): JDWP invocation returning with exceptObj=0x40e968e8 (Ljava/lang/NullPointerException;)
09-20 10:48:27.790: D/dalvikvm(9849): JDWP invocation returning with exceptObj=0x40e96a80 (Ljava/lang/NullPointerException;)
09-20 10:48:28.410: D/dalvikvm(9849): JDWP invocation returning with exceptObj=0x40e97d68 (Ljava/lang/NullPointerException;)
09-20 10:48:28.470: D/dalvikvm(9849): JDWP invocation returning with exceptObj=0x40e97e18 (Ljava/lang/NullPointerException;)
09-20 10:48:29.040: D/dalvikvm(9849): JDWP invocation returning with exceptObj=0x40e98cb0 (Ljava/lang/NullPointerException;)
09-20 10:48:29.120: D/dalvikvm(9849): JDWP invocation returning with exceptObj=0x40e98d60 (Ljava/lang/NullPointerException;)
09-20 10:48:30.970: E/Environment(9849): getExternalStorageState/mnt/sdcard
09-20 10:48:31.570: I/SqliteDatabaseCpp(9849): sqlite returned: error code = 1, msg = no such table: USERS, db=/data/data/it.mob.mobile.pro/databases/pro.db
Le query vanno in errore xkè in realtà falliscono le CREATE delle tabelle (che precedono le insert) e quindi alla INSERT non trova la tabella (no such table).
Sembrerebbe che non riesce a scrivere sopra, le query con le create però non entrano in catch.
Ho notato che in questi device l'istruzione da commandprompt;
codice:
C:\>adb pull /data/data/it.mob.mobile.pro/databases/pro.db c:\pro.db
mi dà l’errore --> remote object '/data/data/it.mob.mobile.pro/databases/pro.db ‘ does not exist
Mentre con gli altri mi scarica il db su c:.
Rimane cmq un indizio non troppo identificativo perché il problema è che se la tabella già esiste le insert andrebbero a buon fine.
Avete delle idee?
Grazie