How to have multif-form application in android?
-
24-03-2021 - |
题
I'm going to develop a shopping application which include several cascading forms. The development platform is android 3.1. I got two problems.
- what is a good strategy to have multiple forms? e.g. start new activity for each cascading form?
- 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.
不隶属于 StackOverflow