Android Widget: Show configuration activity before widget is added to the screen

前端 未结 2 1864
北恋
北恋 2021-01-02 02:32

I have an Android Widget that uses web services to retrieve and display the data on the widget. The widget has a configuration activity that extends PreferenceActivity

2条回答
  •  遥遥无期
    2021-01-02 02:57

    Declare ActivityConfig in manifest:

    With update widget class:

    public abstract class SampleWiget extends AppWidgetProvider {
    

    }

    follow android developer widget support to understand it.

提交回复
热议问题