So onUpdate method calls
remoteViews.setRemoteAdapter(id, R.id.listview, intent)
in order to apply an adapter to the listview in the widget.
I faced this problem some time ago. This approach with random number helped me too.