I just installed the 2.2 update on my Incredible. Don't know if it's me but it seems a tad bit slower than the last OS. I'm also noticing on my Advance Task Killer that I have Skype, Amazon MP3, Slacker, Kik, and other applications open most of the time without even touching the apps. Also pressing KILL all applications does not do the job! I gotta hold the application and press force stop myself.
Also earlier today I noticed I got incoming and missed calls from people in my phonebook, but when checking my call logs, it doesnt show their name it just the number and thats it.
So if anyone else is experiencing this please or has a solution to this please reply back.
Is there a way I can test if there are any other activities in my app still alive? I am looking to stop a service in an onDestroy method, but only want to do this if there are no other activities from my app still alive on the stack.
I have the call stop the service in the main activity's onDestroy() method. This works perfect EXCEPT that if a user launches my app, then launches a few activities in my app, then hits the home screen and RELAUNCHES my app, they will subvert my order and the main activity will now be above other activities of my app. From this state, if they hit the back button and 'back out' of my home screen they will trigger the onDestroy() method and kill the service even though there are other activities open on the stack. I want to avoid this by stopping the service ONLY if I am sure there are no other activities of mine open on the stack.
I was wondering if I can somehow permanently get rid of some running services that start up on my phone? I'm speaking specifically to the motorola widget ones such as social networking and news that are running even when i haven't signed up for them.
I was reading one of these threads, and someone mentioned that there was a way to stop apps from opening on launch.I have apps that randomly open by themselves and i want to prevent them from doing so. (VLC Remote, default messages, and a few others)I've posted enough good points that if this was said already i can get a freebee :P
Google talk service starts running as soon as the phone is on, even though the app is closed (with ATK). Anyone know how to prevent it from starting up with the phone? I dont really use gchat on the phone so I dont want it to run unless i open up the app.The same occurs with google voice (which i only have set up for voicemail). This one I dont care too much if its on since at least its useful for voicemail.
Ok, so i go to check running services and i see that sprint hotspot is running. i have not started it since the day i bought the phone. i have no intention of using it, for now. why is it running and how can i stop it from starting? is it supposed to be running?
I am developing a Service component which runs periodically, triggered by the Alarm Service. At the moment I have written an Activity which enables a user of the Service component to schedule it to run or cancel the service from running (just adds or removes scheduled Alarms via the Alarm Service).However I would like to have the Service component get scheduled to run at Android boot-up time - I would like this to happen without user inter-action (so not using the Activity I have written). I plan to have a stored boolean value in Preferences which will either enable or disable the service. Does the Android Framework support a way for me to support running some code at system boot or soon after ?
This should go in the battery section perhaps but I'm in a hurry and wanna easily find it when I get home from work. My battery life is awful. I send txt messages and thats about it and my battery drains in a hurry. On days that I 'play' with the phone and use the hell out of it, it drains in fast forward. I read a couple pages of the battery life post and tips and tricks section and probably need to shut down or limit programs running on my phone. I have the power control widget on screen and most of the time have everything off. If surfing the web or whatever I turn wi-fi on, then off after use. If I do nothing with the phone for awhile then switch to task manager it will pull up a list of a dozen or so things running..thought this thing was supposed to kill these apps. Do I just go into each app or widget and find some options to limit everything? What about juice defender (is that right?)? Does it help? Seems like my phone is on the charger more often than not. I'm going to pick up a new battery but would like to learn how max battery life before I do.
I have had my Droid for almost a month now and i love it,,, but there are a couple of really annoying things that it does, and i was wondering if it was just me, or if anyone else has these problems too...
I will hit the unlock button on the top and start to do my pattern, and all the sudden, it says that i lifted my finger... and takes two tries out....
I will hit the unlock button and start my pattern and the screen will shut off like there is no activity and i will have to hit the unlock button again, and start over.
Oh and how about this, tried both handcent and stock messaging app, i regularly have periods of long delay from both receiving and sending text messages, i will be sending one text and get a text sending overload message also.... then i will have periods of sending and receiving the exact same text 10-15 times in a row.... this happens all of the time and its extremely annoying....
I need to shut down the service on background.Except the service restarts itself over and over again! Even if I kill the program from task manager the service restarts itself. Other programs aren't using the service. when I uninstalled the program the foreground program information popped up indicating it was STILL there(albeit this I solved by rebooting phone).
When user says he's finished with the program 'least he can expect is for the program to stay down rather than keep eating battery by acquiring GPS signal and sending them to server. The program is not intended to be "once you log in you need to Uninstall me and reboot phone to get rid of me!" type of program!
If I Force Stop an app (via Settings->Applications->Manage Applications->Any App->Force Stop) will the app ever start up automatically again or is the only way to start it up again to have the user start it. I have an app that starts a service. The service registers an alarm I've defined, with the Alarm Manager and this is recieved as expected. In my manifest I've defined a TimerIntentReceiver, to receive that alarm I've defined. If I Force Stop the app then is it possible to have the Alarm Manager "wake" my app up via the TimerIntentReceiver I've defined. I'm not seeing this happen. Once I Force Stop my app it never runs again unless I manually start it. Is there anything I can listen for, apart from BOOT_COMPLETE, to start up my app? Or does the user always have to start all apps.
I'm playing around with the MediaPlayer class to reproduce some sounds/music. I am playing raw resources (res/raw) and it looks kind of easy.
To play a raw resource, the MediaPlayer has to be initialized like this:
Until here there is no problem. The sound is played, and everything works fine. My problem appears when I want to add more options to my application. Specifically when I add the "Stop" button/option.
Basically, what I want to do is...when I press "Stop", the music stops. And when I press "Start", the song/sound starts over. (pretty basic!)
To stop the media player, you only have to call stop(). But to play the sound again, the media player has to be reseted and prepared.
The problem is that the method setDataSource() only accepts as params a file path, Content Provider URI, streaming media URL path, or File Descriptor.
So, since this method doesn't accept a resource identifier, I don't know how to set the data source in order to call prepare(). In addition, I don't understand why you can't use a Resouce identifier to set the data source, but you can use a resource identifier when initializing the MediaPlayer.
I guess that I'm missing something. I wonder if I am mixing concepts, and the method stop() doesn't have to be called in the "Stop" button.
I want to use GPS service for better accuracy in my program, but want the location only once in every couple of hours. To get GPS location the GPS had to be started already manually through Settings->Location Security->Use GPS Satellites. But the problem is GPS continuously running whether I need the location or not and drains the battery quickly. My question is what is the equivalent API for the checkbox selection of,
I've an App which performs a potentially large download in background thread. When the orientation changes or the keyboard is opened the App lifecycle system invokes the start/stop/pause/resume etc calls - is there any strategy available to resume the download rather than just set a flag so the new onCreate() knows it was interrupted and has to start it again?
I have this game, which is almost done. It has 1 critical bug. When the app exits and restarts, the phone goes in to super slow mode and eventually restarts. I am at a loss as to how to debug it.
It seems like something is happening to make the program run super slowly. The ND time the program exits it takes a very long time to exit and when the phone returns to the main screen the program is almost totally unresponsive. The phone will eventually restart itself.
I am absolutely new to android and web development. I would like to make an app which I can use to login to my account on a website (URL,,,) and to be able to start and stop the parking time. It should also show the time passed and notify every 30 minutes about it.
I am not looking for code (but of course, it would be nice to have some examples) at this moment but for some tutorial or a list of functions which I need to program to make such an app. If there is an existing application which I can modify for my needs, I can also try it.
I tried to search but the most of the content assumed for people with some knowledge of http post (I even do not know what it is) and others.
I am developing an Android app and I am doing some heavy work (bringing data from an online web page and parsing it to store in database) in a service. Currently, it is taking about 20+ mins and for this time my UI is stuck. I was thinking of using a thread in service so my UI doesn't get stuck but it is giving error.
I have a launcher activity which gets activated everytime i start the application and a service which complements it. Now as i press the return key from my main activity .Its Ondestroy gets called.Now i have nullify the pointer of the my launcher activity there. now i am listening through the service any event happening on the network after closing the launcher activity thread and if any event occurs i have to relaunch my launcher activity. i have tried intent but doesnot seems to get though it .
My application has a background process which continuously waits on a socket for receiving messages and it should be started only once and at the time of application starting.Thus i want to do that background job in a service.
The service should not be started from the activity ,it should be started at the application starting.
How can i define the service,which will be started at the time of application starting?
If at all the service is started from activity.The activity can be destroyed and restarted.when this happens the service also be restarted .
We have a service. bindService() returns true. But our ServiceConnection is never called with onConnect(). The onCreate() of the service is never executed (neither is the onBind(), of course).
Except sometimes! (twice now, out of many many tries).
Remote service, local service, intent-filter, direct class invocation, "procedure" attribute, no procedure attribute, cupcake, 1.1, emulator, device ... we've tried 'em all!
We belive the service is found, and in the remote case, we see the new process always created ... but the dang service just isn't started. We aren't specifying any security settings and writing the simplest manifest entry we can....
I am having service inside a .apk file. I want to automatically start this service when this package is downloaded from the browser and installed. Is it possible to automatically start the service when the .apk file gets installed using some special intents.
I am right now using activity and broadcast recievers to start the service . But however, I would like to start the service automatically when the apk file gets installed with out writting activity or broadcast recievers.