Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Intent intent = new Intent(context, MainActivity.class);
PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, intent, 0);
views.setOnClickPendingIntent(R.id.sensor_widget, pendingIntent);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment