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 =
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
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
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
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
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
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
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:
//
8 matches
Mail list logo