-4

I know this topic has already a solution on stackoverflow. But for instance I can't use HttpClient to read a value from my MySQL database. So actually I am looking for a really simple code which can allow to read one value of a MySQL database. Do you have an example which works for API 24?

Eyeslandic
  • 14,553
  • 13
  • 41
  • 54

1 Answers1

0

You need to use a library called jtds This will allow you to manage sql server connections in your Android app. However the comment is correct this will only work with MS SQL Server.

However I found this while I was digging, apparently one of the answers denotes that if you find the correct version of MySQL Connector/J you may be able to get it working. However the functionality may only be available in the target api version that the connection driver works with. See SO post

nulltron
  • 637
  • 1
  • 9
  • 25