开发者

Accessing MySQL Directly from Android

I am currently developing an Android application. I want to be able to access MySQL from my website directory without needing to use JSON, SOAP or PH开发者_StackOverflow中文版P in order to access MySQL. Is it possible to to import a MySQL connector into an android app.

Thanks for the help


You can use protoBufs instead by Google or use mySQL's connector example here but using the connector wouldn't be safe as @Shaun said in his answer. So it is possible.


Wow, I like how someone actually said its not possible. This is java we are working with isnt it? Its not easy is the answer. You can always take a java library already written for this in full out java, and rewrite it to work with android. The problem? Its not easy, thats why there is not a very well known library for it yet. Theres alot of connection issues, and security issues to think about when doing this from a phone. One, you dont have a dedicated stream of connection (meaning, your connectivity could drop at any moment) and your data could be corrupt, or, you query coudl have left out the LIMIT at the end you could whipe your database. Secondly, you have to worry about the security of your database. Phones are in no way the most secure devices out there, let alone android.


No this isn't possible. You'll require a web service front end.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