Android - SMS Broadcast receiver

前端 未结 10 1817
遥遥无期
遥遥无期 2020-11-22 13:04

I have been trying to get this program to work but so far having no luck. I cannot find where I am doing wrong. I\'m not sure if there\'s something wrong with the code, or d

10条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-11-22 14:01

    Your broadcast receiver must specify android:exported="true" to receive broadcasts created outside your own application. My broadcast receiver is defined in the manifest as follows:

    
        
            
        
    
    

    As noted below, exported="true" is the default, so you can omit this line. I've left it in so that the discussion comments make sense.

提交回复
热议问题