Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
RemoteViews views = new RemoteViews(context.getPackageName(), R.layout.sensor_widget_provider);
views.setTextViewText(R.id.appwidget_text, sensor.getTemperature());
views.setTextViewText(R.id.widget_timestamp_tv, sensor.getTimestamp());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment