Android :: Alarms (AlarmManager) Cleared On Reboot

Jun 17, 2009

Is there a recommended way of resetting these alarms? The only way i can think of is registering a receiver for boot time, have it re-read the database and recreate the alarms but that seems so overkill. Why on earth would they be designed to be cleared on reboot?! :/

Android :: Alarms (AlarmManager) cleared on reboot


Android :: Repeating Alarms With AlarmManager And Daylight Saving / Leap Years

Feb 9, 2009

I'm looking for a way to trigger repeated actions. I'd like the user to be able to choose the intervals at which these actions will be executed. One should be able to choose from intervals like "Every Day", "Every Month", and "Every Year". The setRepeating(int, long, long, PendingIntent) method of the android.app.AlarmManager class only supports a long value for choosing the interval between the execution of the pending intent. My problem now is, that I can not just compute the number of milliseconds that "fit into one day", since not all days have the same length (daylight saving). This is also a problem for the interval type "year" (leap years).

I had a quick look at the android.os.Handler class, but as I understood the documentation I'd need to keep a service thread running for my actions to be executed at some future time. I don't consider that a good option for my needs ;-) Is there anything in the API I could configure with a cron expression or the like? I was also thinking about scheduling an alarm with the AlarmManager for a single execution at a given date/time and then having a receiver that does the rescheduling according to a cron expression attached to the intent. But I don't know if I just got something completely wrong here and I'm reinventing the wheel with that approach

View 2 Replies View Related

Android :: Data Cleared In Marketplace App?

Sep 15, 2010

I'm trying to download Beautiful Widgets and my phone is still hung up trying to authorize previous canceled order. Clearing the cache and even powering down and popping the battery doesn't help. What would happen if I choose "clear data"? Would I loose all the downloaded app info or what. Thanks, Cyn

View 2 Replies View Related

Android :: Gmail App / Cleared Data

May 27, 2010

On my gmail app its says i have an unread message when i dont. ive cleared the data, uninstalled the app then reinstalled it and it worked for about a minute then went back to showing 1 unread message. what do i do?

View 5 Replies View Related

Android :: Return To Root Activity After Task Cleared?

Jul 13, 2010

I have a app with 2 activities, A B A has a button that launches a new intent for B. When at B I press home, then launch app again, B is resumed with onResume(). But if after I press home, I use something like taskiller to clear tasks, then I launch app again, it still shows B, but onCreate() is called. What I want for the second situation is for the app to start A instead of B. How can that be done?

View 2 Replies View Related

Android :: Maintaining State / Cleared Entered Text

Dec 1, 2009

When I rotate my Screen from horizontal to vertical, All the text I have entered is cleared.How to mainTain the state.

View 1 Replies View Related

Android :: Way To Setup AlarmManager?

Jul 20, 2010

I am currently setting an alarm to fire off a background service every 2 minutes in order to check my server for certain updates. Now if I start the app and my screen is on and not locked the phone plays the sound I need it to play and opens the activity. Thats great. But the way I need it to happen is if the screen is off and the phone locked I still need it to check every two minutes and I need it to play that sound and open the activity that is needed. This does not happen for some reason. Could someone explain to me why the alarm doesn't function when my app is not "running" (by this i mean the app is marked as a running process but not actually visible to the user) and the screen is off? The code for the timer is below: CODE:.............

View 4 Replies View Related

Android :: AlarmManager On Droids

Mar 10, 2010

I am using alarmmanager in my app. It works perfectly for Nexus One and wakes the phone up everytime the alarm fires. But for droid it seems that the phone doesn't wakeup, is there an extra setting on the phone which can prevent the phone from waking up?

View 22 Replies View Related

Android :: Cancle AlarmManager

Jun 14, 2009

alarms.set(AlarmManager.RTC_WAKEUP, getTime(), alarmIntent);

I have set a alarm,but now i want to delete it? how can i make it.

View 3 Replies View Related

Android :: AlarmManager And BootReceiver

Feb 24, 2010

I think I'm reading some conflicting statements about the AlarmManager on the Android docs website. The following statements both exist on this page:

http://developer.android.com/reference/android/app/AlarmManager.html

[at the top]

"Registered alarms are retained while the device is asleep (and can optionally wake the device up if they go off during that time), but will be cleared if it is turned off and rebooted."

- and -

[under setRepeating()]

"This alarm continues repeating until explicitly removed with cancel(PendingIntent)"

So, the question is, do I need to register a BootReceiver that re-sets my Alarms when the phone turns on. The first statement makes me think I do, but the second statement is worded in a way that would lead one to believe that it would live forever, unless a cancel() call on that Intent is called.

So, which statement do I believe or am I misinterpreting one of the statements? I suppose when the power is turned off or back on, Android itself could call the cancel() function on all alarms. I guess it would help if it said that after the second sentence.

View 2 Replies View Related

Android :: Code To Use AlarmManager

Jul 4, 2009

Show me some sample code on how to use an AlarmManager in android.

I have been playing around with some code for a few days and it just won't work...

