Android :: Notifying When Screen Is Off?
Feb 7, 2010
I'm trying to generate a notification which vibrates the phone and plays a sound when the screen is off (cpu turned off). According to the Log messages, the notification is being sent, but the phone doesn't vibrate or play the sound until I turn the screen on again. I tried holding a 2 second temporary wakelock (PowerManager.PARTIAL_WAKE_LOCK), which I thought would be ample time for the notification to be played, but alas, it still doesn't.
Any pointers to get the notification to run reliably? I'm testing this on an G1 running Android 1.6.
Code I'm using:
CODE:.................
View 1 Replies
Sep 17, 2010
I have a situation here where i have an intent A that calls intent B. In Android 2.x, the application B consistently crashes the dawvik virtual machine when it runs the second time. Then, if A calls B again, it works.
Is there a way to let A find out that the vm has crashed? This way, i could just redo intent B.
View 3 Replies
View Related
Oct 8, 2009
I just tried a stupid approach and it crashed my app... Basically I have an activity that has three tabs (containing three activities). Each of the tabs gets its input from an xml file downloaded off the net. Everything is fine but when I start my app, it has download the xml file and there's a "wait" time for this.I managed to get around this by adding a splash screen. It looks beautiful but the problem is when I click on the second tab, it still has to get the list off the net, so it looks ugly now... It waits before displaying the list. So what I did was design an AsyncTask that just downloads the xml file. In my main activity, I spawn two tasks initially and send the URL and Intent as parameters. And inside the activities that start inside the tabs, I use a wait(). Inside the AsyncTask, after it is done with the download, I notify the Intent using notify(). This crashed! Of course, I didn't expect it to work but just wanted to try :) Writing it so that I can either get a feedback as to why this failed or to prevent others from wasting their time on this...Now, I am sure many face the problem of a "wait" time inside the tabs. How do I solve this? I am thinking of either dimming the screen and then displaying a series of toasts or display a progress indicator inside the tabs or pre-fetching the xml files... I don't have a clue on how these can be achieved.
View 2 Replies
View Related
Dec 12, 2009
I have a ListView that has some minor visual preferences that are set in a PreferenceScreen. These preferences are simple booleans to show or not to show some specific TextViews on each item in my ListView.
Anyhow, when these preferences are changed, I need to notify my ArrayAdapter that the data has changed in order to get the list redrawn. However, doing this via an OnSharedPreferenceChangeListener wouldn't really be optimal because there are several preferences that you can change, that would cause an unnecessary amount of updates to the ArrayAdapter.
So, to the question: How can I identify when my ListActivity has occurred on the screen after closing my PreferenceActivity, which I then could use to check for changes in the preferences, and only then notify the ArrayAdapter.
The ArrayAdapter being an inner class of my ListActivity, which is set as a ListAdapter.
View 1 Replies
View Related
Nov 19, 2010
I have 2 gmail (apps) accounts on my phone.The first account: I want to know when I get an email.The second account: I don't want to know when I get an email - but still want, for checking and sending only when I look at the account.Is it possible to disable notification on one account and keep the other?I've got a Sony Xperia X10 Mini Pro and have waited a looooong time to get 2.1, JUST for the multi email accounts capability - now that I've got it, I'm not liking it because I get disturbed when I get email on the second account.
View 6 Replies
View Related
Nov 13, 2009
I think I've missed something in how Android is supposed to work! I have the main Activity with a menu option that opens the preferences screen. What I need is a way for any changes that were made to be communicated back to the main Activity as soon as the preference is activated. At the moment the only way I could get it working is by using the intent data that gets sent back when the prefs activity closes but this isn't really enough. The reason why it needs to be instantaneous is that one of the preferences is a 'Clear cache' button, so I would like the data to be deleted when the user requests it and no later!
View 4 Replies
View Related
Dec 7, 2009
Is there a way to prevent google voice from notifying me of or stop recording blank messages?Every time someone calls me and hangs up I get a voicemail alert including empty transcription even though nothing is there.
View 1 Replies
View Related
Jan 21, 2010
Lately my gmail app has stopped notifying me when I receive an email. I have to go in and refresh it to get my email to pop up. I checked the settings and it is set to notify me.
View 12 Replies
View Related
Mar 24, 2010
I cannot get my Hero to give me notifications that I have Voicemails to listen too. I just got this thing a week ago and was beginning to wonder why I hadn't gotten a voicemail in that long since I don't answer every call. Well last night I discovered that I had a bunch of them but it's not letting me know. I did the setup like it instructed when I got the phone. Anyone else ever have this problem and if so, how did you fix it? Thanks.
View 3 Replies
View Related
Oct 13, 2010
I have HTC mail set up to access my googlemail account and it is set to check every hour for new mail.
When the phone is rebooted everything seems to work fine but then after a while it appears that the phone will stop checking for emails on the hour.
If I go into mail it will retrieve them at that point but it should have picked them up several hours ago.
The problem only seems to have been occuring the past week or so but I cannot figure out why.
The only things that have changed are the OTA update and returning from holiday abroad but I cannot see how this would have affected things.
View 1 Replies
View Related
Jan 17, 2012
I don't know why but suddenly my gmail app is not notifying me of new email. When I open the app it isn't even showing that I have new emails even when I can look on my computer and see that I do. Is there a fix for this? I haven't changed any settings on my phone or on the app that would have caused this to my knowledge.
View 17 Replies
View Related
Aug 19, 2012
I get hundreds of emails every day and I currently get a notification but no audio tone or vibrate as it would be going crazy. This is how I want my general email notifications set up. So that part is fine. What I do want however is for starred messages to play a tone/vibrate similar to my text messages. I went into Gmail and then Manage Labels within the menu and I confirmed that 'Starred' is set to sync all and ring, vibrate, notify once. This to me seems like it should be notifying the way I just described that I'm looking for but there is no different notification for starred messages the way I had hoped. What am I doing wrong here?
View 1 Replies
View Related
Apr 30, 2010
google talk is not notifying me when i get a new message i just look and its there. i have notifications enabled in settings on talk. does the same thing on my wifes incredible. my droid did not have this problem. can anyone else confirm they have the same problem or a solution for it. i much prefer realtime chat over sms texting.
View 8 Replies
View Related
Nov 9, 2009
I setup my yahoo mail on the droid and for some reason it is not notifying when i get new email. I have to physically go in and check it, I am a former blackberry user, and if youve owned a blackberry you know how convenient the email push is! I have the timer set to 5 mins and it is not receiving them unless i manually go in.
View 9 Replies
View Related
Feb 14, 2010
When I get a text message, I get a notification from Handcent and the stock message program. Is there a way to stop the stock program from notifying me?
View 3 Replies
View Related
Aug 25, 2010
Droid x 2.2 gmail not making notifying sound
View 1 Replies
View Related
Jul 5, 2010
Is there a way to use Handcent without the actual messages app pinging and notifying?
View 6 Replies
View Related
Aug 16, 2010
Ok so I usually plug my phone in to charge over night next to my bed. However it gives me a notification sound, like a txt message, when the battery has charged. This is kinda annoying but cannot seem to find a way of turning it off. I know you are gonna suggest tuning the sound off but thats not what i want to do. So is it possible to just turn the battery charged notification off?
View 15 Replies
View Related
Nov 19, 2009
I am kind of new to the Hero community came from palm pre, is there a setting for the trackball to light up when i get or miss calls, MMS, gchat? If yes where do I go to enable it.
View 2 Replies
View Related
May 18, 2010
When ever I send a text message when I've had no signal but the phone hasn't told me yet I get a failed notification which is fine, but I'll keep getting them until I find the text message and delete it, even then I still get a couple more, deleting the message also means I have to type it again, anyone know how to stop the multiple notifications?
I've downloaded No Signal Alert which should help in the future and Handcent seems to cut the notifications down and bit but I still get a few.
View 2 Replies
View Related
Mar 31, 2010
I am designing a home screen widget. I ran this widget on a HTC Hero device, which has a screen of 320 pixels * 480 pixels with mdpi. It ran perfect on HTC Hero. The widget takes 3 cells * 2 cells space, i.e. 240 pixels * 200 pixels.Then I ran this widget on a Nexus One device, which has a screen of 480 pixels * 800 pixels, mdpi. Since Nexus One also is mdpi, so I though 240dip is equivalent to 240 pixels on Nexus One and 200dip is equivalent to 200 pixels on Nexus One, so the widget will not take 3 cells * 2 cells space on Nexus One device. To my surprise, when running on Nexus One device, the widget take exact 3 cells * 2 cells, about 360 pixels * 300 pixels, on Nexus One device.I am confused. The layout xml above specifies 240dip in width and 200dip in height for the widget, but why did it take 360 pixels * 300 pixels on Nexus One Device? What am I missing?
View 2 Replies
View Related
May 14, 2010
LOCK screen aprears at the main screen, after boot the emulator boot up. I want to disable the locking at main screen, So that while next time i boot up my emulator not LOCK screen apears. Can any body suggest me best solution for this?
View 2 Replies
View Related
Oct 31, 2010
Is there a way to draw on or modify the key guard wallpaper programmatically?It looks simple enough for the home wallpaper, you can use WallpaperManager. But how about for the lock screen wallpaper?
View 1 Replies
View Related
Jul 24, 2009
I want to listen for the touch events from Lock Screen and Home Screen, is there any way i can tap those to my applications.
View 4 Replies
View Related
Jan 19, 2010
Is there any way to redirect cell phone output to a standard screen?Would it be possible on Linux & X-server based devices - like Maemo? And on Android devices?
View 2 Replies
View Related
Mar 30, 2010
From Android widget screen guidelines,we know that, home screen has 4*4 cells, and in portrait orientation, each cell is 80 pixels wide by 100 pixels tall. I think these are for baseline HVGA screen. How about for large screens and hdpi screens, do they still have 4*4 cells for widget and each cell in portrait orientation is still 80 pixels * 100 pixels?
View 2 Replies
View Related
Jul 29, 2010
I have an HTC Evo that hangs up on everyone that calls me.I keep the phone in my pocket and, in trying to pull it out to answer a call, my leg slides the bar.I could keep the phone in my pocket upside down and then I would answer every call but that isn't much of an alternative.I am looking for something that overrides the Sense's lockscreen/answer screen.I tried both GoTo and WidgetLocker.Both are great programs but neither addresses the incoming call issue.
View 7 Replies
View Related
Oct 28, 2010
I am expecting my ordered screen protector to arrive shortly.
1. What is the best way of cleaning any marks off the screen before affixing the screen protector?
2. What is recommended method of fixing the protector?
3. Does the use of this affect the ease of using the touch screen?
View 6 Replies
View Related
Jun 24, 2010
As we known, there are 3 home screens in the android's default launcher. we can move the right screen or the left screen. and we don't know how many pages are in left-hand & right hand sites . so I want to modify the android's launcher, and add an indicator to show how many pages are in left-hand & right hand sites on the android's home screen. now, I found the Launcher source in the "src/app/packages". But which xml shoul I modity and hown can I known the screen's move ?
View 2 Replies
View Related
Jun 11, 2010
Currently I want to develop one Activity to allow the user to see the screens/activites of all running tasks , then the user can select one of them to switch it to foreground. As I known, HTC Sence seems already to have this implementation for Home screen, to display the thumbnail of all Home panels in one screen. Does anybody know how to access screen stack in Android?
View 1 Replies
View Related