我已經開發了一個應用程序,允許用戶瀏覽圖片並寫入關於他的一些信息 關於他,所有這些信息將存儲在人名爲 的類中。他按下NextButton activiy應該把他移到另一個活動與第二活動他會鍵入關於他的另一個信息這些信息,在活動之間移動字符串和圖像Android應用程序
以及在第三活動我應該接受所有這些信息。從(第1和第2次)活動,然後,顯示它在第三一個,,
我的問題是:
1-如何才能將多個信息。我寫了一個移動字符串和其他代碼來移動圖片的代碼,但我無法將它們相互結合!
2-我如何將第二個活動中要輸入的信息插入Person類的同一個對象?
希望我的問題和我的情況是明確的!
非常感謝
Shomokh =)
-----------------------更新--------- -------------------------------
// this is for String info
String FullPersonInfo = person1.toString();
Bundle basket = new Bundle();
basket.putString("key", FullPersonInfo);
Intent intent = new Intent(Form_1.this,Form_2.class);
intent.putExtras(basket);
startActivity(intent);
// I'm confusing how can I add image when i try this code it doesn't work
intent.putExtra("URI", selectedImageUri.toString());
很多嘗試這種http://prasanta-paul.blogspot.in/2010/06/android-parcelable-example.html – Ajay 2012-04-05 12:55:07
OK天意,虐待嘗試感謝 – 2012-04-05 12:57:12