Android :: Leaving An Application By Pressing Home
Aug 14, 2010
I've recently been getting user complaints that when they leave my app by pressing the 'Home' key, my app continues to play sounds like it is supposed to, but when they go back to the app, a new one opens, but the old one is still running in the background. I have noticed this sometimes myself too, but only recently (my app has been on the market for a while now). I've done some testing myself and noticed that when a new instance of the app is opened after pressing 'Home' then starting the app again, pressing the 'back' key will go back to the original instance of the app that was opened. This means that the original instance of the app was not killed, but a new one was just opened over it. Has anyone else experience something like this?
View 5 Replies
Aug 3, 2010
I am tonight at a party and a good friend asked to use my phone for the music I've got on it (16g class 4 SDHC updated twice a week ). I after a long conversation of "If you break my sh-- I will have to kick someone's butt." I gave it to her and she plugged it in. Long story short, somehow it was knocked off the table and into a puddle of what I will, for lack of a better word, call fluid. I assume it was beer but still am unsure. Now, I've dried it out using the "Rice Trick" and leaving it on top of the heater vent, put the battery back in turned it back on and the screen was totally un-responsive. I tried a battery pull to see if that would fix it, but to no avail, it was still un-responsive. I then tried the factory reset (Home+Back+Tap Power>Clear>Reset). Now when the phone boots up and everything loads, Navigator will load and start up all on it's own and when I press the Home button Navigator starts up again. Tried the factory Reset again and the same problem. I was going to just re load the 2.27.651.5 from sprint (I never deleted it from my PC when it first dropped) but when I connected my Hero to my PC it wouldn't detect the Hero, It would charge, but not Mount/Sync/Share.
View 12 Replies
View Related
Nov 12, 2009
I'm looking for a app that will turn on the GPS when I leave a location, and will turn it off when I arrive at a location.
Example: I leave the house and the GPS is turned on, I arrive back home and the GPS is turned off.
View 2 Replies
View Related
Nov 24, 2010
I have an Android service, created in OnCreate of first Activity of the application using StartService(). I need this service to be running throughout the life span of the application ie, all the activities in the application. But the service should not consume the resources after user pressed Home key or Back button. Is there any elegant way to do that other than stopping the service in onPause() method of all the activities?
View 2 Replies
View Related
Feb 5, 2010
Can you please tell me how can my activity detect user pressing HOME key?
View 2 Replies
View Related
Apr 6, 2010
I am making an Android game with an Activity called Game, a SurfaceView called GameView and a Thread called GameThread. The Game's onCreate(), I make a new GameView, which makes a new GameThread, where all the game logic and canvas drawing is carried out. However, I'm having some lifecycle difficulties. When I press back and restart it, it works fine, but when I press home and restart it, all I see is a blank screen. Here are the GameView's onSurfaceCreated() and onSurfaceDestroyed(): @Override public void surfaceCreated(SurfaceHolder holder) {
mThread.mRunning = true;
mThread.mWidth = getWidth();
if(mThread.mWidth > 550) mThread.mWidth = 550;
mThread.mHeight = getHeight();
try {
mThread.start();
} catch(IllegalThreadStateException e).......
View 1 Replies
View Related
Apr 17, 2013
i have karbonn a21... whnevr i long press home button to switch between recent apps. phone hangs and no soft keys work. nd touch works slow. than i have to lock screen and unlock it again....than it works fine.
View 2 Replies
View Related
May 6, 2009
Whenever I press the home button when Im in the root task of my application and when I click on the icon of my app again the state of my task (activity) is retained, but when i press the back button on the emulator and when I open my application its state is not retained. I want the state to be retained in both the scenarios.
In the mnifest I have given the below entries,
android:alwaysRetainTaskState="true" for the root activity
android:launchMode="singleTask" for the application
View 2 Replies
View Related
Nov 13, 2010
This is difficult for me to diagnose because the Log doesn't provide the offending code line that indicates what caused it.Running the app in the Emulator seems to work OK until I press Home or Back from the Main Activity. Using Back between the activities in the program seems to work OK, it only fails at the Main. I don't have the app finished yet so I haven't loaded it to a device yet.The Log says there was a null pointer exception so I would like to find why.The log points to the android routines (and I don't appear to have the source for those routines in the emulator-most but not all and these are refering to those I can't access). The log gives up at one point and says "11 more".It would be nice to see the remaining 11 in the hopes that one of them points to the line in my code that caused the offense.I'm looking for ideas on ways to find the error and hopefully cure it.
View 2 Replies
View Related
Jul 9, 2013
I upgraded my Galaxy S2 (Straight Talk) to CM10.
Now whenever I press the home button, it brings up CM10's home screen.
How do I bind ADW to the home button?
View 2 Replies
View Related
Sep 27, 2010
Motorola Droid 2.2 Froyo rooted Bugless Beast 0.5. Randomly (Maybe 2/5) when I press home from the browser, an application, ending a call, etc. All of my icons will disappear for 4-5 seconds. Please tell me if you know of a fix or anything about this problem, I've seen other topics about this but no solutions that worked.
View 9 Replies
View Related
Feb 21, 2010
How can I start my android application after pressing particular key?
View 3 Replies
View Related
Mar 1, 2010
on intent when user press back button should exit from the application, how can i track back button and exit from the app?
View 2 Replies
View Related
May 19, 2010
I have been working on a replacement for the stock Car Home app for a bit, and I am completely stumped on how to override the Home button so that my app will be brought back to the foreground whenever the phone is docked. This is the way that Car Home works, so there must be a way. It seems that BroadcastReceivers won't work, because the intent that is broadcast whenever the Home button is pressed will still cause the default homescreen app to launch; I cannot prevent it. I can override the Home button from within my app, but that does me no good since this needs to work when the user is outside my app. Car Home also does not do anything weird like set itself as the default homescreen app while it's running (I checked the logcat to make sure).
I've been really beating my head against the wall on this. Does anyone have any ideas, or can you at least point me in the right direction?
View 3 Replies
View Related
Aug 5, 2010
I have a wizard application that I want to make Home application. How can I convert regular application into a home application.
View 1 Replies
View Related
Jun 18, 2009
I'm animating a an ImageView from the right to the left of the screen using a translate animation. The ImageView is place inside a RelativeLayout over the top of my main layout using FrameLayout. When I run the animation on the emulator everything works pretty well but when I use run it on my G1 it leaves visual artifacts behind and effects the rendering of the text component behind it. Is this a performance issue and I'm being too ambitious or is it a bug I can overcome? If it is a performance issue is there anything I can do to improve things?
View 3 Replies
View Related
Jun 18, 2009
I'm animating a an ImageView from the left to the right of the screen using a translate animation. The ImageView is place inside a RelativeLayout over the top of my main layout using FrameLayout.When I run the animation on the emulator everything works pretty well but when I use run it on my G1 it leaves visual artifacts behind and effects the rendering of the text component behind it.Is this a performance issue and I'm being too ambitious or is it a bug I can overcome?If it is a performance issue is there anything I can do to improve things?
View 4 Replies
View Related
Nov 5, 2009
On my 2nd day of having the Cliq, I started receiving this error:
The application Home (process com.motorola.blur.home) has stopped unexpectedly.
and gives me the Force Quit button.
It usually happens when I'm texting or using the Messaging widget on the home screen and today it has been happening very often!! Starting to get annoying.
View 3 Replies
View Related
Feb 9, 2010
i find it quite annoying that uninstalling an app doesn't remove all of its data.sure, this is desired behavior for some apps (a camera for instance), but imo google should have implemented a requirement for an app to explicitly request to be allowed to save permanent data, and if the request wasn't made, collect the location of any saved data and remove it upon uninstallation
View 5 Replies
View Related
Apr 28, 2010
I launch the Media Player to play a mp3 file the usual way:
CODE:...........
Leaving the Media Player using the Back button stops the playback. How can I ensure that the Media Player continues playing.
View 2 Replies
View Related
Oct 28, 2010
If user repeatedly presses back button, I need a way to detect when they are on the very last activity of my task/app and show "Do you want to exit?" dialog befor they return to Home Screen or whatever previous app they had running.
Its easy enough to hook onkeypressed(), but how do I figure out that this is a "last" activity in the task?
View 3 Replies
View Related
Oct 10, 2010
I need my Android app to save it's state to disk when its activity is put in the background or killed. It's been suggested that I start a thread when onPause() is called and perform any expensive I/O procedures there (see http://stackoverflow.com/questions/3894668/saving-loading-document-state-quickly-and-robustly-for-image-editor).
In what situations will the OS kill the thread and how commonly do these situations occur?
I assume it will be like how Activities are dealt with where the OS can arbitrary decide to kill the thread but will mostly only do this when resources are extremely limited. It would be nice to find some specific documentation of this though.
From playing around, with some test code, a background thread started in onPause() will run indefinitely in the background on my device (I tried loading lots of apps and couldn't get it to be killed).
For my specific app, I'm writing a bitmap editor where I'm using the Command pattern and the Memento pattern to allow undo and redo of edits. I'd like the user to be able to undo/redo their edits even e.g. the user gets a phone call and the activity is killed when it is put in the background. The best solution I can think of is to use a background thread to constantly save my command and memento objects to disk during application use and to finish up saving any objects that are left in a background thread if onPause is called. In the worse case, if the thread is killed I'll only lose some edits.
View 3 Replies
View Related
Jul 28, 2010
I have a desk job that I'm pretty much at my desk 90% of the time and was wondering if I have it hooked up to my PC through USB cable and have it fully charged all day, is that okay to do?Meaning I rather siphon off the power from the PC instead of the battery which might conserve it in the long run from not cycling as much. I use to do that with my Iphone 3g and my battery was still good after using it for almost 2 years.I wasn't sure how the power management was handled on the Captivate meaning is it sucking power from the battery and it's constantly recharging or if it sees that it's connected via USB, it powers the phone from the PC or outlet.
View 5 Replies
View Related
Jul 16, 2010
This will be my first major smartphone purchase. I wanted to know if hot weather could ruin the phone in terms of overheating and what not.
I like to play a lot of sports outside so would there be an issue with the hot sun beating on this bad boy.
View 4 Replies
View Related
Jun 21, 2010
So my phone has this weird pattern of resetting about 2 minutes away from my house when I'm driving (happened in two opposite directions). It was just sitting in my pocket and I hear it reset (sometimes it reset multiple times on the same trip). I thought it was maybe the task killer running funny so I disabled it, and still it resets. Happens every time. I'm using Fresh 0.3 but it happened in earlier versions of Fresh too. Anyone else having this issue? Maybe it has to do with switching towers or something (in my house I get a very very very weak signal).
View 5 Replies
View Related
Nov 17, 2009
I downloaded 2 "Home" applications for HTC Hero - dxTop and one more called "Home" (not sure what it is called on the market, but this is what my phone has registered it as).I wanted to uninstall both and dxTop went away fine. But this "Home" application does not show up on My Downloads or the application list under ES File Explorer. I can see it under Settings->Manage Applications, but I don't have an uninstall button. I have cleared the cache and stuff, but to no effect. I cannot even "Force Close" under Manage Applications.This app does not show up on Taskiller either. But I know its there, as every time I press the Home button, it asks me which Home I would like to go to.Its annoying. Is there a way to uninstall it?
View 11 Replies
View Related
Oct 6, 2010
I want to go to homePage of my application on clicking button where i was in inner page. Can any one tell me how to do that?
View 3 Replies
View Related
Aug 2, 2010
I recently picked up my EVO, and am loving it. Does anyone know if there are negative effects to leaving the phone on the charger? At work, I'm primarily in my office, and could leave the phone on the charger during the day and then it would always be full when I leave in the afternoon.
View 18 Replies
View Related
Oct 27, 2010
I am trying to override the home button in my application. I am aware that this is not recommended behaviour and all links I've found about this says that it is actually not possible. However, the native dialer of HTC Sense as well as the dialer for Sony Ericsson (tested on X10 mini) both ignore the home button press on incomming calls. How can I do the samein my app?
View 5 Replies
View Related
Dec 21, 2009
Is there an app to replace the "Car Home" program that automatically opens when the Motorola Droid is placed in the car dock? It is bad enough that this screen comes up everytime you dock the phone in the car, but it is even more annoying that the "home" button is hijacked so that anytime you press it from any other program it takes you back to the "Car Home" instead of the main home. I would love to have an App that would allow you to designate a different program to open when in the dock, such as Quick Dial.
View 1 Replies
View Related