Android的 - 我应该使用从远程数据库获取数据? [英] Android - What should I use to get data from remote db?

查看:128
本文介绍了Android的 - 我应该使用从远程数据库获取数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用存储在远程数据库中的数据的Andr​​oid应用程序。
我现在Parse.com工作我的数据存储,但我可能会改变到MySQL。
我应该使用什么结构加载到我的屏幕上的数据?
该数据是我想找出一个地图上的对象。
因此,从一个对象被从数据库加载的时刻,我要尽可能快将其放置在我的地图。
因此,完成所有的对象之前从数据库加载,应该已经在地图上显示的一些对象。

I'm working on an Android app that uses data stored in a remote database. I'm now working with Parse.com for my data storage but I might change to mysql. What structure should I use to load the data on to my screen? The data are objects that I want to pinpoint on a map. So from the moment an object is loaded from the database, I want to place it on my map as fast as possible. So before all the objects are done loaded from the database, there should already be some objects shown on the map.

我应该使用的AsyncTask,装载机,内容提供商,服务,...?

Should I use AsyncTask, Loader, Content provider, Service, ... ?

推荐答案

在一般来说,如果你希望你的Andr​​oid应用程序与远程数据库进行交互,你必须开发出拥有所有你想要在你的Andr​​oid应用程序使用的方法的web服务像插入,选择,更新和删除,这里是一个很好的教程开始。的点击这里请中您也可以使用JDBC驱动程序库用于SQL Server允许您连接到数据库的情况下直接使用数据库<一个href=\"http://amitku.word$p$pss.com/2011/08/03/how-to-connect-and-access-sql-database-server-from-android-app/\"相对=nofollow>点击这里请

In general if you want your Android application to interact with remote database you have to develop a webservice that has all the methods that you want to use in your android app like insert,select,update and delete, and here is a good tutorial to start with.Click Here Please Also you can use JDBC driver library for SQL Server which allow you to connect to a database directly without using database Click here please

这篇关于Android的 - 我应该使用从远程数据库获取数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