Android Question SQL Connect from Android App

hasexxl1988

Active Member
Licensed User
Longtime User
Hello,
I have an Android app and would now like to create a user login as well as manage the game's gameplays in this SQL database.
The app is supposed to be able to write data to the SQL database as well as to read.

I have already tried this but without success:
https://www.b4x.com/android/forum/threads/connect-android-to-mysql-database-tutorial.8339/#content

I have so far only experience with the MySQL LocalDB system in Android, but not how to exchange a DB online claim or data.

Is it advisable to manage this via a PHP interface?

I dont understand the RDC Logic.


Can I also use "CloudKVS" for the intended purpose?

The mirror data could thus be stored locally in an SQLDB.
 
Last edited:

ronell

Well-Known Member
Licensed User
Longtime User
you can use okhttputils2

B4X:
Dim job As HttpJob
    job.Initialize("job1", Me)
    job.Download2(url, _
    Array As String("user_id",userid,"user_pass",userpass)) ' <-- send login credentials to webservice

Sub JobDone (Job As HttpJob)

Log("JobName = " & Job.JobName & ", Success = " & Job.Success)
'do what you want here

End Sub
 
Upvote 0

hasexxl1988

Active Member
Licensed User
Longtime User
you can use okhttputils2

B4X:
Dim job As HttpJob
    job.Initialize("job1", Me)
    job.Download2(url, _
    Array As String("user_id",userid,"user_pass",userpass)) ' <-- send login credentials to webservice

Sub JobDone (Job As HttpJob)

Log("JobName = " & Job.JobName & ", Success = " & Job.Success)
'do what you want here

End Sub
I have testbed a SQL database.

Do I then have to enter the loginname and the password of the SQL fix in the app that the data can be stored and read?
So the SQL Admin login name I created myself?
 
Upvote 0

ronell

Well-Known Member
Licensed User
Longtime User
I have testbed a SQL database.

Do I then have to enter the loginname and the password of the SQL fix in the app that the data can be stored and read?
So the SQL Admin login name I created myself?

sorry.. i didnt get your question, can you explain it more clearly?
 
Upvote 0
Top