I'm not exactly sure why you would want to do this... What are you doing with calls? Maybe you can get away with turning off/disabling all radios? (I don't know how feasible this is).
Maybe you just want to block the notifications, and not the actual messages? On Jul 12, 4:54 pm, ranjan ar <[email protected]> wrote: > Hello, > I want to block incoming and outgoing Text (as well as email). I am using > the broadcast receiver that is not blocking the text but its blocking the > outgoing calls. Can some one help me. Thank you. > > Here is the piece of code that blocks the SMS. > --------------------------------------------------------------------------------------------- > public void onReceive(Context context, Intent intent) > { > mContext=this; > String actionType = intent.getAction(); > > if ((actionType.equals(Intent.ACTION_SEND))) > { > setResultData(null); // I tried > with abortBroadcast(); this didn't work either > } > > } > ----------------------------------------------------------------------------------------------- > My androidmanifest has all the permissions required. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

