Android Question Installing B4A App with MySQL

demonio_jack

Member
Licensed User
Hi everyone!!!
This is my very first time in B4A and trying to install a small app with MySQL. It's work in debugging environment... but when I compile it to install in a android phone, fail.
I'm not sure what I have to do, I've seen a lot of videos and posts but I haven't found "the procedure" to make a simple installation.
I need to test my app with some testers, not using playstore.
What files do I need to send for a correct installation??? Can I use a whatsapp msg for that? All the libraries used in my app: How they install on testers mobiles???

Thanks so much.

Demonio
 

aeric

Well-Known Member
Licensed User
What error message showed?
You can compile the app in Release Mode and distribute the apk.
You can upload the apk in dropbox or web hosting and share the link in whatsapp or email.
You do not need to concern about the libraries used as it is compiled into the apk.
 

demonio_jack

Member
Licensed User
What error message showed?
You can compile the app in Release Mode and distribute the apk.
You can upload the apk in dropbox or web hosting and share the link in whatsapp or email.
You do not need to concern about the libraries used as it is compiled into the apk.
When I run the app (released) on mobile tester, the app cannot connect to database... and fail.
 

aeric

Well-Known Member
Licensed User
I don't recommend using the above library. There are other options.

Option 1: If you have VPS where you can run a B4J server, you can use jRDC2

Option 2: If you are using shared hosting, I recommend you to use PHP to connect to MySQL
 

José J. Aguilar

Well-Known Member
Licensed User
Check this:

and follow aeric suggestion if possible.

Don't post code as image, use [code ] your code here [/ code] (with no spaces)
 

DonManfred

Expert
Licensed User
The suggested method to connect to a Database is:

 

Lucas Siqueira

Active Member
Licensed User
It works!!! Thank you so much.
hello, you have the method using mysql's jdbc driver. It is not so secure because your app can be decompiled and people can get data from your bank if it happens and people are aware of the database.

but for simple, personal projects, or even that your application will not be posted on google play, it is very simple to use.

See the example I left.

https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.34.tar.gz
 

Attachments

Top