Android :: Android Notification Doesn't Disappear After Clicking Notifcation
Apr 13, 2010
If got some issues with a notification I want to show in the notification bar. Although I set the notification flag to Notification.DEFAULT_LIGHTS & Notification.FLAG_AUTO_CANCEL the notification doesn't disappear after clicking it.
CODE:..................
View 1 Replies
Apr 14, 2010
I apologize if this code looks a bit like a mess (considering the length); I figured I'd just include everything that goes on in my program at the moment.
I'm attempting to create a fairly simple Tic Tac Toe app for Android. I've set up my UI nicely so far so that there are a "grid" of TextViews. As a sort of "debug" right now, I have it so that when one clicks on a TextView, it should display the value of buttonId in a message box. Right now, it displays the correct assigned value for the first element I click, but no matter what I click afterwards, it always just displays the first value buttonID had. I attempted to debug it but couldn't exactly find a point where it would pull the old value (to the best of my knowledge, it reassigned the value).
There's a good possibility I'm missing something small, because this is my first Android project (of any note). Can someone help get different values of buttonId to appear or point out the error in my logic? The code...
View 1 Replies
View Related
Jul 31, 2010
In my application I notify the user with notifications, if something special happens:
public void triggerNotification(String msg) {
notificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);
Intent contentIntent = new Intent(this, ABC.class);
Notification notification = new Notification(R.drawable.icon, msg, System.currentTimeMillis());
notification.setLatestEventInfo(this, "ABC", msg, PendingIntent.getActivity(this.getBaseContext(), 0, contentIntent, PendingIntent.FLAG_CANCEL_CURRENT));
notification.flags = Notification.FLAG_AUTO_CANCEL;
notificationManager.notify(notificationCounter, notification);
notificationCounter++;
}
If the user clicks on the Notification, the onCreate() method is called. But I want that a specific method in my app is called, or if the app is not in the foreground, that it is brought back to the foreground. I know there are lots of tutorials that explain how to handle notifications, but I just don't understand them completely and wasn't ever able to implement the things like I'd like to.
View 1 Replies
View Related
Jun 24, 2010
Application (non-wanted) behavior - application is started, some text is put into text-box and notification is created through button action. user "clicks" the home button, application is "minimized", notification is available in bar user selects the notification and the application is "maximized"
BUT - instead of the original instance, new instance is started (e.g. in the newest instance is missing the original text; when the latest instance is closed there is still the original instance with original text ) .
The code of the notification method
CODE:.....
I have also in the manifest xml file following tag android:launchMode="singleTask"
But it is still the same...The main problem is double/triple initialization of the application, i know that there are other means to preserve the values in resumed applications. Also it is needed that the applications stays running in background as the main functionality is the streaming of internet radio.
What is missing in the code ? What kind of information from my side is missing for to troubleshoot the issue ?
View 3 Replies
View Related
Mar 25, 2010
I have created an activity which sends a number of notifications to status bar. Each notification contains an intent with a bundle.
Here is the code:
CODE:..............
When user clicks this notifications, I read the bundle string "action" and performs that action. Here is the code:
CODE:.................
Everything works as expected. But, when I minimize the app using "arrow" button on device and then press and hold home button and clicks on my app icon the application starts and performs the same last action which have been performed by clicking the last notification. I figured out that when we click the app icon the application starts with last intent triggered by the notification.
View 2 Replies
View Related
Apr 1, 2012
I cannot figure out what the 1st icon in the notification area is for and it is using up serious battery usage.No new apps were downloaded, the phone was in a pocket and the icon appeared and I cannot figure this out.
View 4 Replies
View Related
Jul 22, 2010
I heard that double clicking a swype word should bring up the word choice window but it only highlights the word when I do it. anyway to turn it on?
View 1 Replies
View Related
Dec 7, 2009
I was wondering if anyone has had the notification icon for weather from Beautiful Widgets disappear? I love the look and animations of the Beautiful Widgets with GDE and I also have the White Hero Theme - looks great. But now there is no Icon for beautiful widgets in the notification bar, even after I switched the setting numerous times.
View 4 Replies
View Related
Sep 14, 2010
So when I get texts, gmail, completed app downloads, etc I get notification icons at the top as usual. When I slide the notification bar down to reveal the nofications and click on an item, the notification screen doesn't hide back to the top of my phone -- it just stays open. I either have to hide it manually or I have to hit the back button, which sometimes exits the app I was trying to open. 2.1 never did this for me, it always hid when choosing an item. Anyone have a solution to this? I've done a factory reset after 2.2 btw. I've also searched support to see if there was a similar problem, no similar threads.
View 2 Replies
View Related
Jun 17, 2010
It looks like a black SD card with a folded up corner and to the lower right of it is a small cog wheel.
It is sitting in my notifications list with no text beside it and it doesn't go away when I choose "clear notifications"
View 8 Replies
View Related
Nov 12, 2010
I have a count down timer that when it goes off (to zero) it checks to see if the app has focus. If not it launches a notification in the notification bar. When you click on the notification is re-opens the app. Now all of this works fine but if the screen happens to go off, the timer keeps going and the notification is available at the right time but never actually vibrates or rings until i turn the screen back on. Then it displays the notification like it was waiting in a queue or something.
How do I get it so that the notification manager will actually alert the user when the screen is turned off?
Update: If I set the timer for 2 minutes, it takes another 2-3 minutes for the notification to actually work. So it does work but it's on a huge delay! Code: So I setup the notification service when the app loses focus, and when the MyCount1 is finished is checks if the app has focus and if not it shows the notification. This all works when the screen backlight is on. Once it goes off it is unreliable.
@Override
public void onWindowFocusChanged(boolean hasFocus){
if(hasFocus == false){
mFocusFlag = false;
ns = Context.NOTIFICATION_SERVICE;
mNotificationManager = (NotificationManager) getSystemService(ns);
icon = R.drawable.statusbar;
tickerText = "Check the timer!!!";......................................
View 2 Replies
View Related
Jun 15, 2010
are there any apps that can notify me but dont need me to set a polling interval to check for new fb posts/twitter messages? bloo seems a bit too random as it doesnt always notify me on every notification and it seems a bit too slow compared to the official app which i like.
View 2 Replies
View Related
Oct 6, 2010
I have an android background Service that will occasionally post a notification to the Status Bar using the Notification class. Occasionally, when I receive a notification, pull-down the notification window, and select the notification from the list, the specified Activity doesn't start. When this happens, the screen dims (as if it were about to display the Activity), but the Activity is never shown. I included my code below...
NOTE: The UserNotification class extends Activity, and is set to a dialog theme in the manifest. This class also has its taskAffinity property set to "" in the manifest.
View 1 Replies
View Related
Apr 25, 2010
In my android application I have the following As far as I am aware, I have followed the steps in the documentation to set it to play a sound from the resources folder, and to flash the lights. However, neither of these happen. It does, however, vibrate, as instructed. Any ideas what I'm doing wrong here? I've looked through the permissions that I can give the app in the AndroidManifest.xml file, but I can't see one for letting it flash the light or make sounds. Code...
View 1 Replies
View Related
Sep 28, 2010
I have a message that supposedly was never sent to me from my wife a stupid smiley face. it keeps coming up in the notificaion bar if i try to open it the phone just tries to open it but i cant cause its not there. if i got to "people" it shows the message still there and i cant get an option to delete it. i have wiped out all my messages as it is i have them auto delete after 25 texts. i also deleted her from my google contacts synced and re-added and the phone did such a great job of still associating this text with the contact. my incredible works fine. and i have tons of apps i dont want to have to re download and not to metion all my settings. at least my contacts will sync no problem.
View 7 Replies
View Related
Aug 10, 2010
I am not receiving a voicemail notification when people leave me a voicemail. I get a missed call or sometimes nothing at all but no symbol in the task bar.
when i call voicemal (901) i have the messages there to listen to but no notification! One of them was about a job opportunity so this is becoming an issue! I am on 02.
View 2 Replies
View Related
Jun 13, 2010
I've been through this forum a couple of times now, and I've tired the whole sdcard/MEDIA/ringtones. and the sdcard/media/ringtones/notifcation. and its doesn't see what i've dropped into the folder. i've also tired the ringdroid app and everytime i clicked what i wanted it kept doing the force close.
View 7 Replies
View Related
Jun 17, 2010
Got my google voice invite, set myself up with a new number and so far mostly everything is working great.
My only problem, is that when i get SMS, the phone isn't lighting up like normal. In settings, i have it set to blink status light when a text comes in but it's not working. Vibration works and it makes a dinging noise but no light. Anyone else have this problem?
View 6 Replies
View Related
Jan 13, 2010
I imported my yahoo mail to my gmail and i cant figure out how to turn the notifcation on when i get an email for my yahoo in my gmail.
View 13 Replies
View Related
Jul 9, 2009
I've just moved to a new simcard and for some reason this afternoon a new icon has appeared in the notification area.
Its a picture of a simcard with a small cog wheel in the bottom left of it.
I cant get rid of it and cant find anywhere a list of notification icons and what they mean?
I cant clear it, i can select the icon in the dropdown notification listing but it does nothing.
Anyone got an idea or a list of default notification icons and their explanations????
This is a HTC Magic with 1.5 on it.
View 17 Replies
View Related
Aug 8, 2010
After having upgraded to Smoked Glass, I had it on my phone for no longer than 30 minutes when I was hit with a new OTA notification.
I have already downloaded the file, and it is FRG01B again. The difference, though, is that, instead of patching a ton of files on the fly during the install, which is how the old one worked, this one simply formats System and then copies the entire contents of system from the .ZIP to your phone.
Be that as it may, it looks like I *somehow* got a notification for a full ROM update from VZW.
Again, like I said, it is FRG01B - but the good news is that this is a full ROM, and for those having issues with the previous one, which makes sure you have ESE81 (2.1) installed on your phone, this one does *not*.
Theoretically, I should be able to install this over any previous version of Android - which I am about to test right now.
View 29 Replies
View Related
Feb 14, 2010
I used "ringdroid" to make notification and ringtone sounds and they show up on the lists but only the ringtones work. And even when I try to select a default notification sound, it doesn't change to it, its stays the same as when the one that it was set to when i got the phone. Any ideas what might be causing this and how to resolve it?
View 7 Replies
View Related
Jul 25, 2012
I have a htc Legend with cm7 and the included ADW.Launcher. When I apply a theme, the notification bar doesn't get themed. It wasn't always like this. I'm guessing this is maybe some sort of permissions issue.
View 3 Replies
View Related
Dec 21, 2009
Why doesn't the notification panel pop up or show while in other apps... and this is off topic but why is my keyboard lagging so much as I type this....any way when I get an email or something I have to go to the home screen then the notification panel...hmm I love this phone I just wished It multitasked as well as the pre....
View 4 Replies
View Related
Jul 19, 2010
Htc legend doesn't vibrate when i receive sms,even i checked the notification..
View 1 Replies
View Related
Aug 11, 2013
I've had my Samsung galaxy s4 for a while, and I've never had a problem. But now, if I get a new text message, it doesn't ring or put the envelope in my notification bar. The only way to know is to go into my messages and see the new messages. I've resetted my messaging settings, but it still doesn't tell me that I have a text message. Other apps like Snapchat and Facebook notifications work.
View 3 Replies
View Related
Jan 8, 2010
Just got a new Android phone, my second after a brief stint with the G1 a year or so ago..
Today I noticed that I received notifications that I have apps with updates available. When I click on the notification it takes me to my downloads in the Marketplace, but it doesn't show me which app has an update. They all just say Installed.
Is there no way to tell what application needs updating?
View 8 Replies
View Related
Jun 8, 2010
I'm having some difficulty with drawing a line on a map. I'm basically drawing it etc. but when I select other tab and then come back to the "map tab" the line disappears. How can I prevent that so the line stays there all the time? Please can someone help me to solve this?
View 1 Replies
View Related
Nov 11, 2010
The calendar widget is frustrating me. I enter details about an upcoming meeting, hit save and the event appears. About 20 seconds later it disappears without me doing anything. I figured I would try to delete the app and reinstall it but when I go to settings/app/manage app and try to delete it, the "delete" function is grayed out. Any suggestions?
View 3 Replies
View Related
Apr 1, 2010
I have a EditText on simple activity with a button.
when every i move from one activity to this acivity focus is automatically set to EditText and keyboard appears in phone.
i don't want to open keyboard until i click on editText.
can any one guide me what should i do?
View 2 Replies
View Related