Service not starting on Oreo in app widget using PendingIntent

前端 未结 3 538
栀梦
栀梦 2020-12-31 02:37

I\'m using Android app widgets. I\'m creating a PendingIntent object and use it in the method RemoteViews#setOnClickPendingIntent(). This is the pe

3条回答
  •  生来不讨喜
    2020-12-31 03:08

    Could goasyc be an option? You could change your PendingIntent to fire a BroadcastReceiver, then in the OnRecieve method, you can call goasync() Then you should be able to use the PendingResult it generates to create an async call. Still don't think you can start a service.

    How to use "goAsync" for broadcastReceiver?

提交回复
热议问题