Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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
1
Question by mmsameh_msp · Dec 16, 2014 at 01:11 PM · process

Issue application.Quit Takes much time to close android application

I have an issue with application.Quit, i close my application when the user clicks on back button but what happens is that the android application freezes for about 4-5 seconds the truns to black screen , then shows the status bar with the application name then after another 5-7 secs it closes so the game quitting takes about 15 secs ,too much time.

I dont know the reason behind this , i have google game service and some other assets integrated in my game should i need to carry out any procedure before closing the game? is there anything more powerful than application.Quit to kill the game instantly? Did you face similar behavior before, i tried more than one solution but nothing helped thank you very much

Comment
Add comment · Show 7
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 taxvi · Dec 16, 2014 at 01:47 PM 0
Share

as far as I know it's not advisable to implement an application exit for mobile devices.

avatar image meat5000 ♦ · Dec 16, 2014 at 01:50 PM 0
Share

Can you explain this comment further?

avatar image taxvi · Dec 16, 2014 at 01:54 PM 0
Share

this article discusses further

avatar image meat5000 ♦ · Dec 16, 2014 at 01:56 PM 1
Share

Thanks for the link. Note that Google encourage "User Discretion" with regard to the Quit functions. A user should have the ability to close the App but it should not be necessary/essential.

avatar image HYPERSAVV · Dec 18, 2014 at 10:03 AM 1
Share

It feels like you're trying to replicate existing functionality. "Simulating" the home button is easy, let the user press the home button! Unity does not provide this because the OS already handles this case. 'Back' should simply bring the user through a series of scenes that eventually lead to a "menu" of some sort. If the user wants to go home they'll press the OS provided button.

Show more comments

2 Replies

· Add your reply
  • Sort: 
avatar image
3

Answer by phuongdong008 · Jan 09, 2015 at 07:10 PM

In my case, the same problem happened after I integrated Admob plugin into Unity. If this is also your case, you can solve by going to the Plugin/Android/AndroidManifest.xml file and delete the entire UnityPlayerProxyActivity and then move the intent filter down under to the UnityPlayerActivity.

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 achillesdotexe · Jun 17, 2015 at 12:41 PM 0
Share

thank you. it worked.

avatar image Marurban · May 27, 2016 at 10:38 AM 0
Share

God I thought that I will remove these $#@!$%@ ads

avatar image
0

Answer by siddharth3322 · Feb 16, 2015 at 03:09 AM

If you are facing this problem then I have solution for it. I have similar problem for my game. Normally in game quit process works well but after adding some plugin I was facing same problem for android device built.

For solution, I have set UnityPlayerActivity as my launcher activity. Now game quit process work smoothly as before.

  <activity
             android:name="com.unity3d.player.UnityPlayerActivity"
             android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen"
             android:label="@string/app_name" >
             
              <intent-filter>
                 <action android:name="android.intent.action.MAIN" />
 
                 <category android:name="android.intent.category.LAUNCHER" />
             </intent-filter>
 </activity>
Comment
Add comment · 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

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

8 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How do I tell command prompt to do a command after I open it through Unity? 1 Answer

I want to export from Unity to Oculus Rift. I'm using Unity 5.1.2p3. 0 Answers

Scheduling a job issue 1 Answer

Game launches as background process in windows 2012 0 Answers

Run fastlane process and redirect output 0 Answers


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