Currently I have a strange issue on Android Studio 4.1 with my emulators. When I'm trying to change the orientation to landscape the ui of the emulator is completely breaking... This is how it looks like:
Has anyone an idea why this is happening? I changed the emulator performance in the AVD settings to "Software" after that it does not happen but it is very slow.
Related
I am a newbie on Android programming, and I am using the latest version of Android Studio on a Mac.
For some reason, the emulator gives me an upside-down display when I rotate the device in the landscape. See the screenshot below:
Any ideas on how to fix that?
Thank you in advance!
All the best,
Fab.
I had the same problem, but running emulator in a separate window fixes it.
I am using the 2.3.3 version of Android Studio in Windows 10. In AVD every virtual device is able to run all verisons of android except Oreo. After starting the emulator with Android 8.0( API level 26) the ram usage of emulator stops around 400-410MB and then nothing happens, just a mobile screen with black screen even without a loading animation. How can I fix this problem?
Step 1- Made a new emulator(Any).
Step 2- then fixed another problem the black screen by changing the settings to use hardware graphics.(Dunno if this problem was related to the bug)
I've been programming in android studio for a little while now and recently it's been very messed up. It all started when I changed the theme for my app. The emulator stopped working and I tried uninstalling and reinstalling. Nothing worked and I ended up factory resetting my laptop. I reinstalled android studio and still have the same problem. I've reinstalled HAXM and I've also tried testing on my phone. I run the program and the emulator shows up and it shows the title bar with the name of my app, but no content, just a white screen.
Here is a link to the pastebin of the log.
Here is what the app looks like in the design view.
Just take out the picture of the duck and that's what it looks like in the emulator
This used to work perfectly before I changed the theme, but I reset my computer so i'm totally lost. I'm running on an HP Pavillion 15 laptop with a core i5 and 8 gigs ram with integrated graphics.
Any help is very much appreciated!
Thank you for your time
-Kelton
I set up the Android SDK in Eclipse on Linux and I am trying some AVDs. I have created a 2.3.3 (API 10) device and a 4.1 (API 16) device. Both use the default values provided in the dialog box for creation.
When I run the 2.3.3 AVD and press ctrl + F11 to change orientation, the orientation of the screen changes from portrait to landscape and the keyboard moves below the screen BUT all activities (mine as well as the standard apps) continue to be drawn in portrait mode. The configuration change does not seem to be registered and handled.
The 4.1 AVD works as expected: the screen orientation changes and the running Activities are terminated and redrawn in layout-land.
Is this a bug or a configuration issue that I can fix?
Yes it's a bug: Issue 13189: Orientation does not change from landscape to portrait on Emulator on 2.3 It's was fixed for AVD images post 2.3.3, but it seems the fix was never backported to 2.3.x
The work around is to add Keyboard support as a hardware property to Gingerbread AVDs, though as noted in the bug report, this isn't perfect.
I just tested an app developed for Android 2.2 on the 3.2 emulator. The app supports only portrait mode, thus in default landscape mode of the emulator it's rotated by 90° (as on Android 2.2).
If however I rotate the emulator to portrait mode, the screen is shown completely reversed by 180°. That means, what should be on top is on the bottom of the screen. It's not only the app, but also the Android status bar but, if I exit the app, the issue disappears.
I've tested the app on several Phones and emulators, this never happened with Android 2.2 or 2.3 it just happens with 3.0, 3.1 and 3.2. Can't test on a real Tablet device yet. Thanks.
remove this from your activity in manifest file
android:screenOrientation="portrait"