How to make a toggle button for a widget android
问题 So I've created a widget, and I'm tried my best to simulate a toggle button. Sense Widget doesn't support a toggle button I'm using a imagebutton and plan on changing the image depending on it's state. Only problem is it's state isn't being saved and I'm not sure why. package com.tdubstudios.beastmode; import android.app.PendingIntent; import android.appwidget.AppWidgetManager; import android.appwidget.AppWidgetProvider; import android.content.ComponentName; import android.content.Context;