Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Android programming

Name: Anonymous 2012-05-19 11:13

need help from any android fags.  I have a class that extends Activity that has a field which is an ArrayList. The arraylist gets populated by a different Activity.  My problem is that when ever the Activity with the arraylist field starts a new activity the GC reallocates all the fields.  Ive tried making the field static along with a few other things.  Any one know what the actual fuck?

Name: Anonymous 2012-05-19 20:24

>>4
Then your architecture doesn't work
Do not fight Android. I did that a lot when i started and it was very painful
You probably have to re-design your application. Please read
http://developer.android.com/guide/topics/fundamentals.html
http://developer.android.com/reference/android/app/Activity.html

Statics are a very hacky fix to your problem. They will just be a pain later on when you realize you could have handled it cleaner

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List