Home:ALL Converter>Android Studio default app Widget with Configure Activity

Android Studio default app Widget with Configure Activity

Ask Time:2016-10-29T19:02:30         Author:Michał Timm

Json Formatter

I have problem with default Android Studio app Widget (NEW→XML→WIDGET→APP WIDGET) Shortly, default app widget providing by Android Studio works in this way:

  1. putting example widget on the main screen automatically starts Configure Activity
  2. you can add text (TextView) and then accept this by clicking Add Widget Button
  3. Configure Activity is closing and on the main screen, example widget is being shown (now on the widget you can see text you entered on the Configure activity few seconds before).

I would like to add new feature to this example. Click on widget should one more time open Configure Activity. (in default design there is no possible to open Configure Activity any more).

I tried to search it on Stack overflow but examples I found not work with that default app Widget... ;/

Author:Michał Timm,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/40318422/android-studio-default-app-widget-with-configure-activity
yy