41 |
public Side9WidgetProvider() { |
public Side9WidgetProvider() { |
42 |
Log.i(TAG, "WidgetProvider constructor called"); |
Log.i(TAG, "WidgetProvider constructor called"); |
43 |
} |
} |
44 |
|
|
45 |
|
public void resetStatics() { |
46 |
|
Log.i(TAG, "resetStatics"); |
47 |
|
usedData = null; |
48 |
|
usedBitmap = null; |
49 |
|
} |
50 |
|
|
51 |
|
|
52 |
|
|
53 |
|
|
54 |
|
|
55 |
private void setImage(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds, Bitmap image) { |
private void setImage(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds, Bitmap image) { |
56 |
// Perform this loop procedure for each App Widget that belongs to this provider |
// Perform this loop procedure for each App Widget that belongs to this provider |
195 |
public void onDisabled(Context context) { |
public void onDisabled(Context context) { |
196 |
super.onDisabled(context); |
super.onDisabled(context); |
197 |
Log.i(TAG, "onDisabled"); |
Log.i(TAG, "onDisabled"); |
198 |
|
|
199 |
usedData = null; //free memory |
resetStatics();//free memory |
|
usedBitmap = null; |
|
200 |
} |
} |
201 |
|
|
202 |
|
@Override |
203 |
|
public void onEnabled(Context context) { |
204 |
|
super.onEnabled(context); |
205 |
|
Log.i(TAG, "onEnabled"); |
206 |
|
|
207 |
|
resetStatics();//free memory |
208 |
|
} |
209 |
|
|
210 |
} |
} |