문제

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