我已经开发了一个应用程序,允许用户浏览图片并写入关于他的一些信息 关于他,所有这些信息将存储在人名为 的类中。他按下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