salve,
anche io uso le librerie mysql 1.02 per connettermi ad un db mysql ( Mariadb precisamente ) e fino a che lancio il debug e installo l'applicazione sul tablet con B4A bridge nessun problema. Ma se l'installazione la lancio con la release l'app non si connette al database e da errore.
immagino possa essere non inerente al thread ma è quello in cui si usano almeno le stesse librerie
grazie a chi vorrà dedicarmi del tempo per la risposta
questo è il codice dell'esempio con cui sto lavorando
Region Project Attributes
#ApplicationLabel: MySQL-Login
#VersionCode: 1
#VersionName:
'SupportedOrientations possible values: unspecified, landscape or portrait.
#SupportedOrientations: unspecified
#CanInstallToExternalStorage: False
#End Region
#Region Activity Attributes
#FullScreen: False
#IncludeTitle: True
#AdditionalJar: mysql-connector-java-5.1.22-bin.jar
#End Region
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
#AdditionalJar: mysql-connector-java-5.1.22-bin.jar
'Private xui As XUI
Dim mh As MysqlHandler
Dim rs As ResultSet
End Sub
Sub Globals
'These global variables will be redeclared each time the activity is created.
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("Layout")
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub Button1_Click
mh.Initialize("com.mysql.jdbc.driver","jdbc:mysql:/192.168.1.236:3306/testmysql","daniele","R@ffa3l3")
If mh.isConnected Then
MsgboxAsync("CONNESSO","INFO")
Else
MsgboxAsync("MANCATA CONNESSIONE "&CRLF&mh.SQLError,"ATTENZIONE")
End If
End Sub