Sample for article at http://enoent.fr/blog/2014/04/06/android-display-a-dialog-from-an-appwidget/