Android :: Updating Information - Use Alarm / Service?
Jun 6, 2010
I am having some design techniques about How shall I schedule a code to retrieve the weather info? Should I use alarms to retrieve the weather each 10 minutes? And do I need to run a service for this? Or just put the code in the Broadcastreceiver and start when the alarm fired?
View 1 Replies
Apr 18, 2010
Received my HTC Desire this week and its amazing. I've ported over from another provided and it appears that Phone Information in the About Phone Section contains my temporary port number.Can this be updated? Or is this information taken from the SIM?
View 4 Replies
View Related
Mar 18, 2010
I am trying to create a simple Android application that has a ActivityList of information, when the application starts, I plan to start a Service that will be constantly calculating the data (it will be changing) and I want the ActivityList to be in sync with the data that the service is calculating for the life of the app. How can I set up my Activity to be listening to the Service? Is this the best way to approach this problem? For example, if you imagine a list of stock prices - the data would be being changed regularly and need to be in sync with the (in my case) Service that is calculating/fetching the data constantly.
View 3 Replies
View Related
Dec 5, 2009
I need test my Android app on a Motorola Cliq but don't have one. Is there a testing service that will let me make a debug connection to that device so I can run some tests and find out where the code is failing. Video connections won't tell me that.
View 2 Replies
View Related
Jan 1, 2010
Here is my issue, I want to be able to update a specific AppWidgetProvider (home screen widget) from a custom service class. I have to build the remote view in the service because I'm also doing some networking in there, which takes some time. The problem is that I can't figure out how to update a specific widget (individual widgets can have different update intervals, using the alarm manager). If I wanted to do it from the onUpdate of the AppWidgetProvider I could just call appWidgetManager.updateAppWidget(appWidgetId, remoteView); Does anyone have any experience with this or any suggestions?
View 4 Replies
View Related
Aug 24, 2010
I have a service which collect data and send them to a certain URL and updating the main activity GUI, so which is better in the performance to use a long service with listeners to collect the data and threads in it to update the GUI and sends to the internet or to make another service responsible for updating the GUI and sending to the URL only while the first one just collects the data?
View 5 Replies
View Related
Apr 2, 2010
I've implemented a service that does an asynchronous sync between my application and google docs. I want to update the top level activity of my application when the sync is complete. However because of the service it's possible that the app could be be in a unknown state. Is there a way to make the top level activity, whatever that may be, recreate itself from an asynchtask in a service.
View 3 Replies
View Related
Apr 12, 2010
I currently have a Service in Android that is a sample VOIP client so it listens out for SIP messages and if it recieves one it starts up an Activity screen with UI components. Then the following SIP messages determine what the Activity is to display on the screen.
For example if its an incoming call it will display Answer or Reject or an outgoing call it will show a dialling screen. At the minute I use Intents to let the Activity know what state it should display. An example is as follows:
Intent i = new Intent();
i.setAction(SIPEngine.SIP_TRYING_INTENT);
i.putExtra("com.net.INCOMING", true);
sendBroadcast(i);
Intent x = new Intent();
x.setAction(CallManager.SIP_INCOMING_CALL_INTENT);
sendBroadcast(x);
Log.d("INTENT SENT", "INTENT SENT INCOMING CALL AFTER PROCESSINVITE");
So the activity will have a broadcast reciever registered for these intents and will switch its state according to the last intent it received...............
View 2 Replies
View Related
Jul 21, 2010
I'm not sure if this is an android problem, or a samsung i9000 problem, but either way it's an annoying problem that I'd love to find a solution for ?_? I simply cant get the alarm to work for me (overnight. it's fine in the very short term). It appears to be because the clock stops moving/updating when the phone goes to sleep, because when I turn the screen back on I can see that the time is off by multiple hours, depending upon when it stopped updating, and stays that way for a couple of seconds before changing to the correct time.
Things to note here..
I do NOT use a task killer
The alarm volume is up
I have tried the alarm both with and without the Automatic, network provided time setting. The clock still stops moving. I've not updated anything from the standard (UK) firmware
View 48 Replies
View Related
Mar 14, 2010
I was wondering about the following scenario: I have an application that periodically needs to do some stuff, and at first I found that starting it as an alarm service was a neat way conserving resources AND being sure that the service would execute. However, my service also needs to know the location of the device, and I found that using getLastKnownLocation does not suffice as the location tends to be drastically outdated. I then tried adding a location listener, and requested location updates as frequently as possible, but then it could still take minutes before any location event was fired. So, now I have it running as a standard background service but I really don't like that approach. Is it possible to force a location fix within limited given that the circumstances enable acquiring a fix at all?
View 5 Replies
View Related
Sep 9, 2010
I am facing problem in Froyo (Android 2.2), Network Time is not auto updating in date and time setting (using NITZ when Automatic option is enable) with some Service provider (Like BSNL and Reliance). but it's working fine with Vodaphone and Airtel. And i observe based on LOG statement that Unsoliciated Command UNSOL_NITZ_TIME_RECEIVED is not getting called at the time of Android system boot-up time with some Service Provider (like BSNL, Reliance) but it's getting called when i insert the Vodaphone and Airtel SIM card. but not able to figure out that How this UNSOL_NITZ_TIME_RECEIVED command has been triggered? If anybody have any idea please help me? Also i willing like to know where i have to made change, is it in Kernel level or Framework level?
View 3 Replies
View Related
Jun 16, 2010
I have searched a lot of places but couldnt find a clean sequential explanation of how to start a service (or if thats not possible then an activity) at a specific time daily using the AlarmManager??I want to register several such alarms and triggering them should result in a service to be started. I'll be having a small piece of code in the service which can then execute and i can finish the service for good. Code...
View 1 Replies
View Related
Aug 12, 2010
I have an app that uses a TabHost. Several of the Tabs share a common HUD. I am using a service to periodically update those values by calling an AIDL function when ready.
However, since several of the Tabs are using the same HUD I would like to abstract that part out.
I thought about having the HUD.xml use a String resource as it's value and then the abstracted class can update the String resource. However, apparently Android can not update String resources programatically.
The only alternative solution I see would be using SharedPreference.
I have concerns accessing a Database everytime the value is refreshed.
View 1 Replies
View Related
Jul 7, 2010
I am a Mac user (photographer/ videographer). I also rely heavily on my iPod Touch when mobile (i can often find a wifi signal when i am out and about). I use iCal on the Touch and iCal on my Mac as well as the address book on both everyday and as a Mobile Me user, my two devices sync so everything is mirrored and up to date. I also HATE AT&T for their terrible signal strength and coverage and have been a loyal Verizon customer for many years and this is why I don't have an iPhone. Okay, all that being said, is there an easy way to still use everything I love and rely on with my Mac (the calender and address book, mainly) and easily sync all of my existing information and future info to an Android based device? How easy is it to use an Android device with a Mac? I don't want to have to manually re-enter my entire address book into a new device.
View 8 Replies
View Related
Mar 9, 2010
I tried several alarm clocks on my droid, and they all seem to have a problem. if I set alarms for 6:30, 6:41, and 6:52 am. Each with a different sound. If i snooze alarm 1, alarm 2/3 never goes off. i thought all 3 would be seperate, but it seems only 1 can be active at a time. unless im doing something wrong. this happens on the default alarm clock and, better alarm clock.
View 2 Replies
View Related
Jun 22, 2010
I am using service class to play the mp3 file using media player object on Android platform, problem is, i am not able to handle the alarm interruption.When any previous set alarm clock reach to it's alarm time it starts to play in parallel with mp3.I want that mp3 should become paused and after alarm it again start to play,same thing should happen with snooze.
View 1 Replies
View Related
Jul 21, 2010
As far as I'm aware the standard alarm clock will not alarm when the phone is switched off. Does anybody know an alarm clock that will alarm when the phone is switched off ...? (preferably free)
View 2 Replies
View Related
Aug 3, 2009
I am overriding the functionalities of current android alarm clock. As of now, if we have set two alarm of ,say, 10:10 and 10:15, now if the first alarm pops up at 10:10, and we click on snooze button(snooze time: 10 mins), then it says that the snooze will not be set since there is already an alarm in between(the 10:15th one). Here i want to both the alarm(i.e, snoozed one and 10:15th one) to be set. Any ideas???
View 3 Replies
View Related
Jul 24, 2010
Anyone having trouble with widgets stop updating? Like my clock/calendar/weather/news/pretty much any widget i have stops updating after an hour. So i look at my clock widget two hours later and it is an hour behind. Happens to ALL my widgets.Even the quick turn on/off wifi,bt,gps and such. They just stop updating/showing animation.I have ADW launcher installed. I am wondering if it is that. I do not really want to remove it as i hate the stock 3 button interface at the bottom (why do i need a contacts and phone, just use the phone to look thru contacts, wasted space IMO) and am quite keen on keeping the 5 button.Any ideas? If i power off the phone and turn it back on it's fine again for about an hour. SOmetimes randomly thru the day it will start updating and working fine again then randomly stop again.
View 12 Replies
View Related
Jul 6, 2010
Are there any good alarm applications for the X10i?
Basically I use my phone as an alarm to get up for work. My old Nokia N96 I could set the alarm and then switch the phone off at night and the alarm would still go off on time. This does not seem to be the case with the X10i. It doesn't even go off when the phones in airplane mode which is poor. I just don't want to have to leave my phone on overnight in case it rings and i wake up.
Are there any good alarm apps that allows you to turn the phone off and the alarm would still ring at 6.30 for work?
View 15 Replies
View Related
May 15, 2010
Does anyone know how to purposely change your app names? Is it even possible? i.e, " better alarm clock " to just alarm..
View 4 Replies
View Related
Nov 10, 2012
I need a alarm app which can show the time remainig till the set alarm buzz off.
View 3 Replies
View Related
Mar 2, 2010
I upgrade from a blackberry storm to the eris and I'm looking for an alarm app that could turn the phone on when its time to get up. My blackberry had the capability of being turned off but would turn back on when the alarm went off. Does the eris have this capability or is there an app out there for this.
View 10 Replies
View Related
Dec 24, 2012
I was using AlarmDroid as my alarm clock. Every thing was fine, until I had always 2 alarms (somehow) every morning, but in AlarmDroid there was only 1 event. After that I had some weird things, like the alarm was starting too early or too late. So I uninstalled this, somehow unstable app, and installed Alarm Clock Xtreme - everything is fine with Clock Xtreme. Exception: one of the alarm that I was using in AlarmDroid is still there! But there is no more AlarmDroid on my phone. Wondering how this is working.
I install AlarmDroid again, just to be sure to delete the event, but there is no event. But there is always the alarm. With and without AlarmDroid. What can I try to solve this stuff? Maybe its not that important but Im using a Nexus S with stable cyanogenmod 10.
View 1 Replies
View Related
Sep 17, 2010
I am making a alarm app and was just wondering how do I show a alarm icon at the right side of the statusbar like the original alarm app? normal notifications appear in the left side and I cant find anything about this....
View 2 Replies
View Related
Apr 15, 2010
When i plug my BB into the charger, it recognizes that its charging and automatically switches into "bedside mode" (changes my sound profile, displays the clock, and dims the screen way down). When I unplug my BB, it recognizes that its unplugged, switches out of bedside mode and switches back to my previous sound profile. Does android do this or is there an app that does something like it? I know it sounds lazy, but I'm just used to plugging it in, and the BB doing everything else. BTW, I really hate my BB and excited about the new Incredible.
View 2 Replies
View Related
Jun 24, 2009
I have a service running in the background.I have a background thread that gets a reference to the service from the application's main activity. But when the background thread calls a method in the service to display a toast, I get the "Looper not initialized exception".Why,if I have a valid, bound reference to a Service, does this still happen?
View 4 Replies
View Related
Aug 20, 2009
I am getting following message when i try to launch service.Also is there any specific path on file system where we need to place the .apk file which contains my serivce component only.
View 2 Replies
View Related
Jul 22, 2010
I am trying to run the sample soft keyboard included in the SDK. I am using the debugger, and the literature says that to use a breakpoint while debugging a SERVICE, I need to include:
android.os.Debug.waitForDebugger();
So here is the portion of the code I modified:
CODE:...........
I have put a couple of breakpoints, at the statements indicated by the comments.
This is what happens: the debugger first stops at the breakpoint1, for a few seconds. But then the service restarts. For the life of me I can't figure out what makes the service to restart.
View 3 Replies
View Related
Mar 1, 2009
My service works exactly the way i want as long as i use start and stop and communicate using intents. However my activity needs to change the state of my service as well as retrieving state information.So i thought it would be nice to broadcast some kind of state_changed event from my service and use a binder interface to pull information from the service or change the services state based on user input.This works fine too. The only problem is that my service gets killed when i unbind it just as the documentation says.Is there any way to keep the service alive but still get an interface to control it directly. My activity offers the user a way to stop the service and the service kills itself anyway after it's work is done but i don't want the service to stop every time the activity is destroyed.
View 3 Replies
View Related