Couldn't expand RemoteViews

后端 未结 5 1026
孤街浪徒
孤街浪徒 2021-02-12 14:34

I try to create a custom notification but getting the following exception:

FATAL EXCEPTION: main
android.app.RemoteServiceException: Bad notification posted from         


        
5条回答
  •  借酒劲吻你
    2021-02-12 14:55

    You cannot put an EditText into a RemoteViews. RemoteViews is limited to a handful of possible widgets, specifically those documented for use on an app widget. And, for a Notification, I doubt that the AdapterView options, like ListView, will work either.

提交回复
热议问题