我在这里问了问题。现在我可以将arraylist 传递给另一个活动。
在我的第二个活动中,我试图发布这个数组列表。
ArrayList<com.example.ss.myapp.BasicNameValuePair> testing = this.getIntent().getParcelableArrayListExtra("extraextra");
HttpClient httpclient1 = new DefaultHttpClient();
HttpPost httppost1 = new HttpPost(url);
httppost1.setEntity(new UrlEncodedFormEntity((List<? extends org.apache.http.NameValuePair>) testing));
我收到一个错误: incompatible types: ArrayList<BasicNameValuePair> cannot be converted to List<? extends NameValuePair>
我怎样才能ArrayList<com.example.ss.myapp.BasicNameValuePair> testing
投到ArrayList<NameValuePair> testing
?