PDA

View Full Version : Mulit-Page Application in Android



nyerunkar
07-26-2011, 11:51 PM
Hello Friends,
I'm J2ME developer.
right now i'm android beginner.

I want to know,in every android app.
can i take single activity for multi-page or multi-form application....

Is it best way to coding .... cause i think if i take every new activity then it will use lots of space on RAM.

So please suggest me how to make best way android application...

Thanks,
Nilesh.

furbearingmammal
07-27-2011, 01:48 AM
Moved to appropriate forum. :)

alostpacket
07-29-2011, 06:41 PM
Activities are created and destroyed as needed to manage RAM. For the most part you will not need to manage RAM yourself unless you are doing something very intensives or use a lot of images. There is a bug with creating images and orientation changes that can cause you to run out of ram but there are ways around it. Easiest method to get around it is to handle orientation changes yourself, and call bitmap.recycle() when you are done with bitmaps.


hth