Android :: Why Do Phone Buttons Stay Pressed?

Mar 21, 2010

In my activity I respond to an onClick() by replacing the current view with a new one (setContentView()). For some reason when I do this and then go back to the original view later the button I originally pressed still looks like it is pressed. If you 'refresh' it somehow (e.g. scroll over it with the trackball) then it reverts to the unpressed state. It's as if the button doesn't get the 'touch-up' event. The weird thing is: This only happens on my T-Mobile Pulse (android 1.5). It doesn't happen on the emulator. I've tried calling invalidate()/postInvalidate() on the view when I show it but it doesn't have any effect.

Android :: Why do Phone buttons stay pressed?


Android :: Multiple Buttons For List / From Which View It Was Pressed?

Aug 21, 2009

I am writing a program where I need a ListView for which I am using a ListActivity. Each one of the views within the ListView has four buttons, (Off, Dim, Bright and On). Each one of these buttons is configured with it's own OnClickListener when I build the view. This part seems to work ok. However when I have say 5 Views each which has these four buttons, I can tell whether an off, dim, bright or on button was pressed but I cannot tell from which view it was pressed. So for example if my views are devices (Light, Heater and Kettle) I press an "on" button and I know an On button was pressed but how do I get it to tell me the On button for the Light was pressed?

View 5 Replies View Related

Buttons Only Work After First Button Is Pressed?

Feb 13, 2012

I have an xml page with 3 buttons on all leading to similar xml files. However, the second and third buttons only respond if the first has been pressed (and then you go back a page and press another). If I reverse the order of the buttons in the java file, which ever button is listed first is the one that has to be used befor the others.

Here is my java for the buttons:

package converter.units.kitchen;
import android.app.Activity;
import android.content.Intent;

[Code]....

the rest of the app has no errors and functions correctly.

View 2 Replies View Related

Sprint HTC Hero :: Changing Color Of Pressed Buttons And Highlights

Jul 29, 2010

now that we have a beautiful custom battery icon (thanks again Kelmar!) I would like to try to do some more customizations. My Hero is SO close to what I like now, only need one more change to make it perfect. I'd like to figure out how to change all of the green highlighting to blue on the Hero. (Like on the ZenRom) Things like: when you press a button (say the call button, as an example) or icon or widget, and things like the progress bar in the browser... also things like the unread mail indicator, and the rating stars in the market...etc. Kelmar and I have been reading on XDA, and have tried many things, and we are getting nowhere. Everything seems to lead to a very long tedious process. It would seem to us that some of this might be able to be easily changed in one file, to make the change throughout the rom, but we could be wrong. We wonder if anyone here could help out with how to do this.

View 31 Replies View Related

HTC EVO 4G :: How To Turn Off Soft Buttons Stay Lit During Video?

Jun 7, 2010

Why is this? Seems counter-intuitive to me. Quite distracting. Anybody know how to turn them off?

View 5 Replies View Related

Samsung Vibrant :: How To Get Captive Buttons To Stay On?

Jul 15, 2010

They go off a little too soon for me, and since im new to android they are important for me to be able to track down. Just picked up my vision this afternoon to replace my ip4, so far so good altho I already miss the better dpi, browsing is a much fuzzier experence.

View 4 Replies View Related

HTC Incredible :: Hardwired Buttons Do Not Always Light Up / Make Them Always Stay On?

Aug 7, 2010

Why is it that thee buttons at the bottom of the phone sometimes light up and sometimes doesnt?
Is there a way to make them always stay on when the phone is on?

View 9 Replies View Related

Motorola Droid :: Way To Turn Off Bottom Buttons Stay On During Video Playback?

Dec 9, 2009

Any way to turn them off?, is kind of annoying when watching a video.

View 2 Replies View Related

Android :: Stop Following Activity If Home Key Or Pressed Back Pressed

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

Android :: How To Determine Which Button Pressed On Phone?

Aug 5, 2010

I need to know, how to recognize, which button is pressed. Like if i have two buttons ,say button 1 and button2,and both of them performing the same method, say method(),how to determine which button pressed?

View 3 Replies View Related

Android :: Way To To Increase Button's Size When Pressed In Phone?

Sep 23, 2010

How can I make my button's size to increase slightly when it is pressed and decrease again when it is released? This is for highlighting the pressed button, by using size in addition to a different color.

View 2 Replies View Related

Android :: Phone Starting New Activity When Screen Off Button Pressed

Aug 13, 2010

We are experiencing this strange problem. If I press screen off button When my activity is running, its again starting a new activity. If I press the screen off button again and unlock the phone, it again starts a new activity. So in total there are 2 new activities getting created for one screen off and on.

View 5 Replies View Related

Android :: Prevent Phone Screen From Turning On When Volume - Camera Key Pressed?

Jun 5, 2010

