General :: How To Keep App Alive In Background
Apr 2, 2012
I have a ics tablet, and I am getting really frustrated with Opera mobile keep reloading while I'm in another app or two. my tablet has 1gb ram. I tried autokiller memory optimizer, and auto memory manager to keep opera alive, but its not permanent. and V6 supercharger sounds wayy to complicated for me. and this tablet doesn't have a recovery (its rooted though), so the instruction sounds more complicated to me. so I saw one post in xda somewhere, that I can modify build.prop to set oom priority and it will be kept permanently.
View 5 Replies
Aug 3, 2012
As of ics when you move browser in the background, that is switch from browser to another app, the flash content on the web page gets paused, like the waiting seconds countdown on a file sharing website, it simply means you can't multitask, So is there a app that can prevent the browser from being dead in the background, or a floating browser will do the trick
View 9 Replies
View Related
Dec 21, 2011
I would like to change the Keep Alive Timeouts in the native SIP Application. I'm using a Nexus S with ICS. But I always get this error
Code:
I/ActivityManager( 152): START {act=android.intent.action.MAIN flg=0x4000000 cmp=com.android.phone/.CallFeaturesSetting} from pid 1745
E/MenuItemImpl( 1745): Can't find activity to handle intent; ignoring
E/MenuItemImpl( 1745): android.content.ActivityNotFoundException: Unable to find explicit activity class {com.android.phone/com.android.phone.CallFeaturesSetting};
have you declared this activity in your AndroidManifest.xml?
That's what i did:
-Check out Android Source with repo, Tag 4.0.3
-Edited frameworks/base/voip/java/com/android/server/sip/SipService.java
-lunch full-user
-make
-Copied the resulting Phone.apk and Phone.odex from out/target/product/generic/system/app/ to my Phone and fixed permissions.
View 3 Replies
View Related
Feb 8, 2010
I have an app which declares a BroadcastReceiver, the receiver gets the broadcast, does what it needs to, then ends ensuring that everything is tidied up as needed. When I examine the system through the DDMS view in Eclipse the process for the application is still running after the receiver has completed. I've even boiled it down to a simple test case which gets a shared preferences instance from the context, checks a random setting, and then exits, and, when run on the 1.5 emulator (which is the minimum supported OS level) the process is still hanging around.The reason this is an issue is memory usage (which shows under DDMS as around 2MB).I've had queries about why the application still uses up memory even when it's not doing anything, so, my question is; Is this behaviour normal, or have I missed something that would make the process exit?
View 9 Replies
View Related
Jul 19, 2009
Is it possible to keep service alive even if the foreground app does not run anymore? My app consists of a foreground app (UI) and a service that should keep running in the background until it is being explicitly stopped by the user (similar to a music player). The problem is that if the user opens other apps, my foreground app is being killed by the system (makes sense) but then also the service is being killed by the system (does not make sense).
View 16 Replies
View Related
Apr 14, 2009
I just wondered which frequency is OK to send whitespace keep alive packets onto a TCP connection to keep it alive on a T-Mobile 3G connectivity (the use case is to maintain an idle XMPP session alive). On SFR in France, we are disconnected if idle for 3 minutes, but I guess T-Mobile's timeout is lower. By the way there is a bug in the Smack library, the "keep alive" setting is not enforced, e.g. if you set it to 30s, in the worst case the whitespace will not be sent until the double of this time (60s).
View 4 Replies
View Related
Oct 22, 2010
is there any way to keep my connection alive when the screen goes off? my xmpp connection is disconnected due to ACTION_SCREEN_OFF event,
View 3 Replies
View Related
Jul 13, 2010
I am writing an application to do fileobservation which can be done. Is there any way I can make the application to run in the background without killing it? Unless user restart the phone. Is there any way to do it?
View 9 Replies
View Related
Dec 7, 2009
am developing an app that needs to track incoming calls. I have set up a phonelistener which is launched form a service like so
TelephonyManager tm = (TelephonyManager)getSystemService (TELEPHONY_SERVICE); tm.listen(mPhoneListener, PhoneStateListener.LISTEN_NONE);
This seems to work for a while but then fails to fire after - say an hour. I have tried relaunching the listening in a timertask every 60 seconds but this does not seem to work. Is there a way of keeping a listener alive for a long period of time. I can only assume the system is garbage collecting it.
View 2 Replies
View Related
Jun 30, 2009
How do I make my service always alive?? If my service gets killed because of an exception or if the VM kills my service on low memory, How do I make sure that my service is always running?
View 14 Replies
View Related
Dec 10, 2009
I want my service keeps network connection alive even if user presses the power button to shutdown the screen. As I have tested, socket will return exceptions and through CONNECTIVITY_ACTION intent, i know EXTRA_NO_CONNECTIVITY is true. So can current Android keep connection not closed when screen is off?
View 3 Replies
View Related
Apr 7, 2010
The default way configuration changes (i.e., rotates) are handled is to destroy the activity & recreate it with a new one. What is the recommended way to handle these changes in an activity that binds / unbinds to a service (that is possibly heavy/slow to start)? When the activity gets destroyed, it unbinds & causes the service to be destroyed. When the new activity is created, it binds & recreates the service.
The only choices seem to be:
-- override onConfigurationChanged in the activity. Feels ok, but non - conformant.
-- explicitly start the service & only stop it when the last activity gets an onDestroy that's not due to a config change (i.e., there was no call to onRetainNonConfigurationInstance). Feels icky.
-- explicitly start the service & don't stop it until some amount of time after the last unbind. Ickier.
On a related note, what happens between activity switches within a process, where the first activity (A) starts the next activity (B) & then calls finish() -- is there a guarantee that B.onCreate is called before A.onDestroy? If not, and the activities share a service, the same issue of keeping the service alive during this window exists, but with only the icky workarounds.
View 7 Replies
View Related
Sep 13, 2010
Trying to understand the Android framework model. I have an application that needs to have several threads running. On thread gets GPS fixes, another picks up GPS fixes and pushes them to server, and yet another occasionally polls a server for dispatched orders. Some of these threads update status Views as well.
Since I am new to Android, the application framework model hasn't clicked for me. Where are these threads started? Right now I start the threads in the initial Activity, but if I understand it right, once that Activity goes invisible it is stopped. Furthermore, I have to track GPS and network statistics so that I can have a View which may (or may not) be the active View.
View 1 Replies
View Related
Nov 23, 2009
Is there a way to keep an Activity in memory after the user hits the back button on it?ActivitySearch is used frequently in my app, however after the user starts it up, then hits the back button, it's destroyed, and the next visit to it requires it be built from scratch again.If after its first construction, I could just request it be paused instead of destroyed on the back button, then I could reuse it. Is there a sensible way of doing this?The only way I could think of reasonably doing it is to combine ActivitySearch with ActivityMainMenu into a single activity, and simply switch views when the user chooses search, but this is probably a bad design.
View 6 Replies
View Related
Nov 26, 2009
I want to check whether the process is still alive or not through programmatically ,Can i do that i am trying to do it by process name in onCreate method but the issue is that the onCreate method is called always .When i check that in onCreate method i always get the process name and i can not kill the current app and switch to previous one.
View 3 Replies
View Related
Nov 3, 2010
If it is possible to keep an Air for Android application alive during sleep, how can it be done? I know how to prevent sleep and lock but this course is not preferable to some users.
Update
The reason in this case is to keep the video streaming from the phone to a server.
View 2 Replies
View Related
Oct 23, 2010
There seems to be a solution for the random shut-down problem with Captivate: Captivate Keep Alive app. This was just posted, and it really seems to work! Give it a try. So far I've been up for more than 24 hours without a shut down event.
View 5 Replies
View Related
Nov 10, 2010
I got pretty good guessing the touch buttons one they time out, but still annoying as I did miss sometimes.Well just now, I decided to do something about it.A real quick poke through the phone revealed a very easy fix.The path is here.Settings[Sound & Display[Keyboard timeout[Same as Screen timeout my screen timeout is 1 min.As we all know, and I verified this. The keyboard backlight only turns on when the slider is open. Now the touch-sensitive buttons will infact stay lit as long as you would need them, while the screen is on .Life just got a little easier B)
View 4 Replies
View Related
Nov 23, 2010
Once we call the startService() method, can we keep the service alive until its explicitly stopped by the user? I want my service to stay alive until the phone is switched off. How can i do this? The idea is that when I receive an incoming call, I want to start recording and once the status changes to idle, I want to stop the recording. I am doing this inside my service. It does work sometimes and sometimes it doesn't. How can I implement such a thing in a service? Can someone help me with this?
View 2 Replies
View Related
Feb 24, 2010
I am currently firing an Intent to a Broadcast Receiver which in turns starts an Activity.
Then from the same Service another Intent is fired to a Broadcast Receiver thats in the Activity.
The problem is that the Activity isn't getting the Intent meant for it because it is fired before it is alive and the Broadcast Reciever is registered.
I was wondering is there anyway to make sure an Activity is alive before sending an Intent?
View 1 Replies
View Related
Aug 31, 2010
I just started working on android(beginner). I'm stuck in the activity state complexity. I created two activitys(activity1 and activity2). wen i move from the activity1 to 2 and then back to activity1 using a button(back of activity)the values(states) of the views are not restored. here is the code...
View 1 Replies
View Related
Sep 16, 2009
The app widget documentation indicates that the "widget provider"being a receiver of a broadcast service may not exist (the process) beyond the completion of the call.If I want to maintain state between two broadcast events, such as say widgetProvider.onUpdate(), can I start a local service and leave it hanging there until my widgets are disabled? If I didn't explicitly stop that service will it be loaded again and resumed when the device wakes up.
View 4 Replies
View Related
Oct 27, 2010
I'm coding a very basic FTP client on top of my application and I have 2 activities. The first one is the file explorer and the second one is the image viewer. Once I click on the image filename on the explorer, I want to pass the connection to the other activity to handle extra stuff. Basically, I want to keep the same org.apache.commons.net.ftp.FTPClient object (which handles the connection) alive in-between the 2 activities. I know I can't pass an object inside an intent so I don't know what my best bets are.
View 1 Replies
View Related
Nov 18, 2010
How to add a background theme and/or background wallpaper to my app? Right now my app background is plane.
View 2 Replies
View Related
Feb 13, 2012
I changed the Color of a few of my apps icons, but now it Doesn't have a transparent background. It has a black background surrounding it. How to Fix that?
View 1 Replies
View Related
Apr 17, 2014
I'm giving hangouts a shot as my main SMS app, but I'm not seeing an option to customize the theme or background on my phone. Is it even possible?
View 2 Replies
View Related
Oct 11, 2011
So we all know that turning off background data is a massive battery saver. What I want to know is WHY? As in, what apps are doing what and when to use so much data. What app can I use to log this kind of data usage?
View 1 Replies
View Related
Mar 3, 2014
where to find the mms settings background and fonts on JB +a9 karbonn i need to change the tranparency and color font i already change the mms bubbles color fontsand other but i cant find mms settings and where to change on xml.
View 4 Replies
View Related
Oct 17, 2011
I wrote some sh script to my device which has to run for a long period of time. I wanted to run the script on the background so i run the script with "&" but for some reason the script freeze whenever the device is getting into standby mode.I made some testing script (called testcode.sh) which simply count seconds to see what happen
Code:
#!/system/bin/sh
i=0
while (); do
sleep 1
i=$((i+1))
echo -e "
It has been $i sec since the script started" done.I run the script from a terminal (./testcode.sh &) and saw the counter start counting, i then put the device to standby mode (short press on the power button) and waited for 10 min. after 10 min i open the device and saw that the counter still counts but the time was 3 min (180 sec).
So i guess the script kept running for 3 min then hang for some reason and resume when the device got off standby mode.Is there a way to make my script keep on running ?
View 1 Replies
View Related
Dec 9, 2013
My phone is Jiayu G3S, with a MTK6589 cpu and android version 4.2.1 I use latest xposed installer and latest gravitybox.
My problem is that something is keeping my cpu busy in the background, preventing it from sleeping.
For example, i left it last night, and i opened it after 12 hours, it was awake and using cpu for about 90 minutes.
My normal consumption is 0.3% every hour, but now it is 3%, like 10 times more. Also noticed greater consumption when screen is on. As you can see, there is no strange wakellock that lasts that long and all my apps have settings not to auto-update. I tried reading my logs but i didnt find any info.
View 7 Replies
View Related