How to create an app widget with a configuration activity, and update it for the first time?

前端 未结 4 730
自闭症患者
自闭症患者 2020-12-12 22:42

This is driving me crazy. I don\'t know how to update the app widget from the configuration activity, even with the recommended practises. Why the update method is not calle

4条回答
  •  天命终不由人
    2020-12-12 23:29

    For developers who are looking for latest example which explains how to create widget with configuration or options or settings feature, see http://www.zoftino.com/android-widget-example.

    For developing configuration feature, configuration activity and UI which allows user to configure widget needs to be created in the app. Widget configuration option can be shown when an instance of widget is created or every time a widget is clicked. Every time widget settings are changed, the changes need to applied to widget instances.

提交回复
热议问题