I have a question regarding the new splash screen migration with Android 12. I went through the migration, all phones that are not running Android 12 now have the default Droid as the splash screen popup. I am curious how can I either have my legacy splash screen or replace the droid image for the phones that are not running Android 12.
Here is the GitHub for the Xamarin.Android Splash Screen Migration
https://github.com/xamarin/xamarin-android/issues/6517
Also here is the link to the Android Migration
https://developer.android.com/guide/topics/ui/splash-screen/migrate
I can't find anything in the documentation about phones that are not running Android 12 and how to give the user something other than the Droid as a splash screen.
Related
In previous versions of Capacitor, the splash screen on Android was an image that was specified in splash.png. I have recently upgraded to Capacitor 4 and changed the target SDK version to 32. From what I have read, the Android 12 Splash screen API now uses your App Icon as a splash screen, and you may customize the background color, animations, etc.
Is there any way to use the old behavior, I.e. Show a custom image as a splash screen?
Please note I am not an android developer and have only used Ionic/Capacitor to create apps, thanks.
Update: I don't think this is currently possible. See:
Android 12 custom splash screen with background image
Android 12 Splash Screen API customization
Android added a way to deal with devices that have a notch/cutout at the top of the screen. (See Android and Xamarin.Android.) But as far as I can tell, Android automatically takes care of lowering the views so that they aren't obscured by the notch, so why do we need this new addition?
I tested my Android app on the emulator of a device with a notch and the app automatically goes below the notch without the need to specify layoutInDisplayCutoutMode as LAYOUT_IN_DISPLAY_CUTOUT_MODE_NEVER.
So my question is, when would I need to use LAYOUT_IN_DISPLAY_CUTOUT_MODE_NEVER?
In Xamarin that would be:
Window.Attributes.LayoutInDisplayCutoutMode = Android.Views.LayoutInDisplayCutoutMode.Never;
I'm running this on the Android Emulator through Visual Studio on a Windows computer. The emulator is emulating a Pixel 3 XL with Android Pie 9.0 (API 28). The app is an Android app created with Xamarin.Forms.
When you are creating a view, which uses full screen for showing content at that time notch display sometime hide/cut your top content.
To prevent this android provides support for this above android pie.
Refer to this document.
https://source.android.com/devices/tech/display/display-cutouts
Is there a utility / service / way to properly test Android apps since there are currently 18 active screen resolutions and 9 OS versions.
So far I can test on 1 device with 480x800 resolution and OS version 4.4.x
As a second device I want to get 1080x1920 resolution and OS version 4.2.x
Without having a proper device can I check compatibility with OS version 5.x.x and of course all other display resolutions?
With the Genymotion Emulator you can test your apps with a huge amount of versions and screen resolutions, phones, tablets...
I think if there existed such a thing for native android apps we all knew about it.
There exists such a thing, but not for native apps, it is for Xamarin developers(C#). More info here
All you can do(Android Studio) is that:
1.Choose one layout
2.Go to Design page of it
3.In the Left corner you have a button like this:
4.You can choose to:
-Preview All Screens Sizes
-Preview Android Versions
-others...
This is a static testing method but is better than nothing. Hope it helps!
I created a small app using following this tutorial.
App runs fine on Android but after running on 2 mobiles both running Android 4.1.2, I find that in one mobile the layout was broken. I mean button borders are broken.
Any suggestions on what is going wrong here ?
Using latest ionic framework and cordova.
This mostly happens because different mobile screen size.
You should create different layout files for different screen sizes
For more information go here:
http://developer.android.com/training/multiscreen/screensizes.html
I want to ask my application only for 4.0" and 4.3" screens mobile.
When I install it to 3.0" or 3.4" mobile my full screen does not appear.
Some buttons and labels went down and not seen.
And finally I want to learn how I do this application for all mobile?
Can I do this in code ? or in manifest file?
I want to ask my application only for 4.0" and 4.3" screens mobile.
Using http://developer.android.com/guide/practices/screens-distribution.html, you can limit your app to devices with specific screen sizes.
When I install it to 3.0" or 3.4" mobile my full screen does not appear. Some buttons and labels went down and not seen.
Strange! Are you using absolute pixel values in your layouts? If you are not, the layouts will scale on any phone. Only it will not look very good.
If you want to run application for 4.0 and 4.3. you need to install 4.3. then you can run 4.0 also. if you install 3.0 or 3.4 it will run 3.4 and below the version only. it won't work for hiegher versions otherthan 3.4.