[android-developers] Re: Intercept SMS, disable notification sound

2011-06-23 Thread rich friedel
Just get the content of the SMS and do a simple if/else check. If it is your text then disable the sound using AudioManager something like this... private static AudioManager audioManager; @Override public void onCreate() { super.onCreate(); audioManager =

[android-developers] Re: Intercept SMS, disable notification sound

2011-06-23 Thread Halsafar
This works just fine. Called within the onRecieve() of my SMSReceiver. I'm guessing the next step to playing your own sound effect is to just play a sound on a different stream on onReceive() as well. On Jun 23, 12:01 am, rich friedel rich.frie...@gmail.com wrote: Just get the content of the

[android-developers] Re: Intercept SMS, disable notification sound

2011-06-23 Thread rich friedel
Also I want to add that there is a caveat to this whole muting thing... for every mute you (or any other app system-wide) there needs to be an equal number of unmutes. From http://developer.android.com/reference/android/media/AudioManager.html#setStreamMute(int, boolean) *The mute requests

Re: [android-developers] Re: intercept sms

2010-02-26 Thread zhangjun
no priority in Activity and Task now, so i guess no solution for your requirement :( maybe google can design it in future, but it is difficult for Application to implement high priority Activity or services On Thu, 2010-02-25 at 18:19 -0800, nigel wrote: Thank you for your answer. Can I let

[android-developers] Re: intercept sms

2010-02-26 Thread nigel
Thank you,zhangjun.It's a piece of dismal news. It seems I have to change my design. Thanks a lot. On 26 Feb, 17:19, zhangjun jun.zh...@borqs.com wrote: no priority in Activity and Task now, so i guess no solution for your requirement :( maybe google can design it in future, but it is

[android-developers] Re: intercept sms

2010-02-25 Thread nigel
Thank you for your answer. Can I let my app have a high priority than default sms that I can receive the message before it? Or have any another ways to prevent sms receive short message? I only have a demand that prevent sms receive some short message which matches conditions I specify. On 24

[android-developers] Re: intercept sms

2010-02-23 Thread Kumar Bibek
You can of course intercept incoming sms. But you cannot disable the notification. Also, you have to do your bit of work within a certain time limit, else your process will be closed. You can also not abort the broadcast. On Feb 24, 9:32 am, nigel wang_...@163.com wrote: requirements: 1.Can

[android-developers] Re: intercept SMS inbound message

2009-11-12 Thread Antonio Si
I am having a similar problem and would appreciate any pointers in this problem. Thanks. Antonio. On Nov 11, 4:44 pm, Sean Liao wirelessw...@gmail.com wrote: Hi, I got a sample code how to intercept SMS inbound message.  It is really simple, and I really admire android make it so easy: //