Skip to content

Instantly share code, notes, and snippets.

@jezinka
Created August 18, 2018 12:00
Show Gist options
  • Select an option

  • Save jezinka/20af4924e2233332c0ad17f7866ff1ff to your computer and use it in GitHub Desktop.

Select an option

Save jezinka/20af4924e2233332c0ad17f7866ff1ff to your computer and use it in GitHub Desktop.
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