I am doing some research, and I'm still not 100% sure if this could lead to a memory leak. I use the button view (v.context). I think I'm fine, as the context is not stored as Static, but I would like to get some feedback if possible. The main problem I see is with OSMonitor ... the value (M) goes up and up and up. With each opening / closing widget and screen rotation.
32M 43M 61M 77M etc ...
I'm not sure if (M) is megabytes or megabytes. If it is stack based, I assume pergege Megebits as most top-level devices are limited to 32/48 MB on the stack (or something else).
Thanks for the feedback / extra eyes!
This is a Banner app on the market, btw ...
public class Globals { public static final String PREF_NAME = "BannerPreferences"; public static final int MAX_TEXT_SIZE = 20;
source share