I have an activity that shows up when the phone screen goes to sleep/turns off ie turns black.
For some reason, the phone turns on when the volume buttons or the camera buttons are pressed. By turns on, I mean the screen wakes up or comes back from the black screen state.

I've tried using dispatchKeyEvent(KeyEvent event) and the buttons are disabled on the activity, but they still wake up the phone.

View 1 Replies View Related

HTC Hero :: Phone Back Creaking When It Pressed / Fix It?

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

Android :: Forcing Button To Stay At Bottom Of Phone Screen

Nov 24, 2010

I have a layout that has a button I would like to always be on the bottom of the scree of my phone. The problem is android:layout_gravity="bottom" only puts it at the below the rest of the layout, rather than the very bottom of the screen.Is there a way around this?

View 1 Replies View Related

HTC Hero :: Phone WILL NOT Stay On Ev

Jul 26, 2010

I posted a legit problem I was having with my hero and my post was DELETED!anyway..My hero WILL NOT stay on Ev.it always switches to 1x and really causes some major issues with apps, browsing,etc.No matter where I am... the Ev just won't stay consistent.Has anyone else had this problem? If so... is there a fix?I'm about ready to get an Iphone!

View 1 Replies View Related

General :: Phone Won't Stay On?

Oct 2, 2011

im on DC 12 and my phone went completely dead, and now its connected to the charger and it wont stay on for more than 10 seconds.

View 2 Replies View Related

Motorola Droid :: Phone Not Stay Turned Off

Nov 9, 2009

I charge my phone right next to the bed. This silly thing won't turn off. I hit power then select power off and 10 seconds later the phone turns back on!

View 5 Replies View Related

HTC Desire :: Screen Stay Black Sometimes But Phone Still On

Jun 8, 2010

Several times now my Desire's screen has just stayed black when pressing the power key to unlock it. It's like it's in a deep sleep with no way to wake it. If you call it the screen will not light up but the phone will either ring with no way of answering it or just flash the missed call light. The call can still be silenced or rejected with the buttons.

So my question is this a hardware or software issue? I'm inclined to think software because pulling the battery then rebooting solves it, until it happens again, sometimes the same day others a few days later. I always switch the phone off at night to give it a fresh start each day. I do not use any task killers or obscure apps. Phone has minimal virgin mobile UK branding on it, and running firmware 1.15.405.4 with no option to update to the newly released version.

View 21 Replies View Related

Samsung Fascinate :: Phone Will Not Stay Lit During A Call

Oct 25, 2010

this is especially annoying when making calls that require number inputs such as voicemail. I'll try to type in my password or account number and the screen will go black. I hit the power button and I can maybe enter two numbers before it goes black again. I just got this phone and am pretty certain this wasnt an issue originally. All of a sudden this sprang up out of nowhere and I have no idea how to fix it. I did some searching and read something about the proximity sensor?

View 9 Replies View Related

General :: Why Won't Phone Boot And Stay Booted

Mar 5, 2012

I have a six month old Epic 4G, rooted, CWM recovery,. I used Root Uninstaller to remove three of the annoying preloaded apps that I never use. Otherwise, my phone is stock. I'm still on the 2nd to last Gingerbread update, as the one that arrived in late Jan won't apply to my rooted phone. I doubt my problem is specific to the device, though, which is why I'm posting here. I have a 32GB SD connected to the phone.

The problem: I have a very irritating "warm reboot:"

1) After booting, the phone is sometimes (not always) extremely laggy. When I use a system monitor to see what is taking the CPU, it appears to be "System" that is taking all the CPU. If the phone is not obviously laggy when starting up, this problem does not occur.
2) The flash card scans always say they complete. It never reboots before these complete.
3) Although the flash scans have completed, it takes quite a while for all of my app icons to load, suggesting it is still going through the SD card.
4) Within a few minutes after booting, the screen goes black and the four soft keys light up. If the screen is already off when this happens, the screen first turns on briefly, and then goes black!
5) About five to fifteen seconds later, the GUI restarts and it starts scanning the flash.

What else I notice:

* The "uptime" reported is not reset, which tells me there was no actual "reboot."

* Once I can get it to boot without doing this, it's stable for days.

* Using the phone right after it boots seems to increase the chance of this happening, but it's hard to say.

* In the past, if I disabled WiFi and 4G and then went into airplane mode, this would greatly reduce the chance of this happening, but now my phone has been constantly warm rebooting even in airplane mode. The phone appears to be getting less stable with time.

* This does not appear to be correlated with phone temperature. The phone can be cool to the touch or warm to the touch and this will happen.

* I've tried wiping all the various caches before. Makes no difference.

Questions:

1) Is this a known issue that is not present in a 3rd party ROM?

2) Does moving a lot of apps to SD cause this? With only 1/2 GB of built-in app memory, I have no choice but to move almost everything to the SD.

3) Does having a LOT of files on the SD card cause this? I have many nandroid backups on the SD.

4) Is there a real name for this "reboot" that I can Google for? When I search for "reboot loop" or "warm reboot" I get unrelated failures. I saw one thread where someone mentioned a "sense reboot" but that seems to be an HTC thing?

5) If I clear off the SD card, or somehow signal that most directories are not to be scanned, will this make a difference?

6) How can I figure out what is going on, why the phone is restarting the UI? Does Android have a boot-up problem of being at 100% CPU for a few minutes that automatically causes a UI reset? As I said, once the phone boots without doing this warm boot, it will be stable for days.

View 3 Replies View Related

Android :: Placing Buttons - Place Four Buttons Near Top - Left - Bottom - Right Edge Of The Screen

Jul 29, 2009

I am not able to find out the perfect layout(viewgroup) to place four buttons as shown in the attached image. Basically, i want to place four buttons near the top/left/bottom/right edge of the screen. AbsoluteLayout helped, but it is deprecated (It is also better to avoid AbsoluteLayout as it is not very flexible for orientation changes)

View 2 Replies View Related

HTC Incredible :: Phone Stay On At Full Brightness When Plugged In?

May 27, 2010

This is not a perfect solution but it does give a work around to the fact that, even though you can set the phone to not have the screen shut off when plugged in, you still have the problem of it dimming to lowest setting. Anyway, what I did to fix this was to download a program on the app store called keep screen. It gives you the option to make it so that the screen doesn't time out or dim for certain apps. What I did was just go in and select all apps and tell it to not dim on any of them.

Then on the front page of this app there is a button to "start/stop service" I use this button like a toggle. If my phone is plugged in I toggle that button and toggle it off when I unplug. It is not a perfect solution and requires manually doing the toggling but it's the best solution I have found to keep the screen and brightness up when my phone is plugged in. Anyway, just thought I would share in case anyone else was looking for a solution for this. Also, if anyone has found a better way of doing this i would love to hear it.

View 3 Replies View Related

Sprint HTC Hero :: Phone Won't Stay On After 2.1 Update / Get It To Work?

Jun 4, 2010

Ok, my phone worked perfectly before I installed 2.1. I did a hard reset before I installed 2.1. It ran fine for about 20 minutes while I played with all the new features (I really like 2.1 when its working) but literally about every 20 minutes when I check my phone, the damn thing is OFF. Its really pissing me off. So I turn it back on, and within 20 minutes its off again. Im about to smash this damn thing. I've reinstalled 2.1 twice, hard reset, soft reset, and every combination of the 3. WTF is the problem!?

View 4 Replies View Related

Motorola Droid X :: Will Root Stay On Phone Or Should Unroot Before Official Ota?

Aug 23, 2010

i have root on my device an am running 2.1, if i wait for the official ota of froyo 2.2 will root stay on my phone or should i unroot it before the official ota?

View 8 Replies View Related

Motorola Droid X :: Deleted Text Message Stay On Phone

Aug 20, 2010

Go into your phone contacts and pick a contact you have texted. On the open field below the contact, slide to the right and you will see a list of every text message you have sent and received from that person even if you deleted the messages!

Delete contact and re-enter the contact.

Supposedly to be fixed with an update?

Un-frickenbelievable!

Some of the crap and goofy stuff I tell my friends, I don't want on the phone.

View 2 Replies View Related

Sony Ericsson Xperia X10 :: Will Phone Still Stay Sim Unlocked After Debranding?

Oct 29, 2010

I'm thinking of debranding my vodafone branded x10i. I brought my x10 second hand. It was originally vodafone, But it looks like the previous owner had it Sim unlocked. Which m now using o2 Sim in it. What i would like to know is that, if i debrand it. Will the phone wont re-lock?

View 5 Replies View Related

Motorola Droid :: Email Delete From Phone But Stay In Gmail Account

May 17, 2010

Is there a way to delete email from the droid but have it stay in my gmail account? I want it to be how the blackberry is set up were it gives you the option to delete out of both phone and gmail account or delete from phone and stay in gmail account.

View 3 Replies View Related

HTC Incredible :: Phone Won't Stay Connected To 2011 Hyundai Sonata Bluetooth

Oct 12, 2010

My incredible pairs nicely with 2011 hyundai sonata bluetooth system and will connect but after one phone call, it disconnects from system and wont reconnect. I clear system on both phone and car but still does the same thing. unpaired and start from scratch but still does the same thing.

View 4 Replies View Related

Motorola Droid 2 :: My Phone Cut Off For Like A Couple Weeks / Stay It In Contact With People - Anything?

Nov 24, 2010

Is there any way i can stay in contact with people or anything?
i can still GET phone calls just cant make them.

View 12 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved