我想用putStringArrayListExtra如何使用意圖的putStringArrayListExtra發送自定義列表數據?
@Override
protected void onPostExecute(List<MainActivityModel> result) {
super.onPostExecute(result);
Intent intent = new Intent(SplashScreen.this,MainActivity.class);
intent.putStringArrayListExtra("data", result);
startActivity(intent);
}
沒有工作!請詳細說明 – hitesh
你嘗試了什麼?你需要在需要發送的類上實現Parcelable,並使用我提到的方法.. –