I have to answer on my own question. The cause of java.lang.IllegalArgumentException
was static variable RemoteViews views
because when i call views.setTextViewText(R.id.text,text)
this put text into RemoteViews
but previous text isn't deleted (RemoteViews
contains all texts that i put to him).
How to avoid this problem? You should to every time create new instance of RemoteViews
.
How to improve perfomance? You should to put into RemoteViews
only what you want to change and call wm.partiallyUpdateAppWidget(ids,views);