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
Apr 3, 2009
I want to display a table which would fit better in portrait view than in the landscape view. How do i instruct the emulator to change the orientation?
View 4 Replies
View Related
Sep 4, 2010
This is getting called in on Create(), how can I speed up orientation switching? private void setupChartView(int position){
Quote my Quote = quotes Adapter.get Item(position);
this.symbol = my Quote.get Symbol();
String url = "http://chart.finance.yahoo.com/z?s=" + symbol + "&t=1d&q=l&l=on&z=l&p=s&a=v&p=s&Lang=en-US®ion=US";
if(chartImageView != null)
imageDownloader.download(url, chartImageView);
if(chartImageViewLandscape != null)
imageDownloader.download(url, chartImageViewLandscape);}
View 1 Replies
View Related
Nov 6, 2010
I have an application that works fine with smaller images (say 1024x768 or so) but when you rotate the phone into a different orientation (say landscape to portrait) mode with a larger image on the screen, and then call ImageView.setImageUri() it goes into the BitmapFactory.class and never returns.So the app eventually times out. Never throws an exception, just never returns. Has anyone else seen this? Sounds like a bug in the Android code more than something I am doing since it works fine for smaller images.
View 3 Replies
View Related
Jan 24, 2010
I have a 3 nested ViewFlippers which seem to be working ok except that when I change the screen orientation the view flip back to the first one of my views, giving the user the impression it went back a few steps.I am a bit stumped as to what to do and was hoping someone had some experience with this.
View 3 Replies
View Related
Jun 21, 2010
I'm looking for a widget that switches mobile network on and off. but i cant use the htc widget because m using launcherpro.
View 2 Replies
View Related
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
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
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
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
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
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
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.
View 1 Replies
View Related
Apr 15, 2009
I've got a problem with meebo IM. When I start it its icon appears in the top left on the notification bar, which is ok. But when I'm done chatting, how do I close it? back doesn't work, home doesn't work. I even downloaded the terminal but couldn't kill it with that either. Is that a bug in meebo or is android just like that (no closing of apps)?
View 4 Replies
View Related
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
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
May 25, 2010
Is there a widget for switching HTC Sense "scenes"? Or a "shortcut"? Seems like that would be a simple one to implement. My idea would be a 1x1 shortcut I could put on my home screen to switch to my "work" scene. Then in the work scene I would put one to take me back to my "home" scene.
View 4 Replies
View Related
Jun 19, 2010
Any application that switches the phone to silent and back again without having to press the on/off button please?
View 2 Replies
View Related
May 26, 2010
My app crashes when the device orientation changes..Tried debugging on real device, but I have no clue where the crash exactly happens.. I would appreciate if someone could throw some light on this:
Below is the error log...
View 2 Replies
View Related
Nov 2, 2010
When I change orientation application restarts and I lost my current data.. I am using activity group which contain lots of activities when i change orientation application restarts from main activity. is it possible to avoid this application restart on orientation change?
View 4 Replies
View Related
Jun 28, 2010
I would like to restrict my application which uses Tabs to portrait orientation. I have 4 tabs and I set the "android:configChanges="orientation" for all 4 tabs but the orientation still changes when I rotate the phone. Seem pretty straight forward. Am I missing something?
View 1 Replies
View Related
Mar 13, 2014
is there a way to programmatically configure orientation in android application at runtime ?
(I want to allow portrait in phones and portrait/landscape in tablets)
View 1 Replies
View Related
Jan 15, 2010
I am having search application, which loads data retreived from the webservice.While application on create it shows progress dialog once its done with loading data it dismiss the progress dialog.problem is while loading if i change the orientation of the phone it works fine it try to load activity again, but if i start shaking the cellphone while it is loading data application get crashed, any solution?
View 1 Replies
View Related
Feb 7, 2012
I'm just wondering if there is currently an app out there that allows certain applications to use the rotation sensor on our phones, but not other applications.
For instance i like to text message in landscape mode sometimes but when i go to my home screen and tilt my phone at all, the home screen will go to landscape which i don't like because it takes a long time to switch back and forth between portrait and landscape and seems to be overly sensitive to the axis of my phone.
Does this application exist? If not, how hard would it be to create?
View 5 Replies
View Related
May 1, 2010
I have a (hopefully) a relatively simple question. How do I tell Android which layout to use for portrait and which layout to use for landscape orientation on my App Widget?
View 1 Replies
View Related
Sep 11, 2009
is there a way to make application to completely ignore screen orientation change?
View 4 Replies
View Related
Nov 3, 2009
Switching off Wi-Fi via an application (in this case WiFi On/Off or Power Manager) turns the phone into Airplane Mode = No Cellular Voice or Data. Cure..turn off Airplane Mode under settings and cycle power on phone.
View 9 Replies
View Related
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
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
Sep 2, 2010
I have two layouts: layout-port and layout-land. If I run the app with emulator or device, either vertically or horizontally, the app runs fine with the correct layouts. However, if I rotate either the emulator or device, the app exits. There's no crashing, perse', it just exits. I have other app's with similarly defined layouts that work fine without any orientation handling in the manifest. I'm not concerned about persisting data.
The main differences between the one's that work and this one are (this one has):
* Menus with sub-menus
* Dialog screens (not the android dialog widget)
* Tab widget
All of the above items work in their respective layouts (port and land), the app just exits when rotating the emulator or device and I need to restart the app.
View 2 Replies
View Related