jeudi 20 août 2015

Android wear: white screen above activity at start up + when resume



Hello,

I'm having a strange behaviour with my android wear app. My app structure is basically: a loading activity that starts another activity which contains 4 fragments and the user can slide between those fragments.

The strange behaviour happens randomly but with the same pattern: a white screen appears "above" my activity/fragment and I have to dismiss it (android wear style: swiping on the left) to access my activity/fragment. This happens either on first start up of the app or after I clicked on the physical button of the watch and resume the app by clicking back on its icon in the app's list of the wear.

What I tried already is the following:
  1. I put breakpoints on the onCreate of Activity and Fragment, but the debugger does not stop on it when this white screen appears. I concluded that this white screen is neither an activity nor a fragment.

  2. I also removed all the "pop up" elements such as Toast and so, which I first thought were the root cause of my problem.

  3. I also tried to follow the different advices of "how to remove white screen at start up" (such as putting in the manifest "@android:style/Theme.Translucent.NoTitleBar.Fullscreen", setting the "android:windowBackground" to another color and so) but it didn't resolve my problem.

  4. I also looked up for post on stack overflow (the closest I found is this one: Pressing home button on Android - white screen when resuming app) but I didn't find any solution yet.


My problem happens both on emulator and real wear device (I'm using a moto 360).

Has somebody else experienced the same problem? Anybody has an idea where I could look further?

Thank you a lot in advance for your help, I'm really stuck and don't know what else to do.

Best,

Jenny



Aucun commentaire:

Enregistrer un commentaire