Recognize/React on incoming SMS

Basic Tutorials concerning: GUI, Views, Activites, XML, Layouts, Intents, ...

Re: Is it feasible to implement a SMS Firewall app?

Postby Firebear » Thu Jul 23, 2009 3:08 pm

Theseus wrote:
Firebear wrote:#1. I'm afaid you could not prevent the message from being recieved by Android, because until then you could not identify it is a spam. Do not forget that this is a solution working at the client site;


Yeah, you are right. I really can't prevent the messages from being received by Android, but can I prevent them from being added to the message inbox? If I can do that, then I am done.

There are SMS firewall in many other mobile platform, such as iPhone. The third-party SMS firewall for iPhone can function as a real firewall, no ringtone, no notification, no sms in the inbox, nothing at all. So there is a solution at the client side!

Anyway, to develop such a firewall violates the spirit of communication.


I suggest you to read the source code of SMSPopup
A lazy Chinese bear, Software Engineer
Interested in Android, Mozilla, Badminton and Jades
MSN: dirtybear76@hotmail.com
Blog: http://bear-polka.blogspot.com/
User avatar
Firebear
Freshman
Freshman
 
Posts: 8
Joined: Thu Feb 26, 2009 9:24 am
Location: Beijing

Top

Postby desuvinodkumar » Fri Jul 24, 2009 6:52 am

Hi
Thanks for ur reply
for SMS MMS Ok what about when new email got ..
how can i show ...?
Vinod...
User avatar
desuvinodkumar
Senior Developer
Senior Developer
 
Posts: 102
Joined: Mon Mar 23, 2009 6:51 am
Location: India

Postby desuvinodkumar » Fri Jul 24, 2009 11:15 am

Hi
Ok this application works perfectly in emulator na.....
if sms reciever i install in a real device is it react when a new message will comes to our in box........
plz any body tell me this thing ....

thanks a lot in advance...
Vinod...
User avatar
desuvinodkumar
Senior Developer
Senior Developer
 
Posts: 102
Joined: Mon Mar 23, 2009 6:51 am
Location: India

Postby TheChosen » Wed Jul 29, 2009 10:47 am

desuvinodkumar wrote:Hi
Ok this application works perfectly in emulator na.....
if sms reciever i install in a real device is it react when a new message will comes to our in box........


If the application runs in the emulator and the permissions are set correctly, why should it not run on an actual device? If you want proof then there is no way but to test it yourself.
TheChosen
Experienced Developer
Experienced Developer
 
Posts: 62
Joined: Tue Jan 06, 2009 7:18 pm
Location: Germany

Postby desuvinodkumar » Tue Aug 04, 2009 1:44 pm

HI
Instead of Toast i need to show the Intent My own activity calss i nwant to show how can i do it...

Thanks a lot in advance...
Vinod...
User avatar
desuvinodkumar
Senior Developer
Senior Developer
 
Posts: 102
Joined: Mon Mar 23, 2009 6:51 am
Location: India

Postby kec6227 » Thu Aug 06, 2009 2:48 pm

Does anyone know how to update the notification bar? I can delete the items from the inbox fine, but I have not been able to find out how to update the notification bar.
kec6227
Developer
Developer
 
Posts: 30
Joined: Fri Jul 24, 2009 7:31 pm

Top

Postby Firebear » Tue Sep 01, 2009 6:40 am

kec6227 wrote:Does anyone know how to update the notification bar? I can delete the items from the inbox fine, but I have not been able to find out how to update the notification bar.

android.app.NotificationManager
android.app.Notification
getSystemService(NOTIFICATION_SERVICE)
Notification.setLatestEventInfo(...)
NotificationManager.notify(..., Notification ...)
A lazy Chinese bear, Software Engineer
Interested in Android, Mozilla, Badminton and Jades
MSN: dirtybear76@hotmail.com
Blog: http://bear-polka.blogspot.com/
User avatar
Firebear
Freshman
Freshman
 
Posts: 8
Joined: Thu Feb 26, 2009 9:24 am
Location: Beijing

Postby kec6227 » Tue Sep 01, 2009 1:41 pm

Firebear wrote:
kec6227 wrote:Does anyone know how to update the notification bar? I can delete the items from the inbox fine, but I have not been able to find out how to update the notification bar.

