Hi, Today I am going to teach how to reduce the black screen while app starting in ionic 3?
Below image is my problem I am facing while app starting.
Solution:
Android will load a blank layout before it loads based on the theme you have set for it. The solution is to the theme of the splash activity to a transparent one.
And change it to like this android:theme="android:style/Theme.Translucent.NoActionBar".
While developing the app in ionic, before the splash screen one black or blank screen appears for a second.Here I am having a solution to how to overcome this issues.
Solution:
Actually this, not an ionic framework issues. we want to change some style line in Android Manifest file we can overcome this issues.
Go to platform/android/AndroidMainfest.xml .
And search android:theme="android:style/Theme.DeviceDefault.NoActionBar".
How to reduce black screen while app starting in ionic 3?
Reviewed by Sudhan
on
November 08, 2017
Rating:
Hi,
ReplyDeleteToo bad it does not works for me.
When I build I get this error : /platforms/android/build/intermediates/manifests/full/debug/AndroidManifest.xml:76:28-71: AAPT: String types not allowed (at 'theme' with value 'android:style/Theme.Translucent.NoActionBar').
Any suggestion ?
Alex.
My error: AAPT: No resource found that matches the given name (at 'theme' with value '@android:style/Theme.Translucent.NoActionBar').
Deletecan you pls show your platform/android/AndroidMainfest.xml file.
ReplyDeleteFor ios any idea some black screen appear?
ReplyDeleteno
DeleteThanks! Saved my life!
ReplyDeleteSorry I needed to removed tags in order to posted AndroidMainfest.xml content.
ReplyDeleteMy error: AAPT: No resource found that matches the given name (at 'theme' with value '@android:style/Theme.Translucent.NoActionBar').
xml version='1.0' encoding='utf-8'
manifest android:hardwareAccelerated="true" android:versionCode="45" android:versionName="0.0.45" package="my.com.webbpages" xmlns:android="http://schemas.android.com/apk/res/android"
supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:resizeable="true" android:smallScreens="true" android:xlargeScreens="true"
uses-permission android:name="android.permission.INTERNET"
application android:hardwareAccelerated="true" android:icon="@mipmap/icon" android:label="@string/app_name" android:supportsRtl="true"
activity android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale" android:label="@string/activity_name" android:launchMode="singleTop" android:name="MainActivity" android:theme="@android:style/Theme.Translucent.NoActionBar" android:windowSoftInputMode="adjustResize"
intent-filter android:label="@string/launcher_name"
action android:name="android.intent.action.MAIN"
category android:name="android.intent.category.LAUNCHER"
intent-filter
activity
activity android:name="com.sarriaroman.PhotoViewer.PhotoActivity" android:theme="@android:style/Theme.Holo.NoActionBar.Fullscreen"
application
uses-sdk android:minSdkVersion="16" android:targetSdkVersion="26"
uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"
uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"
uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"
manifest