Android :: Button Draws Normal State After Pressing
Mar 30, 2010
I'm new to Android and just starting the very basics. I implement my custom button skin using .9.png images for norma/focus/pressed states. It works fine, but I noticed that after a pressed the focussed button it visually "lost" focus and draws the normal state frame. I planned to use different state images to highloght what button is selected right now, but it seems that it would not work. I noticed also that the same happens with the default LAF button. Is it OK, or it's just emulator issue? What the good workaroud can be used?
View 2 Replies
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
Mar 11, 2010
I use my phone as an audio player while outside with a bluetooth headset. I have the phone in my pocket. However,it seems very easy for the side buttons to be pressed, even when the phone is locked. What do you all do for this? I have tried a couple things and did find a "solution", but it's not one that I like, and would appreciate hearing thoughts from others.
View 4 Replies
View Related
Oct 9, 2010
I have a pattern unlock on my Samsung Galaxy S 19000. If I want to lock my screen manually I simply press the power button briefly which works fine. I now use a skin on my phone which doesn't allow for easy access to this power button so I'm wondering if there's an app that I can use to lock my phone screen without having to press the power button. I have looked at "lock 2.0", however, it seems to be more for actually unlocking the screen.
View 4 Replies
View Related
Mar 30, 2010
I want to be able to show the elapsed time in a textview or Chronometer held in a "Statistics" class since pressing a button located in another class. What would be the easiest way to implement this?
View 3 Replies
View Related
Mar 19, 2010
I created and binded a service in an activity and I would like to know how I can avoiding the android application to stop when I press the back button. When the back button is pressed the onDestroy method is called and I unbinded the service in this method. I try to prevent it by taking care of the back button event and manually call for onStop() method but it always called onDestroy after, why?
View 1 Replies
View Related
Oct 18, 2010
Has anyone seen a a onItemSelected not being called when using a spinner inside a listviewActivity. I have the code below Inside a listViewActivity. The spinner is shown on screen by pressing a button (not the spinner) which in turn calls performClick() on the spinner. When I select an item from the spinner the onItemSelected function is not called. Does anyone know why this might be? Code...
View 5 Replies
View Related
Feb 27, 2012
I'm building a comic strip styled application and I'm trying to make "previous page" and "next page" buttons.
Right now, I have an image that spans 500 x 200 (not really, but it works). Over top of that image, I have two buttons equal to 50% of each side. When you click the left button, I want it to change the image to whatever-x. When you click the right button, I want it to change the image to whatever-y.
View 3 Replies
View Related
Nov 14, 2010
I'm working on an android app and I'm stuck. Here's the scenario that I have: The user picks a contact to call The user presses the dialer button to call that contact Android's native dial screen pops up i.e. Dialing Contact screen Here's what I want to do: after pressing the dialer button, is there any way for my app to control what pops up after pressing the dialer button?
View 1 Replies
View Related
Jul 15, 2010
When i leave my app after pressing home button and then re launch it from menus it behaves in a strange way.Sometimes it launches the same activity on which i pressed home button.But sometimes it launches the first activity of my app. One reason for this could be that whenever system has memory shortage it clears any activities existing in But the strange thing is if i press back button from first activity it takes me back to the same activity on which i pressed home button and all other previous activities are also there(like if i press back button again previous activities also exist.)I haven't set any launching mode for any activity in my app(like single instance etc).What i don't need is that previous activities load on pressing back button on first activity.
View 2 Replies
View Related
Apr 29, 2010
I want to be able to wake the phone by pressing the trackpad button. (like the iPhone's home button, just converted ) I've looked around and can't seem to find a way to set this. I tried the "lockbot" app someone had recommended but it did more then i wanted and still didn't seem to enable that button to wake the phone. Any ideas?
View 49 Replies
View Related
Aug 4, 2010
I just got the vibrant about a week ago, and so far no major issues. Still fumbling around in the apps market for the good stuff. One thing I found annoying was having to press the power/unlock button and then swiping the screen to unlock the phone every time, is there anything in the market or some setting to avoid pressing the button and just swiping the screen or possibly using the touch buttons on the front of the phone then swiping?
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
Jul 30, 2010
Is there any way to make it so when i press and hold the power button and choose either silent or vibrant only that it will also mute media? I am hoping for the ability to change something through adb shell or something because I use the power button method all the time I just really want it to mute/unmute the media volume too.
View 3 Replies
View Related
Nov 7, 2009
When I'm talking, my hair tends to press the mute button on the home screen and the other person cannot hear me. I've searched but can't find a way to make this stop. An app, a better phone-holding technique--I'll try just about anything. Also, for some reason I had a glitch the other day... I made a phone call, got my friend's voicemail, and then was unable to hang up the call. I ended up leaving a rather long, embarrassing voicemail message until I just went in and force stopped the dialer app, but at least my friend has a good sense of humor.
View 9 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 27, 2010
I notice on my eris that when i am on a menu with a black background that if i hit my back (bottom button) a little firmly, right above the button on the lcd kind of changes colors. Like if you press your laptop screen, its only a little bit though. If you could, please try this and report back.
View 10 Replies
View Related
May 20, 2010
Does anyone know of any way to get the Incredible to wake up by pressing the optical trac-pad on the front instead of the power button up top?
I find the power button to be annoying and wish both would "wake-up" the screen.
View 2 Replies
View Related
Feb 23, 2013
i focus my eyes on /sys/class/leds/button-backlight/, however, i can just turn off the backlight.
i found that the trigger in it can do complex work, so i tested it, and found some codes below
Code:
[none] rfkill0 mmc0 mmc1 mmc2 timer heartbeat sleep rfkill1 rfkill2 max8903a-usb-online max8903a-ac-online battery-charging-or-full battery-charging battery-full battery-charging-blink-full-solid
however, i haven't found the one i want.
View 3 Replies
View Related
Mar 26, 2014
Anyways, whenever i'm listening to music, and I press the play/pause button on my headset to control my music tracks, my phone turns on. This get's really annoying because every time my phone turns on, it stays on for a few seconds, and this really kills battery life. I've tried lurking around my phone's settings and even my launcher settings.
My phone is a rooted HTC Wildfire S running AOKP custom rom with Nova Launcher Prime. And if it makes any difference, I'm using the "Start" lock screen from the Play Store.
View 6 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
Aug 8, 2010
When you're in the browser long pressing on the back button takes you straight to the history page, very useful.
View 1 Replies
View Related
May 16, 2010
Received my 2.1 OTA at 1:36 AM last night and ever since, I can't manually lock my phone by short pressing the power button anymore. I thought maybe this was a Spare Parts issue, since I had changed the Power Button behavior on 1.5 using Spare Parts (when I pressed Power from any screen, it would return me Home; pressing from Home would Lock). So, I uninstalled Spare Parts, but this didn't remedy my problem. Any advice?
View 3 Replies
View Related
Sep 11, 2013
i am looking for a way to directly switch off my android 4.1 htc desire 600 dual sim phone by long pressing the power button presently, when i long press the power button, a dialog appears with the choices of Reboot, Airplane mode, Power off
i read somewhere that *#*#7594*#*# will disable this dialog box and directly switch off the phone but this is not happening
if you know any way or if there is such an app to do this
my phone is not rooted
View 4 Replies
View Related
Sep 10, 2010
I created button with some shadow using a style:
<style name="test">
<item name="android:shadowColor">#FFFFFF</item>
<item name="android:shadowRadius">1</item>
<item name="android:shadowDx">1</item>
<item name="android:shadowDy">1</item>
</style>
This applies a white shadow on the button's text in its normal state. I was just wondering if anyone knows if there is a way to remove this shadow when the button is a pressed state. In other words, is there a way to apply another style when the button is in another (pressed) state?
View 2 Replies
View Related
Aug 22, 2010
I am trying to get the button in my layout to have focus as I am programmatically changing its state. My application is a video player using VideoView. I am toggling the state of the button based on where my video is. So basically, I am doing videoview.getCurrentPosition() and if it is in a certain window, I want to toggle my Button state (enabled to disabled and vice versa). The layout is LinearLayout and I have the VideoView and Button layed horizontally. When I first had the MediaController in my Video, the button would change focus on touching the videoview (which is when the MediaController would pop up). I later removed the controller because I didn't want the button state to change when the user touches the screen. I want it to change automatically.
I tried all sorts of combinations possible. button.setFocusable(), button.requestFocus(), button.bringToFront() and so on. But none of them seem to work.
Is there any way I can make it toggle programatically and without user intervention through touch? or is it impossible to do it with the VideoView?
View 9 Replies
View Related
Aug 20, 2010
I am trying to toggle button state programatically. I want to go between setEnabled(False) and setEnabled(True) for a given duration. I have a timer and I want to toggle between these states at regular time intervals.
I see that the button toggles correctly the first time, for e.g. from True state to False state, but doesn't go back to True state again unless I touch the button, which is kinda weird.
View 2 Replies
View Related
Feb 10, 2010
I have an image button as defined below.
CODE:...................
I want to set the default state of the button to be selected. So in code I would say:
CODE:.....
Is it possible to do this in xml?
View 2 Replies
View Related
Mar 29, 2010
I was wondering if it is possible to use a similar approach to change the style attribute of an element using the same (or similar) technique.Or, if that is not possible, how can the style attribute be changed during runtime (there is no such thing as button.setStyle(R.style.button)).
View 2 Replies
View Related
Mar 15, 2010
My question is about restoring complex activity related data when coming back to the activity using the "back" button". Activity A has a ListView which is connected to Array Adapter serving as its data source - this happens in on Create(). By default, if I move to activity B and press "back" to get back to activity A, does my list stay intact with all the data or do I just get visual "copy" of the screen but the data is lost? What can I do when more than activities are involved? Let's say activity A starts activity B which starts activity C and then I press "back" twice to get to A. How do I ensure the integrity of the A's data when it gets back to the foreground? Prefs Manager does not seem to handle complex object very intuitively.
View 2 Replies
View Related