Android:NPE while trying to activityForResult with ACTION_APPWIDGET_PICK intent

后端 未结 3 1749
悲哀的现实
悲哀的现实 2021-01-21 09:05

I have a problem then trying to put an intent with AppWidgetManager.ACTION_APPWIDGET_PICK there is a problem somethere inside of android AppWidget ecosystem as I ca

3条回答
  •  不知归路
    2021-01-21 09:29

    Edit: spoke too soon, didn't see it was a ViewListener method. Don't know if that's still required.


    Original answer:

    You should call the Acitivy's onClick in your override.

    From the Android docs: "An implementation of any activity lifecycle method should always first call the superclass version.

    Hope that solves the problem.

提交回复
热议问题