removed old config.xml (relict from early development)
start preferences activity on push
This commit is contained in:
@ -82,6 +82,11 @@ public class WaldemarWidget extends AppWidgetProvider {
|
||||
AppWidgetManager appWidgetManager, int appWidgetId) {
|
||||
RemoteViews remoteViews = new RemoteViews(context.getPackageName(), R.layout.main);
|
||||
|
||||
// Create an Intent to launch PreferenceActivity
|
||||
Intent intent = new Intent(context, WaldemarPreferences.class);
|
||||
PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, intent, 0);
|
||||
remoteViews.setOnClickPendingIntent(R.id.daycount, pendingIntent);
|
||||
|
||||
DateFormat format = SimpleDateFormat.getTimeInstance(
|
||||
SimpleDateFormat.MEDIUM, Locale.getDefault());
|
||||
remoteViews.setTextViewText(R.id.debug, format.format(new Date()));
|
||||
|
Reference in New Issue
Block a user