Vote count:
0
i have made a widget for my application and after few days or so in some devices the widget i stop responding .
just freeze . i have read in some places that this could be a memory problem but my logic says that if the widget need the memory the android will provide the memory the widget need .
i know that issue cant be solved without code but i don't want to post code that is not relevant so please tell my what can be the reasons and i will post whats relevant .
my onUpdate ...
public void onUpdate(Context context, AppWidgetManager appWidgetManager,
int[] appWidgetIds) {
L.e(TAG, "onUpdate");
final int N = appWidgetIds.length;
for (int i = 0; i < N; i++) {
Intent serviceIntent = new Intent(context,
WidgetDataFetchService.class);
serviceIntent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID,
appWidgetIds[i]);
context.startService(serviceIntent);
}
super.onUpdate(context, appWidgetManager, appWidgetIds);
}
asked 24 secs ago
Aucun commentaire:
Enregistrer un commentaire