Android :: GPS Icon Won't Disappear When Activity Destroyed / Fix It?
Sep 19, 2010
Being an Android newbie experimenting with GPS stuff I managed to put together this code and it works just like I expect it to except for one thing, the GPS icon never goes away. How can get the GPS icon to disappear when the activity is destroyed? I have code...
in my onPause() but apparently that's not enough?
The problem exists in the emulator and also on my HTC EVO with 2.2. On my EVO, the icon stays there when the activity is destroyed and only disappears when I uninstall the app. code...
View 1 Replies
Mar 27, 2010
I have an AsyncTask object which starts executing when the activity is created and does stuff in the background (downloads upto 100 images). Everything works fine but there is this peculiar behavior which i'm not able to understand.For eg: when the android screen's orientation changes then the activity is destroyed and created again. So I override the onRetainNonConfigurationInstance() method and save all the downloaded data executed in the AsyncTask. My purpose of doing this is to not have AsyncTask run each time activity is destroyed-created during orientation changes, but as i can see in my logs the previous AsynTask is still executing. (The data is saved correctly though)I even tried to cancel the AsynTask in the onDestroy() method of the activity but the logs still show AsynTask as running.This is really strange behavior and would really be thankful if someone can tell me the correct procedure to stop/cancel the AsynTask.
View 1 Replies
View Related
Sep 24, 2009
I press program's icon to start my program,and then open the Settings activity through startActivityForResult(intent, SETTINGS). Now i press the home key and start my program through program's icon, at this time the Settings actitity will run OnDestroy() and be destroyed. I can't understand why Settings activity is be destroyed automatically? How can I make Settings activity still focus when users come back. Code...
View 7 Replies
View Related
Apr 18, 2010
I have tried to freeze orientation: setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
But thought screen stays in portrait orientation, the activity is still recreated.
View 1 Replies
View Related
Jun 30, 2010
I want to do some cleanup in a view when the activity is being destroyed. Is there any way to get a callback in the View when the activity is being destroyed? I tried using onDetachedFromWindow, but I'm not sure whether it is correct thing to do.
View 1 Replies
View Related
Nov 19, 2010
I wrote an android program that: has a main activity for UI, and it starts a service. The service timely callbacks the UI activity to update views. It works fine except: if the activity is closed (with BACK) and start again, the service will also be started again (The service plays audio file, so there are two overlapped sounds). I use bindService with BIND_AUTO_CREATE flag to start and connect to service. According to the document, it should create service only if it doesn't exist, but obviously it starts another instance when opened second time. All I want is when the activity is closed, the service goes on running, and when the activity opens again, it can reconnect to the service. Is that possible? Or I just misunderstand the usage of service?
View 1 Replies
View Related
Mar 19, 2009
When another activity is started from main activity, The main activity get destroyed and created when returned back from second Activity main activity remains in pause state till second activity finish (), on Sart or on Resume from when returned back from second activity? which one these case does happen in And roid application?
View 3 Replies
View Related
Nov 9, 2010
I need to develop an application with downloads the data at the background and update about the progress in the front.
I guess this can be achieved using services and activity and passing data in between the. But, what I need to do is even if I hit back button and then start the activity again. It should check if the service is running or not. If service is not running it should start one else it should display the data from running service.
Something like music player where music is played by a service at a background and activity displays the information. Even on browsing through other activities of the application or hitting back, state of the music player is maintained.
View 1 Replies
View Related
Feb 6, 2014
whenever my phone dies and i connect it to the wall charger, it prompts me to choose a connection type, which is ridiculous cuz with the wall charger there is only one type (charge only). the usb icon appears in the top of the screen and won't disappear. how can i remove it? or how can i tell my phone that i've connected it to the wall charger and not to a computer?
View 3 Replies
View Related
Apr 1, 2012
I cannot figure out what the 1st icon in the notification area is for and it is using up serious battery usage.No new apps were downloaded, the phone was in a pocket and the icon appeared and I cannot figure this out.
View 4 Replies
View Related
Sep 2, 2010
I've got an HTC Magic on Rogers that I rooted and flashed to CM5 stable about a month ago. Everything runs great, except occasionally (sometimes once a day, sometimes more) the radio seems to go into la-la land. The 3G icon will disappear, but I still show bars.... however there is no connectivity. Once it falls into this state it seems to kill the battery quite quickly. The only way to wake it back up is to reboot the phone or to toggle airplane mode on then back off. When CM6 stable came out a few days ago, I thought I would give that a shot and see if it made any difference... unfortunately it didn't (runs great otherwise though!). I'm currently using radio version 3.22.26.17... is there perhaps another version I can try?
I just got looking thru my Network settings and I had 3 APN's listed (Rogers 1, Rogers 2 and Rogers MMS I think). With Rogers 1 selected, it would register and I would get the 3G icon. With Rogers 2, it wouldn't... so I've deleted the Rogers 2 entry.
View 6 Replies
View Related
Sep 20, 2010
When I exit out of an app the screen is blank for 30 seconds or so before my widgets and icons reappear. I had it back in November 2009 and I still have it after 2.0.1 and 2.1 and 2.2 and the other 2.2. I see a million threads here and on other forums asking about it. Just checking in to see if there was ever a solution discovered. Like all of you, I can always bring them back with a hard or soft reset.
I'm just wondering if anyone has found a way to prevent it from happening in the first place. I assume that it's related to available memory or processor or something, so every once in a while I think "I'm going to streamline this thing and give it all kinds of available memory" and it doesn't work. I kill all widgets and go to vanilla wallpaper and it still happens. Anyone figure this thing out?
View 12 Replies
View Related
Dec 7, 2009
I was wondering if anyone has had the notification icon for weather from Beautiful Widgets disappear? I love the look and animations of the Beautiful Widgets with GDE and I also have the White Hero Theme - looks great. But now there is no Icon for beautiful widgets in the notification bar, even after I switched the setting numerous times.
View 4 Replies
View Related
Oct 18, 2010
I'm implementing my own sync adapter and everything works great. A strange i'm having is that after the sync is over, the Android still shows the sync icon (the one with the rounded arrow) in the account activity, and that someone (i guess its the account manager) repeatedly calls the sync again and again, every 30 to 60 seconds. Now i tried all sort of things to test this issue and i have discovered something strange. In my code, i do resolver.applyBatch every 50 new rows. (each new contact i sync has about 5 rows). If i remove the applyBatch (which means i retrieve the data from the next, sort it and prepare it, but never "commit" it) - the problem goes away. The icon disappear and the account manager never calls it again on its own (I'm using Android 2.1). I must also state that no exception is being thrown in any of the cases and that all the methods finish gracefully.
View 2 Replies
View Related
Nov 5, 2009
I have been doing searches for this on Google but I am obviously using the wrong words to look for it. How does one go about showing the icon that spins in the upper right hand corner of the screen while something else is going on? I was trying to call it a "Spinner" but that is not exactly what it's called in Android and then I tried "Busy Icon" and nothing useful pops up. I tried a few other things but for some reason I am drawing a blank as to what the real term for it is.
View 5 Replies
View Related
Jul 14, 2010
I'm currently running into an issue that makes sense but I'm not too sure how to resolve it... Here is the scenario: App v1 icon LAUNCH is set to Activity Main from the manifest file. App v2 icon LAUNCH is set to Activity All from the manifest file and Activity Main no longer exists. After updating to App v2 the app icon fails to launch the application saying it doesn't exist! After a restart of the phone things work. So how can I refresh the applications package or better the launch icon and shortcut icons so that my users don't experience this after an upgrade of my newest app version?
View 3 Replies
View Related
Nov 11, 2009
I'm trying to remove activity icon from launcher panel. I'm using firmware 1.5. But nothing seems to work. I'm not receiving any error but activity icon is not removed.
View 7 Replies
View Related
Feb 27, 2009
i have attached a pic which shows an activity with a blue color pic and some text as the title in the activitty....The same kind of UI is needed for my application which is applied to all the activities (about 6-8 activities) as the title... Kindly suggest how to start off as i need to give a nice jazz-up for my application...
View 5 Replies
View Related
Jul 24, 2009
I've noticed some strange behaviour with resuming a task from a Home icon.Very easy to replicate, just create a new bare bones android project using eclipse, don't need to add anything. Then follow these steps:
1. In eclipse, Run the project on a emulator or device.
2. Once the app installs and launches the first activity, press Home key.
3. Launch the app again by pressing its icon.
4. Press Back key. Now this part seems wrong, you'll go back to the original activity in the stack, instead of the Home screen, even though its been previously launched and what you expect is it to bring back the stack as it was left, with one activity. If you repeat steps 2-3, it will just keep adding the same activity to the stack.
That is until you press Back all the way through the stack to the Home screen.Now this behaviour will never again replicate. It will be the correct (?) behaviour of bringing back the stack history at the state it was when Home was pressed. Note there are no behavioural modifications, this is just a default application. However, I tried many combinations of launchModes and stack clearing, they had no effect on the first run. Unless I'm interpreting the documentation wrong, when the user presses the Home key, the task is moved in to the background and simply brought back the next time they press the app icon? Why is the app icon altering the task it creates, if it already exists (with no flag modifications)?
View 3 Replies
View Related
Oct 7, 2009
I would like to have icon created on home screen through an activity . All the icons of my activities are on main menu, once i click it my activity will be launched instead i need an icon on home screen which when clicked activity should be launched.
View 4 Replies
View Related
Aug 22, 2010
When the app starts up it shows the activity label property in the title bar. If you set a different title for the activity in onCreate that will show up later. You see the launcher activity title for a while and then the programmatic title replaces it, which is not very nice visually. The icon on the home screen uses the label for the activity. What I'm trying to do is get a label for the icon on the home screen that is different from the activity title bar. I tried setting the intent- filter label, but that didn't appear under the home screen icon. There is a label property for the application, the activity, and the intent-filter. The activity label is shown for the icon and the title and the other label properties are not shown.
View 4 Replies
View Related
Mar 20, 2010
I am relatively new to the Android world and am having some difficultly understanding how the whole screen orientation cycle works. I understand that when the orientation changes from portrait to landscape or vice versa the activity is destroyed and then re-created. Thus all the code in the onCreate function will run again. So here's my situation: I have an app that I am working on where it logs into a website, retrieves data, and displays it to the user. While this is all done in background threads, the code that starts these threads is in the onCreate function. Now, the problem lies in that whenever the user changes the screen orientation, the app will log in, retrieve the data, and display it to the user again. What I would like to do is set a boolean that tells the app if it is logged in or not so it knows whether or not it must log in when the onCreate function is called. So long as the app is in memory the HttpClient will exist and contain the cookies from logging the user in but when the app is killed by the system those will go away. So I would assume that I need to do something like setting the logged in boolean to false when the app is killed but since onDestroy is called when the screen is rotated how is this possible? I also looked into the finalize function and isFinishing() but those seem to not be working.
Shorter version: How can I distinguish between when an app is being killed from memory from when an activity is being rotated and different code for each event?
View 2 Replies
View Related
Jun 17, 2010
I have Two activities One splash screen, Player screen. When user clicks on my app icon first splash screen is displayed and then player screen When player activity is running, if user returns to the home screen and then again clicks on app icon, the application is starting from the splash screen again.can any one please help me out how to do any one of below
1) I need to close current running activity and reload application.or
2) I need to resume to the player screen directly.Please give me an example or reference to follow, Im beginner in android programing.
View 3 Replies
View Related
Feb 28, 2010
My app has 2 activities - A and B. From homescreen I launch A, from A I launch B. The activity stack looks like this: A-B. Now I press HOME button, and from homescreen click again on my app icon, which launches A and adds it on top of the activity stack, which now looks like this: A-B-A. But I just want to bring my application to foreground, is that possible in Android?
View 2 Replies
View Related
Sep 22, 2010
I installed BakedSnack rom, and now my Amun Ra recovery tool won't boot. Stuck at the loading screen. Any guide to flash just amun ra onto the phone, and then I can just do a nandroid restore?
View 5 Replies
View Related
Jun 23, 2013
I was flashing the RUU on my HTC Thunderbolt and the phone powered down in the middle of the update process. Now the phone will not boot, I cannot get into recovery/bootloader, and my PC doesn't recognize the device now.
View 12 Replies
View Related
Aug 5, 2010
Well as the title says froyo has destroyed my battery life , i have 2 batterys and have tryed factory wipe , neither of my batterys since upgrade will last longer then 8 / 9 hours before i was getting 36 hours gutted wish i dident bother with upgrade ...... feel like my phones been ruined as 8 / 9 hours is just pathetic , i was curious if anyone else has experiance this ?
View 5 Replies
View Related
Sep 15, 2010
I am new to the android phone. The button settings on my home screen on my Epic have 5 icons. No matter which icon is 2nd to the left, it never opens. It gives me "could not launch the requested activity". Currently it is the "envelope" icon.
View 2 Replies
View Related
Sep 11, 2010
So I dropped my vibrant (with rubber SGP Silk case) about 4 feet from the ground and the screen is completely destroyed. There is no external damage, but functionality is completely gone. I got my vibrant about a month ago.
View 19 Replies
View Related
Jun 8, 2010
I'm having some difficulty with drawing a line on a map. I'm basically drawing it etc. but when I select other tab and then come back to the "map tab" the line disappears. How can I prevent that so the line stays there all the time? Please can someone help me to solve this?
View 1 Replies
View Related