Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
2
Question by pertsa · Sep 18, 2015 at 12:29 PM · androidapplication.quit

Problems with Android immersive mode

Mysterious issue with immersive mode:

  • When player first starts the game immersive mode works fine.

  • If player visits desktop while playing, immersive mode still works when player comes back to game.

  • If the player quits the game (calling Application.Quit()), and then restarts the game from desktop icon, immersive mode is OK.

  • However, If the player quits the game ( still calling Application.Quit() ), and then restarts the game from recent apps list, the immersive mode is not working correctly, but leaves a black bar in the bottom screen.

Is there a way to fix this?

Comment
Add comment · Show 5
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image BabilinApps · Sep 18, 2015 at 08:34 PM 0
Share

did you try calling the immersive function on start or on awake?

avatar image alanwant · Oct 14, 2015 at 12:51 PM 0
Share

I am having this issue too. Have you had any luck finding a solution?

avatar image alanwant · Oct 15, 2015 at 10:30 AM 0
Share

I am going to try the Unity 5.1.3 patch 1 and see if it makes any difference. Have you tried another version of Unity or any patch versions?

avatar image alanwant · Oct 15, 2015 at 12:29 PM 0
Share

@BabilinApps what is the immersive function that you speak of?

avatar image BabilinApps · Oct 15, 2015 at 12:39 PM 0
Share

@alanwant it's been a little while since I created an android game. I was referring to this legacy method

https://www.assetstore.unity3d.com/en/?gclid=Cjw$$anonymous$$EAjwnf2wBRCf3sOp6oTtnjYSJAANOfheUpWXEO2tyRxL_u9mgkPGv1gnyUvTyzaZVfEJRVFW4BoCVZHw_wcB#!/content/21774

However this is meant for unity 4. Did you try making a test scene to see if Application. Quite() is the problem ?

2 Replies

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by Applava · Oct 15, 2015 at 12:42 PM

Adding uses-sdk android:targetSdkVersion="21" tag in AndroidManifest.xml solved the problem for me.

Comment
Add comment · Show 3 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image pertsa · Oct 16, 2015 at 06:04 AM 0
Share

Awesome, that did the trick!

avatar image alanwant · Oct 16, 2015 at 01:29 PM 0
Share

This did not work for me. @pertsa can you tell me what version of the android sdk do you have installed?

avatar image pertsa · Oct 19, 2015 at 06:09 AM 0
Share

Sorry to hear that @alanwant, it was a damn irritating issue.

About the SD$$anonymous$$ version, that is a bit tricky, but it seems that I have the API 21 stuff installed, but not up-to-date.

br, pertsa

avatar image
0

Answer by pertsa · Oct 14, 2015 at 04:11 PM

I do not have rights to add comments, so here is a reply as an answer to a comment... :)

The problem still exists, no luck with solution.

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image alanwant · Oct 15, 2015 at 05:57 AM 0
Share

I am running Unity 5.1.3 and testing on a Nexus 5 running an OTA updated, Android 6 ($$anonymous$$arshmallow). What is your environment?

avatar image pertsa alanwant · Oct 15, 2015 at 06:23 AM 0
Share

I have the same setup, except for the Android 5.1.1

However, we have the same issue on all our test devices.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Exit Game Without Quitting on Mobile 1 Answer

Close unity activity and start another activity - android 0 Answers

Can I make my Android game close if you leave the game on the title screen? 1 Answer

On Android 6.0 and above: When Application.Quit () is called game unforfunately stopped on relaunch. 0 Answers

Application.Quit Does Not Fully Kill App 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges