Android :: Why Droid ListView Clears When Hard BACK Key Is Pressed
Apr 16, 2010
In my android app I have a Tabhost with a ListView as one of the tabs. By clicking on an item in the ListView (an address) I start an Intent to Google Maps for directions and the choice dialog pops up for google maps, web browser etc. Problem is if I press the hard back button then the launch dialog goes away but also the ListView is cleared. Any idea why?
View 1 Replies
Jul 8, 2010
I have a problem and that is my SplashScreen I have. It is built as an intro and after 3 seconds it shows the main menu of the program. Anyway, if I press down Back or Home button during the time the SplashScreen shows, it closes, but the activity I have chosen to follow after the SplashScreen will still run after the three seconds.
My code: **UPDATED CODE**
Handler ur = new Handler();
myRun = new Runnable() {
public void run() {
mainIntent = new Intent(SplashScreen.this,MyApp.class);
SplashScreen.this.startActivity(mainIntent);
SplashScreen.this.finish();..........................
View 1 Replies
View Related
Jul 28, 2010
Is there anyway to intercept that a hard key was pressed by using a service in order to launch an activity?
In other words : Is it possible to handle the KeyEvents in the Service?
View 1 Replies
View Related
Sep 20, 2010
I have noticed while working in the emulator that whenever i get out of my app via any method other than pressing the back button, my toggle button (if pressed) will have its state saved and return to that state when i return to the app. im guessing its because its value gets saved in a bundle and reloaded when i return. when i leave the app via the back button, this does not happen and the toggle is always off when i return. is there any way to get the value of the toggle back if the user leaves via the back button, without having to save the value in a db table? alternatively, if my apps notification is in the status bar, i can be confident that the toggle should always be selected, so if there is no way to save the state, is there a way to find out if my apps notification is currently being displayed? then it would be easy to just set the toggle each time via a quick check of the status bar.
View 1 Replies
View Related
Sep 1, 2009
I have a EditText filed in my Activity class, Where I need to retain data, when orientation is changed or "HOME" button is pressed or "BACK(FINISH)" is pressed. Android internally maintaining EditText when orientation is changed or HOME button is pressed. But it is not maintaining EditText status when BACK button is pressed. How can I make it happen to retain data in all three cases (orientation is changed, HOME is pressed, Back is pressed) in a feasible way?
View 9 Replies
View Related
Mar 17, 2010
I have an activity that contains several user editable items (an EditText field, RatingBar, etc). I'd like to prompt the user if the back/home button is pressed and changes have been made that have not yet been saved. After reading through the android documentation, it seems like this piece of code should go in the onPause method. I've tried putting an AlertDialog in the onPause however the dialog gets shown and then immediately tears down because nothing is there to block the pause from completing.
View 1 Replies
View Related
Nov 4, 2010
This is what I'm trying to support. Can this be done?
a) User is an Activity A in my app. b) The user is taken to the native dialer when he chooses a particular action in my Activity c) User presses the back key d) Taken to homescreen
Is there a way I can change it, so the back key press returns him to my app, instead of native homescreen?
View 14 Replies
View Related
Jan 14, 2010
I wanted to share that with you, because I'm sure I'm not the only one who has this problem. The trouble was that the back of my HTC Hero (white version) was creaking when it was pressed. That applies mostly to the area around the volume rocker. Obviously, the back cover is made from flexible plastic and it is not making very good contact with the phone itself - i.e. there is a slight distance between the back cover and the device. So what I did is to put some tape (regular transparent tape) on the back near the volume rocker opening at the hollow (which is supposed to be a space for the battery but it's leaving way too much empty space) and everything worked like a charm. I played with my phone for a week purposely seeking for the creaking sound but the method surprisingly gave very good results .
If you know a better way to fix the problem.
View 1 Replies
View Related
Jul 29, 2010
After a successful web view is loaded, now after some processing on the HTML page, I would like to return the control to the main screen. Is this possible in Android?
The control after the webview is launched, is in the browser, so after I make some ajax calls and then get a positive server side message. I would like the control goback to my Webview Activity.
View 2 Replies
View Related
May 29, 2012
I've noticed lately that contacts that I view or edit on my Droid Bionic start appearing as uncategorized in my Outlook 2010 account. It is becoming annoying having to re-categorize every contact that I view or edit on my phone.
It seems that interacting with these contacts removes their categories from the Outlook side of things. Any information on why this might be and how to stop it from happening?
My Outlook 365 account is synced to my phone via Corporate Sync. I just checked my Contact settings and it is storing new contacts in my corporate sync account, if this matters.
View 1 Replies
View Related
Aug 3, 2010
It seems a lot of us are having issues after upping to 2.2. Someone suggested hard reset. My question is simple, will hard reset "restore" EVO back to factory settings, AKA 2.1? I mean when you bought the phone, 2.1 is "baked" in the internal memory. When you update to 2.2, will 2.2 also be "baked" in internal memory so that whenever you hard reset you will always go to 2.2 status? I think it is, but please clarify?
View 5 Replies
View Related
Jul 7, 2010
I did not register my googlemail account on my Hero when I initially set it up but want to do so now. I get the old 'sim card may not be provisioned for data services' error message and have read up that I will have to do a hard reset.
This will wipe out my texts so I want to know is there a way to back them up? I am aware there are utilities in the android marketplace for this purpose but as I cannot sign in to my googlemail account via my phone, I cannot make use of them.
View 4 Replies
View Related
May 14, 2010
So I need to hard reset my phone don't want to lose anything. And are the settings saved or no.
View 7 Replies
View Related
Sep 29, 2010
Want to do a Hard Reset my rooted HTC Incredible, but I just realized looking through my apps that Superuser is an app. so after hard reset how do i get that app back. If I use a Titanium backup it should be in there right? I don't see it in my Titanium backup.
View 4 Replies
View Related
Nov 19, 2010
Been trying to get OpenVPN to work properly and have not had much luck.
Here are my specs.
HTC Incredible
Virtuous v3.1.0
2.6.32-Hydra-ssuv-v05
OpenVPN binary has been installed. I have also install busybox and then softlinked ifconfig and route to the commands the same way CM6 has it.
I was able to get OpenVPN to work properly within CM6 without much hassle. I have found battery life and experience better for me with Virtuous ROM so I went back to it.
When I launch the connection to establish the VPN session it connects but I am not able to work within the network. I was not able to communicate even with the VPN server.
I ran a netcfg and discovered that tap0 was down. I brought it up but its routing table was empty. I filled it in and was able to communicate with the VPN server and my advertised networks. If I drop my VPN connection, tap0 goes down and the routing table is cleared.
The VPN server works. It works with my other boxes and worked with this phone under CM6.
View 2 Replies
View Related
Jul 6, 2009
I have TabHost with custom ListView implemented. My ListView disappears after returning from SMS screen when I try to switch tab (refresh list content).
I have context menu option to send SMS to contact from the list, I start SMS activity there and Im able to return to my app. If I don't type anything in SMS screen, just return immediately everything is fine. List will work. If I type something in SMS and press back key, toast will be displayed: "Your message is saved in Drafts". And now if try to switch tabs, list content disappears.
Debugging revealed that list items are present, and that list adapter constructor is called. However, listAdapters GetView function is never called. And list results are not displayed.
I found similar problem in this post: http://groups.google.com/group/android-developers/browse_thread/threa...
Im working on sdk 1.5 and device.
Here is my list adapter function, pretty standard:
CODE:..................
my ListView widget has no special properties, just width and height to fit parent.
View 5 Replies
View Related
Apr 27, 2010
How can I maintain the position of my ListView in my activity when I go to another activity (by launching another intent) and then come back (press the back button)?
View 2 Replies
View Related
Nov 4, 2009
With the physical keyboard you can catch key presses with a KeyListener, something like. code...
Does anyone know how to do this (or similar) with the virtual keyboard?
View 3 Replies
View Related
Jun 26, 2010
I would like to change text and back ground color of my Listview without building custom rows. Is this possible ?
View 1 Replies
View Related
Jul 15, 2010
This is my first android device and i'm loving it... but one thing that irks me is the use, or lack thereof, of the back button.
As I am navigating menus and options in the Settings, I cannot simply go back one menu using the back key. For example, if I go to Settings->Battery Manager->Battery Profile Options and want to go back to the Settings screen, I cannot.
Pushing the back button does nothing and I can only go back to the Settings menu by going Home, then re-entering.
Another quirk regarding the back button is when reading emails. Using a regular email account such as Hotmail, I cannot simply read an email and go back to the inbox using the button.
It makes navigating the phone very tedious.
View 5 Replies
View Related
Feb 12, 2010
I did a halfa** search of jsut this fourm because I'm at work and it is the only one I can get to. I was wondering if any of the rooted Linix gurus around these parts knew of an easy set of commands I can type using ADB, or a quick patch that would return my phone to the home screen when end call is pressed. It is drivig me crazy. I know about the program NotCallLog, but before I install yet another program onto my baby.
View 5 Replies
View Related
Nov 2, 2009
Lots of people are complaining about the d-pad's existence and being on the right side instead of the left but what's not being discussed is how the d-pad functions. Is it simply a 4 way directional pad or does it also have a press functionality as the gold center would suggest? For instance, I could select various links on a web page and then press the dpad down to follow the link?
View 2 Replies
View Related
Nov 16, 2009
Has anyone else noticed a slight squeak when the right side of the screen is pressed downward? No doubt this is due to the sliding mechanism. Just wondering if anyone else noticed.
View 3 Replies
View Related
Jan 18, 2010
I recently purchase one off Ebay ( admittedly a cheap one), and of course, I am not satisfied.The exposed edges weren't even black. It's going back. Can anyone suggest a specific one that they have experience with, and where they purchased it?
View 2 Replies
View Related
Jun 25, 2010
Is the Droid X is constructed out of anodized aluminum or hard plastic? Hard to tell from pictures, and I haven't found any official data on this.I'm hoping for a nice aluminum build like the Nokia N8/Moto Devour/ Original Droid, but even if it is a hard plastic, at least it's a matte finish which is superior to the "finger print magnet" finish of its rival EVO 4G.
View 6 Replies
View Related
Nov 28, 2010
I want to hard reset my droid and just want to backup my call logs, contact list, and calender..
View 1 Replies
View Related
Dec 22, 2009
I come from the iPhone world, and I thought having a physical keyboard would be nicer. I don't know if it's because I got used to the iPhone, but so far I'm not thrilled with that keyboard, it's too easy to make mistakes and it's not comfortable.
One thing I noticed is that when you use the soft keyboard, it corrects you automatically and offers you suggestions as you type. How can I get the same features when using the hard physical keyboard?
View 10 Replies
View Related
Mar 31, 2010
Using Chevy 7 slot LV 1250. I have flashed my fair share of ROMS the past few days, but after a 3 time total wipe (consecutive) and a nandroid restore from a few days ago when it was very stable. My only suspects are a re-downloaded FB app and Dialer One. I am thinking of doing the 0.9 update.zip for good measure.
View 10 Replies
View Related
Apr 12, 2010
Is there a way to reprogram a hard button? I could do this on my HTC Tilt that ran WindowsMobile 6.1. I would like to be able to make the long press on the "call" button go to vlingo rather than voice dial and I can't find a way to do it in settings....
View 3 Replies
View Related
Jun 29, 2010
I have the Sedio case and I love it - but I need something I can throw the whole phone into for when I go mountain biking. I want to carry my droid to have a phone in case of emergency but I need to know that if I fall on my pack (and therefore the phone) I'm not going to shatter the screen.
View 3 Replies
View Related