Does startService () create a new instance of the service or use an existing one? For example, in the following code, are two instances of UpdateService or one instance of UpdateService created? Thank.
int[] appWidgetIds = new int[] {1, 2}; for (int appWidgetId : appWidgetIds) { Intent intent = new Intent(context, UpdateService.class); intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId); context.startService(intent); }
android
user256239 Mar 25 '10 at 18:14 2010-03-25 18:14
source share