如何从android的xml Web服务中删除内容!!? 我想要做的nxt:1 - 解析XML文件的数据后,进入listView。用户应该选择他想从服务中删除的项目之一! 和活动应重新加载并显示新的列表! 我想知道如何remove the Item from the ws
以及如何reload the page
!从xml中删除内容Web服务
ListAdapter getCourseAdapter= new SimpleAdapter(this,coursesList,R.layout.taken_list,
new String[] {"code","creditHours","name"}, new int[]
{R.id.t3,R.id.hrs,R.id.desc});
coursesLV.setAdapter(getCourseAdapter);
coursesLV.setOnItemClickListener(new OnItemClickListener(){
public void onItemClick(AdapterView<?> arg0, View arg1, final int arg2,
long arg3) {
// TODO Auto-generated method stub
coursesList.remove(this);
}
});
您需要向Web服务发送请求,实际的通话将取决于您使用的Web服务。它是一个公共API,如果它发布它是什么,我/有人会看看。 –
我发送一个请求通过使用:HttpClient httpclient = new DefaultHttpClient(httpParameters); \t \t \t HttpResponse httpResponse; \t \t \t HttpGet httpGet; ??? – user1767371