I need to trigger a block of code after 20 minutes from the AlarmManager being set.

View 1 Replies View Related

Android :: AlarmManager.RTC Not Working

Mar 3, 2010

I changed AlarmController.java in ApiDemo a little bit, so I want the alarm not to go off when the phone is sleeping by using AlarmManager.RTC.

CODE:.................

The receiver code is like below:

CODE:..............

I ran the modified app, but I still see many log messages as below after the phone wento sleep (the screen was black):

CODE:...............

This means the flag AlarmManager.RTC didn't work.

View 1 Replies View Related

Android :: Stopping AlarmManager.

Apr 5, 2010

I have a AppWidget, after I delete it from HomeScreen it seems not stopping the AlarmManager attached with it. I have supported it with the AlarmManger, that call the ProviderImplementation class every 1 minute and in onReceive I put the code to call onUpdate. and in onDelete I explicitly stop the alarm, but it seems it is running continously and not stopping. any cure of it ?

I have stopped it with cancel(pendingintent) function.

View 2 Replies View Related

Android :: AlarmManager Or Timer

Jul 22, 2010

I have a service that I need to execute every two minutes. Would it be more efficient to use an alarm or a timer?

View 3 Replies View Related

Android :: Intents Alarmmanager

Aug 7, 2010

I am trying to create intents that will be set using alarmmanager. Currently, I can do this with one intent, add extra data to it (strings, but i send them as one string with a seperator), and everything works fine and goes off at the correct time. However, when I try to send multiple intents like this, they are overwritten and only one goes off at the correct time. How can i structure my intents so that they appear different to the alarmmanager (i think they are getting deleted when filterIntent() is run).

long story short- putExtra() makes all the intents look the same still... how can i make them look different so they wont get deleted (and keep track of them in case i want to delete a specific one)

View 2 Replies View Related

Android :: App Widget With AlarmManager

Sep 6, 2010

I've created a simple app widget for personal use that queries a site from the internet, parses the XML received and displays some info from it. I'm using a Droid X, if that makes a difference; both in the emulator and as physical hardware, developing in the Android version of the MotoDev IDE.

