Android :: After Orientation Change Buttons On Widget Not Responding

Aug 17, 2010

I have two buttons on a widget that change some items in a widget, if an orientation is changed on a phone, buttons do nothing. I read http://developer.android.com/guide/topics/resources/runtime-changes.html but this is all about activity not widget.

Android :: After orientation change buttons on widget not responding


Android :: Change Widget Dimensions On Orientation Change

Jul 22, 2010

I have a widget which has say, a dimension of 294*72(portrait). But when the orientation is changed, I need to change this dimension of the widget to another dimension which would look good on the landscape orientation.

View 4 Replies View Related

Android :: Handle Orientation Change For A Cupcake Widget?

Jun 19, 2009

Maybe I'm missing something obvious, but how do you handle orientation changes for a Cupcake desktop widget?When it is initially created, the onUpdate method of my AppWidgetProvider calls views.setOnClickPendingIntent(buttonID, pendingIntent) to register for my button events, but when the orientation changes, new buttons are created and I don't have an opportunity to re-register the "onClick" listeners. What is the proper way to do this?

View 6 Replies View Related

Android :: How To Detect Orientation Change In Home Screen Widget?

Mar 15, 2010

I am writing a home screen widget and want to update (modify) the home screen widget when the device orientation changes from portrait to landscape or the other way. How can I make it? Currently, I tried to register to CONFIGURATION_CHANGED action like the code below ...

View 3 Replies View Related

Android :: Orientation Change - Dialog Above Activity With Fixed Orientation

May 14, 2009

I have created an activity for my game which handles all orientation changes by itself and has a fixed "portrait" layout. Actually it uses the accelerometer and is rendered using 2D canvas methods. If the level has been completed I show up a highscore dialog in which the user can enter his name. The dialog is floating above the underlying level screen which gets blurred out nicely. This generally works.

Problem is that the dialog does not get rotated if the orientation of the phone changes. So even if the keyboard is exposed the dialog is shown in portrait mode instead of landscape. I have tried to use an activity with dialog theme instead but the behavior didn't change. After several tries it seems that I have found the reason for this: Once there's an activity with fixed orientation in the activity stack then all subsequent activities keep this orientation, too. They will not react on orientation changes anymore (e.g. if the keyboard gets exposed).

After upgrading to 1.5 SDK the described behavior changed a little bit. Now at subactivities indead react on orientation changes like expected. However, the need to have an opaque background! That means that neither dialogs nor activities with dialog theme will work. Those will stick with the orientation of the underlaying activity. So my workaround is to first start a sub-activity with an opaque black background. This activity then shows my highscore dialog on top. It looks quite okay but I wonder if there's a better solution? Is it possible to show a dialog above a fixed portrait or landscape activity which automatically adapts to orientation changes?

View 3 Replies View Related

HTC Incredible :: Screen Black - None Of The Buttons Seem To Be Responding

Jun 5, 2010

ok so so about an hour ago i was playing with my phone and everything worked. I set it down and then go take a shower and i hear it chime so i get out and towel off and go to the kitchen where i left it and tried turning the screen on to see who it is....nothing

the screen is black and the none of the buttons seem to be responding, the only thing working is a blinking orange led light. so im thinking the battery is dead and i can just put it in the charger i do that and the blinking stays for about 30 seconds and then stops and i tried turning it on again and its still black. Normally i can just turn the phone on when its charging but this time no.

View 2 Replies View Related

General :: Hardware Buttons Aren't Responding?

Sep 6, 2013

So I was trying to edit the buttons on my Tmo Galaxy S3 (with AOKP Milestone 2) and accidentally broke all of them. They don't respond at all now.

I went into system/usr/keylayout. I copied the files to my sd card. Then I edited them (I also kept a backup of the old files). When I was finished I went back to the system/user/keylayout section and pasted the new files. As soon as I exited the file browser my phone reset itself. When the phone came back on none of the keys worked.

So I deleted the files I put in, and replaced them with the old files that were there before (using pie controls to navigate). I reset my phone using the app Quick Boot because I heard you have to reboot your phone in order for the new software coding to take effect. But still none of the hardware keys work.

I don't understand. All of the original files are there now. I'm afraid to let my phone die or to even turn it off because I don't know if the power button will work anymore. To wake up my phone I have to plug it into the charger and then use pie controls to navigate. get the hardware keys back to the way they were?

View 2 Replies View Related

HTC EVO 4G :: When Go To Voicemail Screen To Listen To Msgs None Of Buttons Are Responding

Nov 2, 2010

I have the EVO and I am having trouble with the voicemail app., when I go to the voicemail screen to listen to msgs none of the buttons are responding...the speaker/trash/callback buttons do not respond.

View 3 Replies View Related

