Incoming call broadcast receiver not working (Android 4.1)

前端 未结 2 1798
半阙折子戏
半阙折子戏 2020-12-19 11:44

I\'m trying to catch an incomming call broadcast but it isn\'t working.

This is my manifest:




        
相关标签:
2条回答
  • 2020-12-19 12:04

    Have you tried to add a broadcast receiver inside a service? A service is meant to stay active even when the application is closed/minimized. Check this link

    0 讨论(0)
  • 2020-12-19 12:20

    I found the problem, you must manually start an activity from your application before the broadcast receivers starts to work as of android 3.0.

    0 讨论(0)
提交回复
热议问题