I've one appwidget class and I need to create few widgets but each of them must storage other data set in WidgetConfigure. Clicked widget should show activity with this data. I save my data to shared preferences and read it in widget, but if i try add next widget, it override existing data. How can i do that? I was tried something like that
configEditor.putInt("a"+mAppWidgetId, a_num); //it's in widgetconfigure class
int a = config.getInt("a"+mAppWidgetId, 0); //widget class
I've no idea how to solve it. After update all widget contain the same data.