Sony Ericsson Xperia X10 :: Menu/home/back Buttons Not Responding

Sep 15, 2010

My girlfriend just got an x10 to match mine and for some reason every once and a while, the 3 buttons at the bottom completely stop working. At first I thought the phone froze but I could still use the on-screen keyboard and press whatever I wanted on screen but the 3 buttons wouldn't work oO This has NEVER happened with my phone.

After searching around a bit, I only found one solution which was "if you have a gel phone cover, take it off and see if it works." We tried that and it seems (so far, for an hour or so) that it's working fine. That doesn't make much sense to me as we have the same phone and the same cover - just a different colour. Anyone had this problem before? Should we be bringing the phone back or is there something I'm overlooking?

View 5 Replies View Related

Android :: Widget Provider Not Responding?

Aug 26, 2010

I've created a home screen widget by extending the App Widget Provider. It works fine on all phones tested so far except Motorola's Droid 2 from Verizon. It's running Android 2.2. What I noticed is when my widget is first place onto a home screen it works for about +/- 15 seconds. Then I see the widget receives the action com.Motorola.blur.home.ACTION_WIDGET_ADDED and the widget stops responding? The buttons on the widget still show pressed or selected states but the widget code itself is no longer called?

View 1 Replies View Related

Android :: Change Intent Bundle Data Before Activity Recreated After Orientation Change

Jul 30, 2009

I have a notification that starts my activity and passes a messages using the intent's putExtra() function. The message is then displayed to the user in the activity's onCreate function. When the application is restarted due to a orientation change, the message is shown again as it is still in the intent's bundled data.
How can I remove the extra data?

I tried the following:

Bundle bundle = getIntent().getExtras();
if (bundle.getBoolean("showMessage")) {
// ... show message that is in bundle.getString("message")
// remove message
bundle.remove("showMessage");
}

But the message will still be shown after the orientation changed, seems like the intent used is not the one I changed, but the original one. The only workaround I found is to save the showMessage additionally in onSaveInstanceState(). Is there another way? Or is this the way to go?

View 2 Replies View Related

Android :: Change Background After Orientation Change

Jun 8, 2010

I have an image set as my background and when it is vertical, the image looks fine. However, when the orentation is changed, the image get streched out. If there a way that I can change the image based on the orentation of the device?

View 4 Replies View Related

Android :: App Widget And Orientation Changes

Sep 1, 2009

I've built an app widget a fairly simple one that draws an image inside a frame. (If that sounds familiar, that's because it's very similar to the built-in one, but it's a start to something else.)The RemoteView consists of little more than a FrameView and an ImageView. I have a second FrameView that may display or not depending on some certain state awareness.The Image updates on an Alarm schedule rather than the built-in mechanism so the user can adjust this value after installation. The image is set on the RemoteView using a drawable ID from included resources in the package. They've been resized to approximately a quarter of the screen size, but might still be scaled a little by the ImageView.All of this has been working fine. There is one issue that I've been unable to diagnose even the root of the problem.

After an orientation change when the home screen redraws, the ImageView doesn't always draw. The rest of the RemoteView does draw just as it was set during the most recent Update.The mystery is that the ImageView does, in fact, draw if the Alarm is currently set. If it's not currently set, it doesn't draw. Nothing else seems to affect whether it draws or not. It doesn't matter if the widget process is running or not, either (killing it via DDMS and then rotating has the same effect).This occurs in the emulator as well as the G1. During a rotate, the widget gets no update event at all.I could set it to listen for configuration changed broadcasts, but since it works in one of the cases, I suspect something else is going on and that's just an unnecessary piece of duct tape.

View 12 Replies View Related

Android :: Application Widget And Switching Orientation

Oct 14, 2010

I have a samsung tablet.I have a test widget.When I change orientation the widget disappears, but is actually still there (I can long press to remove it).in my res directory,I have resdrawable resdrawable-hdpi resdrawable-ldpi resdrawable-mdpi reslayout reslayout-land reslayout-large-land With valid values in all of these areas, but the widget just will not appear when I go into landscape mode.

View 2 Replies View Related

Android :: Widget Different Portrait And Landscape Orientation

Jul 8, 2010

How did you support both landscape and portrait for appwidget? the layout of appwidget will never change when orientate the device from landscape to portrait. by the way, would you please tell me which device support both landscape and portrait for appwidget?

View 1 Replies View Related

Android :: Redrawing Widget When Changing Orientation

Apr 26, 2010

I have a widget set up and it displays properly in both portrait and landscape when added to each. But when I change orientation it has the problem "Problem Loading Widget". I delete this, re-add the widget, and it displays correctly. Thus, my widget can support both portrait and landscape but it doesn't survive an orientation switch. What am I missing? Do I need to redraw the widget when orientation is changed? Doesn't it do this automatically? Do I need to call onUpdate() somehow?

