Android :: Home Screen Widget Support Auto Rotation
Mar 9, 2010
I am working on a home screen widget. I hope this widget can support auto rotation. For example, if the phone is in portrait mode, I want this home screen widget to be 2 cell * 2 cell on the home screen; if the phone is in landscape mode, I want this home screen widget changes be 3 cell * 1 cell on the home screen.
I have a TextView in my home screen widget. Can I use the following selector as the background of the TextView so the TextView can be highlighted when clicked? I know I can do it in Activity, but I am not sure about home screen widget.code...
Since the 2.2 update my screen auto rotation is horrible. When I want it upright, it goes sideways. WHen I hold the phone sideways, it flips the other way. Apps that I open seem to always start out sideways even when the phone is upright. I turn it around, nothing happens. If it does rotate back, it is so delayed you think it is not working. It never seems to be the direction I want it, getting very frustrating and annoying to keep flipping the damn phone around all the time to try to get it right. I sure hope the new FRG22 update, if it ever comes, can fix this problem. So far, 2.2, besides flash, has been a big disappointment for me.
I have an android application that I want to always be running in landscape mode.
I have the following code implemented to keep the app in landscape mode all the time:
inside my activity in the Application Manifest android:screenOrientation="landscape"
This seems to launch and keep the application in landscape view for the whole duration of the application. Perfect!
However, if I have the app running on my HTC Aria (Android 2.1) and the phone locks, if I unlock the phone, I see the application for probably half a second and it's in portrait orientation and then quickly switches back to landscape mode. It is quite frustrating because all of my views are jumbled around and it looks unprofessional as you can imagine. This happens in both the emulator and on my real phone.
Does anyone know how to stop the application from temporarily rotating when the phone is unlocked?
I have tried overriding onConfigurationChanged() but with no success.
I have also tried putting setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); into the onResume() but the app still shows as the incorrect orientation for a split second when the phone is unlocked.
I've got a Samsung Galaxy III and have problems trying to view images in my gallery using the auto-rotate screen option and rather then having to manuallly press the rotate screen "icon" which does gets annoying. I just want to tilt my phone so the images can automatically change to portrait or landscape on its own depending what angle the phone tilts. I've ensure the auto-rotate screen is checked from Settings under Display and even tried unchecking it and checking it again as well as switching my phone on/off.
NOTE: That the auto-rotate screen option does work fine for me with everything else like watching videos, texting, internet browsing, music and even viewing the overall images in the gallery but when going in and viewing the pictures individually from either the Gallery or the Camera. All I've got is a rotate screen "icon" to press on manually each time I'd like the picture to be portrait and if I want landscape I have to press on the screen rotate icon again. I noticed the auto-rotate screen option doesn't work on my Home Screen and Lock Screen as well but that isn't the main issue.
I've been reading around and tried pulling out my battery on "Odin" mode, wait 30sec-1min then turn my phone on again and that didn't work. I've also did the same procedure and ensure I unchecked the auto-rotate screen option and checked it again after I turned on the phone. I tried the Gyroscope Caliberation option and calibrated it and that didn't work either. My sister has the same phone as me with the same version installed but she doesn't have this problem and I'm wondering if it's something to do with how my phone software's set up?
Does anyone know of a ROM that is Sense based and also includes a Home Screen Rotation ability?I know that LP can do this, but I value the Sense widgets more than resorting to LP.unless every single Sense widget could be replaced for under $15 total.
I am designing a home screen widget. I ran this widget on a HTC Hero device, which has a screen of 320 pixels * 480 pixels with mdpi. It ran perfect on HTC Hero. The widget takes 3 cells * 2 cells space, i.e. 240 pixels * 200 pixels.Then I ran this widget on a Nexus One device, which has a screen of 480 pixels * 800 pixels, mdpi. Since Nexus One also is mdpi, so I though 240dip is equivalent to 240 pixels on Nexus One and 200dip is equivalent to 200 pixels on Nexus One, so the widget will not take 3 cells * 2 cells space on Nexus One device. To my surprise, when running on Nexus One device, the widget take exact 3 cells * 2 cells, about 360 pixels * 300 pixels, on Nexus One device.I am confused. The layout xml above specifies 240dip in width and 200dip in height for the widget, but why did it take 360 pixels * 300 pixels on Nexus One Device? What am I missing?
This is more of an annoyance, but whenever I reply to a message off the home screen widget, it automatically defaults to the home number for that contact, instead of replying to the same (cell) number that it was sent from. If I go into the messaging app, it works as it should (replies to the same number).
From Android widget screen guidelines,we know that, home screen has 4*4 cells, and in portrait orientation, each cell is 80 pixels wide by 100 pixels tall. I think these are for baseline HVGA screen. How about for large screens and hdpi screens, do they still have 4*4 cells for widget and each cell in portrait orientation is still 80 pixels * 100 pixels?
I want my phone to have the capability of rotating the home screen for landscape use in my car mount. But I do not want to go to another home screen replacement app, I want to keep Sense UI.Does anyone know of a ROM that will allow for this?
I'm the proud owner of the HTC Magic on Vodafone UK. I'm loving the Android.I have to say that after 5 days of owning this device I'm only left scratching my head on one point the auto-orientation of the home screen.I've seen videos of rooted G1's running the hacked 1.5 firmware and the recently posted video of the Samsung i7500 with the 1.5 firmware all CLEARLY show that when the device is on home screen, the desktop (read home screen) auto-rotates depending on the orientation of the device. The Samsung video shows it working in ALL FOUR orientations!This doesn't happen on my Magic . Flip the orientation in an application? Works fine. Flip it back in an application? Works fine. Do it on the home screen?Am I missing something? Is this a feature that is disabled in the offical 1.5 Cupcake release? If that's the case - fine with me. I'll stop scratching my head and move on.
I have somehow stopped my desire auto rotating to landscape on all screens and I have no idea how to resolve this. I have changed the view on the browser to always be in landscape just to sort out the problem however none of the other apps such as email and photos will rotate... If anyone can tell me where the setting is to restore this i would be very grateful. I have tried google and the user guide but just cant find it.
it is possible to code an app so that it does not rotate if/when the user rotates their device. I have built an app that is designed for portrait view only. When it is flips to landscape, it gets distorted. I have apps on my android that do not rotate when I try to rotate my device.
I am using Eclipse to make my app. I'm hoping it is something that I need to add to the manifest.
Im just curious if anyone else has the same thing. when my droids all closed up and i rotate it to landscape with the keyboard closed and its on the homescreen .. it wont switch to landscape unless i open the keyboard OR i open an app. are they all like this?
Just got my hands on the SGS and I am really liking it... there is, however, one question... does anyone here experience issues with auto-rotation? For me - sometimes it works - sometimes it doesn't - and I find myself shaking the device to make it work (again - sometimes)... how does this sit with you? Does it ring a bell, or do I have a bad device?
Just curious about Android OS Auto-Rotation system, and how it matches up to competitors. Before anything I am NOT complaining, just a thought.
So everyone has seen how the Auto-Rotation is on iPhone, Palm Pre' and Android handsets, and I was curious... shouldnt Android phones be able to do this task just as smooth as iPhone and Palm Pre'? Bringing this to my thought was the app "Floating Image". The Auto-Rotation on the app is amazing, and that just shows me, and makes me wonder, why cant all the other apps have the AR as smooth as this? (Even the keyboard). The slow delaying fade away is kind of a drawback (to an extent) know that Im 100% Android is capable of doing over and beyond that.
This morning I installed update 184.108.40.206 and since then I've noticed a fault with the auto-rotation feature. For things such as internet, SMS inbox, email inbox etc. the screen view is stuck on landscape and will not auto-rotate back to portrait when I tilt the phone
Also I tried playing Teeter and the ball doesn't move no matter how much I tilt the phone. I've tried resetting the G-Sensor Calibration but it doesn't resolve the fault.
I've had my Hero (G2 T-Mobile UK) for about ten days and feel I made a great choice. However, I noticed today that the auto rotation functionality has stopped. I've checked it is selected in settings and have callibrated too but it no longer works. Also, from the standard music player I cannot get back to the album cover-flo display, only list views and current track etc. The original view of the installed album art you can flick through has gone - or at least I can't find my way back to it. I updated to latest firmware before using the phone and can only think that one of the apps I've loaded has messed up these features? The apps I got were all recommended ones from another thread somewhere so shouldn't be buggy but I did grab about six, one after the other which maybe the problem? The day after installing them I switched the phone on next day and got some kind of reboot screen?? Maybe the phone needs a soft/hard reset but will this wipe it and how do I do it - or should I delete my apps? Hope someone can help cos I love the phone and don't really want to do without these features.
Im still looking for a widget to put my Incredible to sleep without pushing the power button. I am using No lock for the ability to use the touchpad to turn on but I hate using the power button to turn it off and leaving the screen on, even for 30 seconds, has to be draining the battery. (I am constantly on/off/on/off the phone throughout the day.)
I would like something I can put on the home screen that when touched, puts the phone to sleep. This will help save my power button in the long run as well. Ive searched and cant find anything.
What's everybody using for an RSS app? I'm using NetaShare. I really like it, but it's lacking a home screen widget - I sorta wrote about it as part of my top 5 favorites, but I'm wondering if there might be something better that allows you to download and store RSS content on your phone and has a home screen widget.
HI took a look at the home screen widget design recently and I tried to deploy a simple widget with 4x1 portrait background provided in Widget.I tried it in HVGA emulator (screen size 320x480 or something) and on Nexus One (screen size 480x800) and the widget seems to be the same size with respect to other UI elements (search widget etc) on both devices. How is that possible when one screen is 320px wide and the other one is 480px? Is the graphics in png format being automatically resized somehow based on screen width? If so, is it better to create the home screen widget graphics to make it perfectly fit to HVGA screen with 320px or is it better to create the graphics to fit the largest screen width possible so it would shrink itself on smaller screens (based on assumption shrinking an image is always better than magnifying it)?