Just tried it out but may have an issue
Hi,
I added the library and the code
"Dim SM As StrictMode
SM.EnableStrictModeForAll(True, False)"
In the activity create.
When I load my program on to the phone I see the following in the LOg:
"Could not find method android.os.StrictMode$VmPolicy$Builder.detectActivityLeaks, referenced from method flm.b4a.strictmode.StrictModeForB4A.EnableStrictModeForActivity
VFY: unable to resolve virtual method 829: Landroid/os/StrictMode$VmPolicy$Builder;.detectActivityLeaks ()Landroid/os/StrictMode$VmPolicy$Builder;
VFY: replacing opcode 0x6e at 0x0010
VFY: dead code 0x0013-0018 in Lflm/b4a/strictmode/StrictModeForB4A;.EnableStrictModeForActivity ()V
Could not find method android.os.StrictMode$VmPolicy$Builder.detectLeakedClosableObjects, referenced from method flm.b4a.strictmode.StrictModeForB4A.EnableStrictModeForClosableObjects
VFY: unable to resolve virtual method 831: Landroid/os/StrictMode$VmPolicy$Builder;.detectLeakedClosableObjects ()Landroid/os/StrictMode$VmPolicy$Builder;
VFY: replacing opcode 0x6e at 0x0010
VFY: dead code 0x0013-0018 in Lflm/b4a/strictmode/StrictModeForB4A;.EnableStrictModeForClosableObjects ()V
Could not find method android.os.StrictMode$VmPolicy$Builder.detectLeakedRegistrationObjects, referenced from method flm.b4a.strictmode.StrictModeForB4A.EnableStrictModeForRegistrationObjects
VFY: unable to resolve virtual method 832: Landroid/os/StrictMode$VmPolicy$Builder;.detectLeakedRegistrationObjects ()Landroid/os/StrictMode$VmPolicy$Builder;
VFY: replacing opcode 0x6e at 0x0010
VFY: dead code 0x0013-0018 in Lflm/b4a/strictmode/StrictModeForB4A;.EnableStrictModeForRegistrationObjects ()V
Could not find method android.os.StrictMode$ThreadPolicy$Builder.detectCustomSlowCalls, referenced from method flm.b4a.strictmode.StrictModeForB4A.EnableStrictModeForSlowCalls
VFY: unable to resolve virtual method 819: Landroid/os/StrictMode$ThreadPolicy$Builder;.detectCustomSlowCalls ()Landroid/os/StrictMode$ThreadPolicy$Builder;
VFY: replacing opcode 0x6e at 0x0010
VFY: dead code 0x0013-0018 in Lflm/b4a/strictmode/StrictModeForB4A;.EnableStrictModeForSlowCalls ()V"
I'm not sure I am seeing the correct strictmode output when I run the program but I do see the following:
"Finalizing a Cursor that has not been deactivated or closed. database = /mnt/sdcard/Android/data/RockDat.com/files/rockdat.sal, table = null, query = SELECT * FROM MasterList ORDER BY manufacturer,item ASC
android.database.sqlite.DatabaseObjectNotClosedException: Application did not close the cursor or database object that was opened here"
I am doing a cursor.close and a sql.close after the code that calls this.
Is the strictmode working correctly?
Why does it say I'm not closing the cursor when I am?
Thanks
Jeff