Notification opens app on BroadCastReceiver - android

I am sending an sms from my app and then i click the "Home" button. When i receive that sms (I am sending an sms from my phone to myself), a Notification will appear. When i click it, the screen (from where i sended it) will pop-up from background. So what i get is my default view for the notification, and behind it, the screen from where i sent the sms.
My goal here, is to when i click the notification, if the app is in background, i dont want it to be showed.
Thanks.
Edit1: if i do "this.finish()" right before the sms is sent, the app is not "poped-up". (witch makes sense).

Kinda stuppid, with 2 different phones this wont happen. The BroadCastReceiver, receives the context of the intent that sended the sms (at least for what i understood), if I am using the same phone, it will open the app that is on the background. 2 am here, gief me a break. :)

Related

How to make my application as default launcher

I've developed and application for sending/receiving SMS messages.
I want to make my application as default for reading messages whenever message is received and is viewed from the notification area.
Thanks in advance.
You can receive the SMS and send it, but you can not stop other apps from receiving SMS. At least not without root.
The user has to choose which SMS-App he is using, and he needs to manually disable notifications from the default SMS-App.
Also you need to implement your own notifications if you want them to be shown on receiving sms.

Trigger 'Choose default app' dialog for SMS

I'm sure this is quite easy but I can't figure it out from the documentation.
I'm making an SMS application for Android, it sends and receives messages just fine.
However, when a SMS get's received the standard notification show up (which is what I want) but if I click the message from the notifications bar it doesn't show the 'Choose which app to open this with' dialog. It opens it with the standard SMS app.
If I install another SMS app (like Handcent) and do the same thing the dialog pops up and I'm able to choose between Handcent and the standard client (but not my app).
How do I tell the system that 'Hey! I'm also able to open SMS message'?
Thanks in advance.

How to refresh/notify all sms apps and notification bar?

I write sms messenger and have one problem. When user reads sms from my app and deletes them from my app, other apps and notification bar still show that one or more sms as unread. And when the user try to open sms, for example, from notification, other sms messenger didn't show unread sms beacause it was deleted from base from my app.
Is there any way to refresh sms apps and notification that would not show that sms not read?
Thanks!
I don't think there is a way to do this. Furthermore it shouldn't be you job to care about this, it's the job of the other apps to show always the most current data.
But you can show some advised to the user when he starts your app for the first time. GO SMS for example advises the user to turn off the SMS notification of all other SMS applications on the device. I think the reason for this is similar to your issues.

sending sms message in android that will open the web browser at the receiver. (in android)

I want to send an sms message (either text or data), and that the receiver side will open the web browser according to the specific url i have sent him.
I need to clarify that I dont want the receiver side to have some kind of an app on his side, that listens to the broadcast of an incoming sms.
My intention is that an Intent of the web browser will be open according to my sent url, without an app that listens to it, and without the user presses the url shortcut, that he got in the text msg.
the idea is that the intent of the browser will be open automaticly as soon as I receive (or open) the sms msg.
If this is even possible, I will apriciate every answer that will lead me to the right direction.
thank you all.
Not possible. And I hope it never is.
This is the wrong spot for this question, but I'll answer it anyways...
Just send the full URL. Then a user can click on the link, and they can go to the website. I just tested this out, and it works.

Unread SMS tray notification stays after marking SMS as read

I've written an application that handles incoming SMS. Everything works great and also marking the processed SMS works. The only thing that doesn't seem to care is the tray notification. It still sits there in the tray and claims there is an unread message (just like the standard SMS app with its little green "1" does). I checked that the message actually is marked as read using the method used in the smspopup sample application, which seems to have the same problem. If I just say "close" on the received message, the tray icon is not updated. Do I miss something here? Do I have to send something like a notification to the tray that it should check again?
If you are talking about notification bar then application which sent that notification to android system should cancel it by calling notificationmanagers cancel(int id) method.
By making SMS read do not clears this notifications, when you go to that sms application(stock sms app may be) then that will call cancel notification method to clear notification bar.
SMS POPUP like apps can not clear notification bar of other stock SMS app.

Categories

Resources