Detect incomming call or sms in sim 1 or 2 in android -


i want ensure incomming sms in sim slot one. sequrity reason take sim serial , sim slot one. verification need ensure sim 1 verfy sms.

try this. worked me

public class incomingcallinterceptor extends broadcastreceiver { @override     public void onreceive(context context, intent intent) {         string callingsim = "";         bundle bundle = intent.getextras();         callingsim =string.valueof(bundle.getint("simid", -1));              if(callingsim == "0"){                   // incoming call sim1              }              else if(callingsim =="1"){                  // incoming call sim2              }     } } 

Comments

Popular posts from this blog

IF statement in MySQL trigger -

c++ - What does MSC in "// appease MSC" comments mean? -

javascript - Blogger related post gadget image Resize s72-c [ Need Expert Help ] -