Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Intent refreshIntent = new Intent(context, SensorIntentService.class);
refreshIntent.setAction(SensorIntentService.ACTION_REFRESH_WIDGET);
PendingIntent refreshPendingIntent = PendingIntent.getService(
context,
0,
refreshIntent,
PendingIntent.FLAG_UPDATE_CURRENT);
views.setOnClickPendingIntent(R.id.refresh_ic, refreshPendingIntent);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment