2011-11-09 3 views
1

한 목록에서 다른 활동으로 목록 (예 : 목록)을 전달하는 법. 예를 들어 나는 다음과 같은 JSON을 가지고있다 - 합격 목록 <Class> 한 활동에서 다른 활동으로

{ 
"acclst":[{ 
    "accountInfoData":[{ 
      "userId":9, 
      "rid":"1-Z5S3", 
      "acnme":"acc_1234.", 
      "actpe":"Fabricator/Distributor", 
      "mph":"2660016354", 
      "euse":"Biofuels", 
      "com":"0", 
      "sta":"Active", 
      "stem":"BBUSER5", 
      "wsite":"", 
      "fax":"", 
      "zone":"", 
      "crted":"BBUSER4", 
      "statusX":1, 
      "partyId":0, 
      "address":[] 
     } 
    ] 
} 
], 
"conlst":[], 
"actlst":[], 
"prolst":[], 
"code":"200" 
} 

가 어떻게 다른 하나 개의 활동에서 conlst을 전달하는 방법을 모든 예제 나를 도울 것인가?.

답변

0

목록을 번들에 추가하고 묶음을 의도에 넣을 수 있습니다.

Intent i = new Intent(currentActivity.this,nextActivity.class); 
Bundle bundle = new Bundle(); 
bundle.putSerializable("key",conlst); 
i.putExtras(packData); 
startActivity(i); 

그렇지 않으면 수업 목록에서 parcelable | http://developer.android.com/reference/android/os/Parcelable.html 다음과 같이 묶음으로 묶으십시오. -

관련 문제