Android Question Active transaction

keirS

Well-Known Member
Licensed User
Longtime User
You can do this using the reflection library I think.

B4X:
Dim SQL1 As SQL
Dim R As Reflector
Dim inTransaction As Boolean
R.Target = SQL1
R.Target = R.GetField("db")
inTransaction = R.RunMethod("inTransaction")
Log(inTransaction)
 
Upvote 0

mc73

Well-Known Member
Licensed User
Longtime User
If you're using begin and end transaction, you can easily use a flag as erel suggested, and setting it to true at begin, and false after end.
 
Upvote 0
Top