Broadcast Receiver not processing SMS's

前端 未结 4 559
耶瑟儿~
耶瑟儿~ 2021-01-17 05:01

I\'ve seen on SO that @Commonsware states that all that is needed to receive SMS\'s is a Broadcast Receiver (i.e., without the use of a service). I\'d like to empl

4条回答
  •  星月不相逢
    2021-01-17 05:54

    Your priority might not be good enough, try setting it to 2147483647.

        
            
                
            
        
    

    After doing that, try start it in debug mode, and breakpoint in your onReceive method, or make a Log.i("BroadcastSMSReceiver", "Received something in SMSRECEIVERTEST") :)

    Edit, set priority to a high number instead of 1, just read that high number equals higher priority.

提交回复
热议问题