android.app.NotificationManager
android.app.Notification
getSystemService(NOTIFICATION_SERVICE)
Notification.setLatestEventInfo(...)
NotificationManager.notify(..., Notification ...)


Hmm I'm sorry I wasn't as specific as I should have been. I have seen that method to make my own notifications, but I want to clear the SMS notification after I have deleted it from the inbox. I have not seen a way besides cancelAll()

There is cancel(int id). I have not been able to find a way to get the id of the SMS notification though. from playing around with SMSPopup, I did not see this done there, either. I only see them making their own notification.

Thank you for your response.
kec6227
Developer
Developer
 
Posts: 30
Joined: Fri Jul 24, 2009 7:31 pm

Postby Firebear » Wed Sep 02, 2009 4:02 am

kec6227 wrote:
Firebear wrote:
kec6227 wrote:Does anyone know how to update the notification bar? I can delete the items from the inbox fine, but I have not been able to find out how to update the notification bar.

android.app.NotificationManager
android.app.Notification
getSystemService(NOTIFICATION_SERVICE)
Notification.setLatestEventInfo(...)
NotificationManager.notify(..., Notification ...)


Hmm I'm sorry I wasn't as specific as I should have been. I have seen that method to make my own notifications, but I want to clear the SMS notification after I have deleted it from the inbox. I have not seen a way besides cancelAll()

There is cancel(int id). I have not been able to find a way to get the id of the SMS notification though. from playing around with SMSPopup, I did not see this done there, either. I only see them making their own notification.

Thank you for your response.

No, I did not get the point of the question ...

As far as I know, there is no way to clear the notification which is not sent by your application.
the NotificationManager.cancel(int it) and cancelAll() are for your notifications.
A lazy Chinese bear, Software Engineer
Interested in Android, Mozilla, Badminton and Jades
MSN: dirtybear76@hotmail.com
Blog: http://bear-polka.blogspot.com/
User avatar
Firebear
Freshman
Freshman
 
Posts: 8
Joined: Thu Feb 26, 2009 9:24 am
Location: Beijing

Postby oba » Mon Feb 15, 2010 9:09 am

kec6227 wrote:
Firebear wrote:There is cancel(int id). I have not been able to find a way to get the id of the SMS notification though. from playing around with SMSPopup, I did not see this done there, either. I only see them making their own notification.
Thank you for your response.


there is no way to cancel another app notifications. the id int you are referring to is an internal to your application used to identify your notifications., and even if you use the CancelAll() - it only cancels your own notifications.
oba
Freshman
Freshman
 
Posts: 5
Joined: Wed Dec 03, 2008 8:55 am

Postby fevos » Wed Feb 17, 2010 9:16 pm

Hi , i want to use the code for Android 1.6 but it doesn't work , is there any modification that i can do to make it work .

Thank you
fevos
Once Poster
Once Poster
 
Posts: 1
Joined: Wed Feb 17, 2010 9:12 pm

Postby frienddevendra » Thu Mar 11, 2010 12:58 pm

Hi plusminus,
This is Devendra here,I has started working on Android since last 4 months,
Your posts really help me,,thanks for these.
Please give me your mail id ,so that I can contact you in case of some issues related to android.
My email id is : frienddevendra@gmail.com
Thanks,
Devendra
frienddevendra
Once Poster
Once Poster
 
Posts: 1
Joined: Thu Mar 11, 2010 12:45 pm

Re: Recognize/React on incoming SMS

Postby oroma » Sat Jun 26, 2010 11:59 am

Hi, am very impressed by the way advancements in the mobile industry is going. Keep it up!
oroma
Once Poster
Once Poster
 
Posts: 1
Joined: Sat Jun 26, 2010 11:35 am

Re: Recognize/React on incoming SMS

Postby agnimitra » Mon Aug 02, 2010 8:11 am

thanks PLUSMINUS......
agnimitra
Junior Developer
Junior Developer
 
Posts: 14
Joined: Wed Dec 17, 2008 12:08 pm
Location: Bangalore

Re: Recognize/React on incoming SMS

Postby august321 » Wed Aug 18, 2010 3:55 pm

Thanks
august321
Freshman
Freshman
 
Posts: 2
Joined: Tue Aug 17, 2010 4:04 pm

Top
PreviousNext

Return to Novice Tutorials

Who is online

Users browsing this forum: No registered users and 5 guests