4

The well known issue of onStartup white screen appears with my app too (only since yesterday), but am unable to resolve with any suggestion as read in following threads:

  1. How to remove the white screen while my app loads?
  2. How to remove white screen while loading android application?
  3. Android - Prevent white screen at startup
  4. How To fix white screen on app Start up?
  5. Instant run in Android Studio 2.0 (how to turn off)

and few more.

Not just onStartup, there are also some intermittent white screen for 5-10 seconds in between. This is happening both with build and release build.

Following is the code I'm using:

styles.xml:

<style name="Theme.Transparent" parent="Theme.AppCompat.Light.NoActionBar">
    <item name="android:windowNoTitle">true</item>
    <item name="android:windowActionBar">false</item>
    <item name="android:windowFullscreen">true</item>
    <item name="android:windowContentOverlay">@null</item>
    <item name="android:windowIsTranslucent">true</item>
</style>

Manifest:

<application
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:supportsRtl="true"
    android:hardwareAccelerated="true"
    android:theme="@style/AppTheme">

    <activity
        android:name=".MainPlayer"
        android:configChanges="orientation|keyboardHidden|screenSize"
        android:theme="@style/Theme.Transparent"></activity>

    <activity
        android:name=".RegisterActivity"
        android:configChanges="orientation|keyboardHidden|screenSize"
        android:theme="@style/Theme.Transparent">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>

    <receiver
        android:name="com.blynq.app.services.BootReceiver"
        android:permission="android.permission.RECEIVE_BOOT_COMPLETED"
        android:theme="@style/AppTheme">
        <intent-filter>
            <action android:name="android.intent.action.SCREEN_ON" />
            <action android:name="android.intent.action.BOOT_COMPLETED" />
            <action android:name="android.intent.action.MY_PACKAGE_REPLACED" />
        </intent-filter>
    </receiver>

</application>

This issue was not there until yesterday. Have not update Android Studio too since yesterday. Currently I am using Android Studio 2.1.1.

In dire need for a solution, would be greatly thankful for help of any sort in this regard ?

Community
  • 1
  • 1
jay
  • 1,982
  • 2
  • 24
  • 54
  • Could be this issue which is easily solvable : http://stackoverflow.com/q/36575229/4252352 – Mark Jul 31 '16 at 10:01
  • Do you have any commits that you can roll back to and compare code differences against, or is this literally no codes changes, just acting differently? – Mark Jul 31 '16 at 18:36
  • I have added youtube fragments and that is all. Sadly, this time I did not use GIT :/ – jay Aug 01 '16 at 03:46
  • Did you work on real device or on a emulator? – xcesco Aug 01 '16 at 09:57
  • Same bug is appearing on both emulator and real device – jay Aug 01 '16 at 10:08
  • @jay I'd save the state of the project as it is now (so you always have this to go back to), then undo the changes you made before this started happening, clean/rebuild project, uninstall the apk, reinstall, see if the problem is solved - if so work incrementally forward, testing until the problem occurs - only way I can think that you can narrow the problem down. – Mark Aug 01 '16 at 11:03

0 Answers0