Actually, jRDC2 is designed to be compiled with B4J, not B4A. It can be accessed via B4A/B4i and B4J (B4R via a MQQT gateway). If you want to access your DB directly from your Android device, then you need to check out jSQL. jSQL previously (before becoming an internal lib) was called JdbcSQL. The post announcing JdbcSQL (
https://www.b4x.com/android/forum/threads/jdbcsql-directly-connect-to-remote-databases.84016/) has a demo program included that needs a couple of modifications to be able to work.
0) Include/enable the jSQL library in the library tab
1) In the Starter service change (line 6)
to
2) In the Starter service change (line 53)
Wait For (sf) mysql_QueryComplete (Success As Boolean, Crsr As JdbcResultSet)
to
Wait For (sf) mysql_QueryComplete (Success As Boolean, Crsr As ResultSet)
3) Change the Starter service global variables jdbcUrl, Username and Password to work with your installed MySQL DB.
4) If you use the SQL statement of that program, make sure you have a table set up in you DB that can handle the query or change the query and the
Log($"Id: ${Crsr.GetInt("id")}, Name: ${Crsr.GetString("name")}"$)
to display the data retrieved with your query