java使用json和restful将数组数据从本地sqlite数据库插入SQL Server
如何使用json和restful将数组数据从本地sqlite数据库插入SQL Server?请告诉我这个想法
public static class MyTask extends AsyncTask<String,String,String> {
@Override
protected void onPreExecute() {
super.onPreExecute();
}
@Override
protected String doInBackground(String... params) {
return null;
}
@Override
protected void onPostExecute(String s) {
super.onPostExecute(s);
}
public void sendDataToServer(){
}
}
# 1 楼答案
您可以尝试将
JSONObject
或模型类object
存储到本地数据库中在
customer
中,您将获得对象,然后可以将该对象发送到sql server