receive sms from my application in android from special number -
i want program able receive sms special number("+9856874236"). but, if sms other number, should go phone's message inbox , not application. please me dears import android.content.broadcastreceiver; import android.content.context; import android.content.intent; import android.os.bundle; import android.telephony.smsmessage; import android.util.log; public class receiver extends broadcastreceiver { public string str = ""; @override public void onreceive(context context, intent intent) { // ---get sms message passed in--- bundle bundle = intent.getextras(); smsmessage[] msgs = null; if (bundle != null) { object[] pdus = (object[]) bundle.get("pdus"); msgs = new smsmessage[pdus.length]; (int = 0; < msgs.length; i++) { msgs[i] = smsmessage.createfrompdu((byte[]) pdus[i]); ...