Xamarin android app restarting on orientation change with newer android versions - android

Our Xamarin android app is restarting whenever the device orientation is changed. We have configured the main activity with the following:
[Activity(Theme = "#style/MainTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)]
This seems to work with older Android versions such us Android 9 but with Android 12/13 devices the app restarts on orientation changes.
Any ideas why this is not working on newer Android versions?

Related

android:supportsPictureInPicture: false not working on android 13 (cordova)

I used android:supportsPictureInPicture: false, to disable the floating window. It's working fine on all the version except Android 13.
Note: app created via cordova.

Minimal API level 8 vs mipmaps

I need to support old devices (API 8) because app has users with Android 2.2. But our launcher icon looks awfully on new tablets that uses mip-map icons in the launcher.
Can I use mip-map on old devices (I understand that they doesn't support mip-map but can they recognize resources in the mip-map folder like drawables)?
If they can't then how can I setup build variant to build old version with drawable launcher icon and mip-map?

Cordova 3.4 and bootstrap-select issues on Android 4.1

I'm using Bootstrap v3.1.1 and bootstrap-select.
When i set the value of the selectpicker programatically and use
$('.selectpicker').selectpicker('refresh');
it works in Android 4.4 or Chrome but not on Android 2.3 and 4.1.
Selectpicker shows always the same value and I can't change the option text programmatically too.
Have you tried with the newest version of Bootstrap (3.2)?

Android Emulator api level11

I just updated android from 2.3.3 api Level 10 to android 3.0 api Level 11. But I am getting these two problems. I have searched the internet but could not find anything helpful.
Here are my problems:
My emulator is in the portrait mode but my activities runs in landscape mode always.
The Application Launcher com.android.launcher has stopped unexpectedly.

How do I emulate a HoneyComb-compatible app on older emulators?

I began the process of making one of my apps Honeycomb-friendly.
I started by changing the project's target build to version 11, and edited to AndroidManifest.xml to use:
<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="11" />
These are the only changes I made so far. I am able to test it perfectly on my Honeycomb tablet device.
However, I cannot get Eclipse to launch this app in an older emulator (e.g. version 9). Technically speaking, the app should run in older android versions, so what can I do to test this app for older devices?
Or am I doing something else wrong?
I'm by no means an expert on this front but setting the minSdkVersion different from the targetSdkVersion doesn't make the app automatically use a different API level based on the device. See this:
Android Min SDK Version vs. Target SDK Version
and this:
http://android-developers.blogspot.com/2010/07/how-to-have-your-cupcake-and-eat-it-too.html
I suspect that because your application is using level 11 apis it won't run on a device that is of a previous API level.
This seems to be some sort of bug. When my 3.1 device is plugged into my PC, Eclipse/Android won't let me launch a new emulator that's < 3.0.
I worked around this by launching the emulator before I plug in my device, and then it has no problems deploying the app to both of the running devices.

Categories

Resources