[android-developers] block text messaging...

2011-09-30 Thread thiru
Hi,
I need to block text messaging for a period of time(like 9Am to 2pm).
During that period, if user try to access the default message form
device, the user have to get toast like need permission from admin.
How can I achieve it? Please suggest me the solution to solve this
problem.

Thanks  Regards,
Thiru k.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Block Text

2010-07-13 Thread TreKing
On Mon, Jul 12, 2010 at 3:54 PM, ranjan ar ranjan@gmail.com wrote:

 I want to block incoming and outgoing Text (as well as email).


Don't know for sure, but I doubt this is possible.

Also, this:


 mContext=this;


is just silly.

-
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Block Text

2010-07-12 Thread ranjan ar
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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en