No matter what I put in updatePeriodMillis, the shortest refresh time I can get is 30 minutes (I thought this was a 1.6 only bug but apparently not since I'm running 2.1) and I want it to refresh every 5 minutes, with some caveats. I don't want the widget to refresh when the screen is off and I want it to refresh immediately upon waking up the screen. My search for information says to set updatePeriodMillis to 0 and use the AlarmManager instead, but I can't find any complete code examples on just how to do this.

Obviously, I'm new to Android development, and Java in general actually, but I've been a developer for a very long time with experience in just about every other language. Currently working in C#, so I thought I'd be able to jump in fairly easily. Can anyone point me to sample code or an open source project that does what I'm looking for? I have other questions, but until I get this piece working they don't really matter. :)

View 5 Replies View Related

HTC Wildfire :: Cant Get Destination Cleared On Google Navigation

Aug 25, 2010

cant get destination cleared on google navigation[please help

View 3 Replies View Related

HTC EVO 4G :: Wiped Data And Cleared SD Cache - Lost All App

Oct 3, 2010

So using Rom manager I went ffrom baked snack 1.7 to 1.8 I wiped data and cleared SD cache and I lost everything all my apps. I rid back up 1.7 so is there any way i can get my apps back cuz I don't want to download.them again

View 5 Replies View Related

HTC Desire :: Cleared Data From Media Storage App

Jul 15, 2010

so the correct music would display in the music app, which worked. But it also removed ALL standard tones, ie ringtones, notifications and alarm tones... Is there anyway I can get them back without factory resetting, ie download them from somewhere??

View 6 Replies View Related

Samsung EPIC 4G :: Cleared FCC (Jamex Over On Androidcentral)

Jul 18, 2010

Copied from another source (Jamex over on androidcentral). Hopefully this includes the Epic and we can get this device in our hands soon. Quote:

View 12 Replies View Related

General :: Data Partition Cleared - SMS Recovery?

Apr 17, 2012

My rom bootlooped somehow, and I was forced to clear the data partition. Now I want to recover the messages and put them in the (clean) rom.

I extracted /data/data/com.android.providers.telephone/databases/mmssms.db from the nandroid backup before I cleared /data.

I tried copying these files into the rom but the messaging app doesn't show any difference. Is there a way to salvage the messages?

View 1 Replies View Related

Android :: AlarmManager Not Firing Receiver

Feb 27, 2010

Any experts on AlarmManager out there?I've got something weird going on.The basic code to set my repeating alarm works fine. I can close my app and the alarm will continue to run like clockwork every five minutes. It works fine only if I set it in the app and then close the app.I've got a registered BootReceiver for re-registering the repeating alarm. I know it fires on boot b/c the log message clearly shows it is firing and re-setting the repeating alarm in question for the same frequency. But the AlarmManager is not firing.Basically, the nearly identical code for setRepeating() fires when set from the app and continues to run when the app is closed, so I know my AlarmReceiver is functioning, but the AlarmManager is either not broadcasting this alarm or my receiver doesn't work from an alarm set in the boot receiver.

View 9 Replies View Related

Android :: Using AlarmManager As Timing Service

Jan 19, 2010

I wanted to ask a question regarding the Alarm Manager. I have a requirements of setting long running timers in my application. The minimum duration for my timer is 1 hour...and the maximum may be for 4-5 days. This timer is supposed to run in the background, and when it fires/expires, i have to show something on the GUI. The timer can be re-scheduled once it fires based on user action.

What is the best approach for scheduling such long running timers ?

Should i make use of the Alarm Manager ? Or will it be an overkill ? As far as i know, alarms are retained even if the device goes to sleep and they wake up the device when the alarm goes off.

I am thinking of using a simple Java TimerTask as an alternative to setting an alarm: http://java.sun.com/j2se/1.5.0/docs/api/java/util/TimerTask.html.

But i am not sure what will happen to the timer task if the device went to sleep while the task was running.

View 5 Replies View Related

Android :: AlarmManager Problems In Milestone

Jun 11, 2010

I'm having some strange behavior of wakeup alarms scheduled by AlarmManager in Motorola Milestone (Droid in US). The thing is that they don't wake the device as they should. The same piece of code works fine in Samsung Galaxy and the alarms are fired as they should fire. In Milesstone when the device is in sleep no alarms are fired but all the alarms are fired at once when the device wakes up. I also found out that Milestone doesn't have the /proc/wakelocks file to check the wake lock info but I'm not sure if that has something to do with the problem. For this scenario there is no reason to acquire a wakelock because the AlarmManager acquires it automatically for lifetime of the OnAlarmReceive. I found some other threads about the same problem in Droid/Milestone, but does anybody have an idea what is the problem and is there anyway to solve it.

This is the code that I'm using to test this.

CODE:................

View 2 Replies View Related

Android :: BG Threads With 1.6 - AlarmManager Starving

Oct 30, 2009

I have a question about the background thread handling change that went into SDK 1.6. I read here that BG threads get placed in a scheduling class that can't use more than 5-10% of the CPU in order to keep the foreground responsive. Do system services get into that scheduling class?

My app uses repeating alarms. It was great with 1.5, very reliable. Since the upgrade to 1.6, the phone seems to be dropping some of my repeating broadcasts, especially if I am doing something fun in the foreground like with WIFI when the Alarm is supposed to fire. I do not have any of the task killer programs that have been a hot topic lately. To be clear, the dropped alarm broadcast behavior is intermittent. I am not 100% sure if I really am doing something when it has failed. If the timer is a one shot, it seems to work better but there is no real empirical evidence here. My phone is usually in my pocket when I fire one of the one shot alarms. If my theory about system services in the background scheduling class is correct, then I probably cannot find a workaround or defensively code a solution. Will it be the same in 2.0?

Have others seen issues with alarms and with the setRepeating method? I am looking for suggestions to troubleshoot this problem. How can I determine if the problem is the broadcast, if it is the repeating alarm creation, or if there is some other issue like low memory coming in to play.

View 13 Replies View Related

Android :: Leaked Intent And AlarmManager

Aug 27, 2010

I am trying to create authentication system which pops up the login window if the device has been off (SCREEN_OFF) for more than INTERVAL.

I have registered a BroadcastReceiver to listen to SCREEN_ON/OFF events in the onCreate() of the launchable activity:

code:..............

When the alarm goes off, the program crashes:

code:..............

View 1 Replies View Related

Samsung Fascinate :: Cleared Data / Cache On Rom Install

Nov 18, 2010

i cleared this on reinstalling the superclean rom and it deleted all my contacts along with cwm, root explorer, etc.. unfortunately i have to sign back into my gmail to download all these from the anrdroid marketplace but i forgot the password since i just created the account last week and never used it other than on my phone... sooo i want to install the backup i made but i don't have cwm or rom manager.. can i use odin to install my backup and how if it's possible?

View 18 Replies View Related

HTC Hero :: Cache Cleared And Applications Deleted Still Getting Low On Space

Apr 2, 2010

I keep getting a low on space message. I've cleared all the caches that I can and deleted any apps that I don't use but still getting it.

View 12 Replies View Related

Sprint HTC Hero :: Market Search History Can Be Cleared Now

May 14, 2010

I'm sure there's some of you out there that will be just excited about this as I am. There's now an app called MarketHistoryEraser that will clear you Android Market searches! No, you don't have to be rooted either! I've waited so long for a way to do this without rooting and it's finally possible. I don't know how to post the QR code here but someone may want to.

View 31 Replies View Related

General :: Unfortunately Gallery Has Stopped - Data And Cache Cleared

Nov 5, 2013

I'm getting the following error message "Unfortunately Gallery has stopped". In the Apps manager for Gallery, I have already cleared the cache and cleared the data, and also pressed "force stop". I've also restarted the phone. However it's still not working.

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved