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
Post a Comment