从 android 到服务器执行 CRUD 操作?
你们能给我链接到任何资源或为我指明正确的方向吗?我整天在 google 上搜索,但我只得到 SQLite 教程和文章,也许我没有找对方向。
基本上我想从我的 android 应用程序将数据写入 mysql 数据库。我想为每个用户、特定用户保存诸如订阅和首选项之类的内容(因此我还必须实现某种登录系统)
我可以直接从我的 Android 应用程序执行此操作吗?处理服务器上的请求,然后以 JSON 或 xml 或类似的方式发送数据?
非常欢迎任何有关 CRUD 和登录系统的信息!
Could you guys link me to any resources or point me in the right direction? I've been searching on google all day, but I only get SQLite tutorials and articles, maybe I'm not looking in the right direction.
Basically I want to write data into a mysql database from my android applications. I want to save things like subscriptions and preferences for each user, for a specific user (so I'll also have to implement some sort of login system)
Can I do this directly from my android application, or will I have to use PHP to handle the requests on the server and then send the data in JSON or xml or something like that?
Any information on both the CRUD and the login system is very much welcome!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
你不能从android应用程序中做到这一点,你可以像你说的那样使用php,或者根据你的需要和可能性用java设置一个套接字应用程序。
you can't do that from android app , you can use php like you said or set up a socket application with java depending on your needs and possibilities.
你说的第二个。 :)
你需要一个安静的框架或类似的东西。
( https://stackoverflow.com/questions/3466179/best-lightweight -restful-framework-for-php-5-3 )
The second you said. :)
You need to get a restful framework or stuff like that.
( https://stackoverflow.com/questions/3466179/best-lightweight-restful-framework-for-php-5-3 )