8

Static fields in Android activity

view full story
linux-howto

http://stackoverflow.com – Is it ok, if I mark all fields static in Activity? Does it improve performance? I mean, Activity is created just once and there is no need for many instances. Here is an example: private static Spinner mNtries; private static Spinner mTies; private static Spinner mTions; private static Button mTButton; private static Button mDButton; Or is it not good practice? (HowTos)