Skip to main content

Reuseable activties?



Hi i have a couple of question regaurding android and activites, i have tried looking online but can't seem to find what i am looking for, anyway;





Say i have a menu activity with an option to create new "drawactivity", when user selects this an activity is presented with a toolbar on the top the lower enables the user to draw, then the user will save this activity and quit, when the user returns to the menu, the last activity the user was on is avaiable to load and the create new option is also avaible.





So here are my questions;





  1. How is it possible to load an activty with a predefined layout and fuctions/code ready? and reuse it?



  2. Save this activity



  3. Load this activity







If you have any resources or anything to point me in the right direction it would be greatly appreciated.





Many thanks.


Comments

Popular posts from this blog

Slow Android emulator

I have a 2.67 GHz Celeron processor, 1.21 GB of RAM on a x86 Windows XP Professional machine. My understanding is that the Android emulator should start fairly quickly on such a machine, but for me it does not. I have followed all instructions in setting up the IDE, SDKs, JDKs and such and have had some success in staring the emulator quickly but is very particulary. How can I, if possible, fix this problem?