View 2 Replies View Related

Android :: Widget Not Working Properly When Changing Orientation

Jul 8, 2009

I have a widget , thats working just fine in a particular orientation, but the moment i change the orientation to landscape/portrait, the widget is not able to launch. I have one layout and one layout-land folder in res directory.The problem is that the widget created in landscape mode is not opening in portrait mode and vice-versa.

View 4 Replies View Related

Android :: How To Get A Widget To Recognize When Phones Orientation Has Changed

Apr 9, 2010

I want my widget to update when the phones orientation has changed. Before android 2.0 you could register your widget to get the intent on orientation change. Code...

View 1 Replies View Related

Android :: Change Orientation Of AlertDialog

Mar 25, 2009

I am building a AlertDialog in java code, so by default it is portrait but I want to show it in landscape orientation. How to do it in Java code?

View 2 Replies View Related

Android :: Screen Orientation Change

Oct 8, 2009

I notice when using the emulator that when the screen is flipped, I get a following logcat message:

INFO/WindowManager(589): onOrientationChanged, rotation changed to 1

How can I catch this in the code? I want to know whenever the orientation changes. I assume I have to set a listener, but I can't find an example anywhere.

View 6 Replies View Related

Android :: Dialogs On A Change Orientation

Mar 5, 2010

I'm doing an APP that shows some dialogs. Those dialogs are Alert dialogs, and when they are being showed if I change the orientation of the mobile I lost them...they are not being kept on the screen.

View 13 Replies View Related

Android :: Views - Orientation Change

Oct 1, 2009

Do Views know changes in orientation? In my case, I create popups from TextView and need to know when the orientation changes(porttrait<-- >landscape). I cannot depend on activity's onOrientationChange.

View 2 Replies View Related

Android :: Keep Screen On And Change Orientation

Feb 11, 2009

I am making an Android app which is currently coming along nicely - I've hit upon a couple of stumbling blocks.

1) How do I stop the screen from going dim/off and the phone locking while the application is running?

2) Can I force the phone to enter landscape mode on running my application?

View 2 Replies View Related

Android :: Possible Leak In Orientation Change

Jul 1, 2009

My app *sometimes* when orientation change, leaks Activities (getInstanceCount() increases from time to time) and i cannot figure out where references to my Activity or rather Context are kept - tried to use jhat but it couldn't help me much.

what is strange: it doesn't always happen on orientation change, so its even harder to fix.

btw when doing normal app life cycle - start, do something, exit - everything is ok - getInstanceCount() always returns 1.

View 5 Replies View Related

Android :: OnCreate And Orientation Change

Apr 28, 2010

I have an activity that checks stuffs online when it's created (is the GPS on and if not it asks if the user wants to turn it on).

The problem I'm having is that it is also doing it everytime I change the orientation of the screen.

I've read some comments on onConfigurationChanged() but is there a better way to be sure I'm checking the GPS only when the activity is first created?

View 4 Replies View Related

Android :: Widget Does Not Load Orientation Changes During Configuration / Submit A Bug Report?

Jul 12, 2009

I'd like to report a bug we just found while writing a widget.

Summary: There is a widget installed, that defines a configuration activity. If the user changes the orientation while they are in the configuration activity, and they finish that activity in a different orientation that they started, the widget does NOT appear in the home screen after the configuration is done.

How to reproduce: have a minimal widget, with a configuration activity that contains a button, which correctly updates the App Widget when it is clicked (as explained in http://developer.android.com/guide/topics/appwidgets/index.html#Confi...). Add a new instance of the widget, so the config screen shows up. Change the orientation once. Click on the button. Your widget does not appear in the home screen. (Ouch.)

If this has already been reported, or if there's a better way to submit a bug report.

View 4 Replies View Related

Android :: Dialog Is Leaked On Orientation Change

Jun 23, 2010

built a simple app that displays an alertDialog with two buttons.The problem is it's not getting dismissed when i change orientation. After change i get a leak warning on debugger and the dialog appears twice(pressing back hides the first dialog, only a second back dismisses it completely).

View 7 Replies View Related

Android :: Change Eclipse Layout Orientation

Nov 6, 2010

I want to know how to change the orientation of my layout inside of eclipse but when I click the "layout" button it still shows it as a vertical layout.

View 4 Replies View Related

Android :: How To Change Eclipse Layout Orientation?

Nov 6, 2010

I want to know how to change the orientation of my layout inside of eclipse.

View 1 Replies View Related

Android :: Orientation Change Crashes When Ids Not Unique

Mar 17, 2009

consider the simple layout:

CODE:..................

View 9 Replies View Related







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