Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Only fullscreen activities can request orientation?

Discussion in 'Editor & General Support' started by AsadMehmoodLogicon, Nov 23, 2017.

  1. AsadMehmoodLogicon

    AsadMehmoodLogicon

    Joined:
    Dec 29, 2016
    Posts:
    10
    I am making game and using asset "very simple ads"
    everything is working fine on all devices except on Android "Oreo"
    When Ever I request Android Interstitial ad it says this
    I tried each and every things that came to my mind but issue is still there

    Here is my manifest

    These Lines in manifest I used for Chartboost
    Please Help me with my issue it's so annoying
     
  2. Voxel-Busters

    Voxel-Busters

    Joined:
    Feb 25, 2015
    Posts:
    1,952
    Most likely you have built the app with android 27 SDK.
     
    AsadMehmoodLogicon likes this.
  3. AsadMehmoodLogicon

    AsadMehmoodLogicon

    Joined:
    Dec 29, 2016
    Posts:
    10
    Exactly that was the issue, I changed my target build to 23 and everything is perfect Thank you for replying
     
  4. Voxel-Busters

    Voxel-Busters

    Joined:
    Feb 25, 2015
    Posts:
    1,952
    No problem.

    The change was reverted by AOSP devs later. So it should be working fine from new updates.

    You can check more info in our forum page.

    Thanks,
    Ayyappa
     
  5. trirom1

    trirom1

    Joined:
    Jun 5, 2014
    Posts:
    14
    Hello all,

    I have same issue on Android virtual report Google Play Console with device Android 8.0, Could you help me to fix it.
    My target API 8.1(API level 27)
    Thank you
     
  6. dralv3s

    dralv3s

    Joined:
    Sep 23, 2018
    Posts:
    2
    Up this mofo, help us out here guys, I am having the same issue, crash before even start the first scene, so now google won't let us publish anything lower than api26, so changing to api 23 is no longer an option.

    It's painfull to see it, help.




    as in firebase test lab:

    Code (JavaScript):
    1.  
    2.  
    3. java.lang.RuntimeException: Unable to start activity ComponentInfo{com.dogrush.drdev/com.unity3d.player.UnityPlayerActivity}: java.lang.IllegalStateException: Only fullscreen opaque activities can request orientation
    4. FATAL EXCEPTION: main
    5. Process: com.dogrush.drdev, PID: 16349
    6. java.lang.RuntimeException: Unable to start activity ComponentInfo{com.dogrush.drdev/com.unity3d.player.UnityPlayerActivity}: java.lang.IllegalStateException: Only fullscreen opaque activities can request orientation
    7.    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2826)
    8.    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2904)
    9.    at android.app.ActivityThread.-wrap11(Unknown Source:0)
    10.    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1596)
    11.    at android.os.Handler.dispatchMessage(Handler.java:105)
    12.    at android.os.Looper.loop(Looper.java:164)
    13.    at android.app.ActivityThread.main(ActivityThread.java:6600)
    14.    at java.lang.reflect.Method.invoke(Native Method)
    15.    at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
    16.    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:772)
    17. Caused by: java.lang.IllegalStateException: Only fullscreen opaque activities can request orientation
    18.    at android.app.Activity.onCreate(Activity.java:986)
    19.    at com.unity3d.player.UnityPlayerActivity.onCreate(Unknown Source:4)
    20.    at android.app.Activity.performCreate(Activity.java:6975)
    21.    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1213)
    22.    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2779)
    23.    ... 9 more
    24.  
    25.  
    26.  
     
  7. baubau

    baubau

    Joined:
    Feb 22, 2017
    Posts:
    2
    Managed to find a solution for this? I was building with "Automatic" and it's working fine when I install my game on API 23, but on API 26, it crashes. Couldn't find a solution yet, if anyone can point me in right direction, would be appreciated.

    Thanks
     
  8. BenStark

    BenStark

    Joined:
    Jun 25, 2018
    Posts:
    5
    I am experiencing the same issue and it's becoming very frustrating. I was doing some research and in the androidmanifest.xml it sets the theme to Translucent.


    . . .android:theme="[USER=863766]@StyLe[/USER]/UnityThemeSelector.Translucent">


    I think this theme needs to be opaque or something else. I am not sure what it needs to be or how to change it or what options are available.
     
  9. SamTyurenkov

    SamTyurenkov

    Joined:
    May 12, 2018
    Posts:
    95
    Also getting this problem for Android 8 when testing with Google Test. I don't really want to target API 23, is there other solution?

    How do you explicitly set fullscreen opaque in android manifest without exporting project to Android Studio?

     
  10. SamTyurenkov

    SamTyurenkov

    Joined:
    May 12, 2018
    Posts:
    95
    Ok, so the ultimate solution that helped me:
    1. Close Unity and Unity Hub
    2. Delete all the selected files and folders, except Assets and ProjectSettings.
    3. Open Unity and load Project
    4. Let Unity rebuild the project
    5. Fix errors of missing packages (install them from package manager), in my case it was just Unity In App Purchasing Package
     
  11. pablolluchr

    pablolluchr

    Joined:
    May 23, 2017
    Posts:
    2
    Any update with this? I'm still facing this problem
     
  12. fechy

    fechy

    Joined:
    Jan 12, 2019
    Posts:
    10
    Anybody have a better solution? Deleting and reimporting the whole project cannot serioulsy be the solution...
     
  13. Voxel-Busters

    Voxel-Busters

    Joined:
    Feb 25, 2015
    Posts:
    1,952
    Share the error log so that can suggest you better. Its a very old issue which was reverted by google later. Not sure if they have it again now.