xamarin forms, but the widget was built in the
I have many instances of the same widget, each contains different accounts of the user . I'm saving widgetId and account as a
key, value in CrossSettings.
But right now all the widgets are updating whenever I call
OnUpdate(). I need to get the exact account from my
TextView , compare it to the widgetId and update only this widget..
It seems that
FindViewById is not supported in widgets. How can i get the text of my
var savedAccount = (TextView)FindViewById(R.Id.accountTextView) // NOT SUPPORTED! foreach (var widgetId in appWidgetIds) if (SavedAccount.Text == CrossSettings.Current.GetValueOrDefault<string>(widgetId.ToString())) //here comes the further update