I'm going to develop a shopping application which include several cascading forms. The development platform is android 3.1. I got two problems.

  1. what is a good strategy to have multiple forms? e.g. start new activity for each cascading form?
  2. if using multiple activities is a good solution, how can share information between activities like shopping cart data (DB,Shared Class,...)?

I just jumped from C++ over here and I'm not that expert in visual environment application development.

有帮助吗?

解决方案

I would:

1) Use a different activity/layout for each form (things are easier and more organised).
2) Use an Application instance to store the global information.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top