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 Santosh Patil · Dec 08, 2014 at 05:23 AM · androidcrash

Unity Android app crashes on application quit

Hi, I'm working unity android app and implemented back key functionality. When use pressed back application should be closed, but my app crashes on that time.

ANR in com.. (com../com.unity3d.player.UnityPlayerProxyActivity)

Application is not responding: AppWindowToken{434e9b58 token=Token{42b69a18 ActivityRecord{42571750 u0 com..**/com.unity3d.player.UnityPlayerProxyActivity t17}}}. It has been 7520.0ms since event, 5005.6ms since wait started. Reason: Waiting because no window has focus but there is a focused application that may eventually add a window when it finishes starting up.

I've integrated google admob,google analytics, google play services, vungle, flurry,facebook in my app and soomla IAP.

Thanks.

Comment
Add comment · Show 3
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 Daniiii · Jan 05, 2015 at 02:27 PM 0
Share

I'm facing a similar problem, have you found a fix yet?

avatar image CarlosP · Jan 14, 2015 at 03:27 PM 0
Share

Did you find a solution? $$anonymous$$y app also crashes at Application.Quit(). I also integrated google analytics, google play services and soomla-store.

avatar image meat5000 ♦ · Jan 19, 2015 at 10:02 AM 0
Share

Has anyone tried logging out of Google services first?

6 Replies

· Add your reply
  • Sort: 
avatar image
2

Answer by phuongdong008 · Jan 09, 2015 at 08:24 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 berzerk · Jan 18, 2015 at 02:52 AM 1
Share

I have been searching all over for a solution... you were the only one that got it right! I just wonder what the implications of removing the Proxy Activity are... Great post!

PS.: I can't vote you up yet, I'm new around here.

avatar image Nomibuilder · Jan 19, 2015 at 02:24 PM 1
Share

I'll do it for you. #Vote_Up

avatar image
2

Answer by anilthapliyal8024 · May 15, 2017 at 02:37 PM

Can use : System.Diagnostics.Process.GetCurrentProcess().Kill(); // instead of // Application.Quit();

Comment
Add comment · Show 1 · 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 mkrana · May 16, 2017 at 07:09 AM 0
Share

Thanks. This solved the issue.

avatar image
1

Answer by CarlosP · Jan 19, 2015 at 09:34 AM

I've had this problem, and removing the ProxyActivity indeed makes it faster to quit. However, if you want to re-launch the app it will delay 4-5 seconds (until it times out and kills the window).

This error is caused by the Google Play Games plugin for Unity. We removed it and our game launches and quits as it should. That plugin ended up having several errors... We are moving to facebook's scores.

Hope it's useful for someone!

Comment
Add comment · Show 1 · 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 guybrush.threepwood · Feb 18, 2015 at 03:18 PM 0
Share

First one, who tried to restart the app ;)

avatar image
1

Answer by Nomibuilder · Jan 19, 2015 at 02:26 PM

I have updated my Unity Pro version from 4.5.2 f1 to Unity 4.6.1 And it solved my problem. Don't know the reason. I think it was the bug in Older version of unity while building it.

Comment
Add comment · Show 1 · 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 guybrush.threepwood · Feb 18, 2015 at 03:19 PM 1
Share

Problem persists with 4.6.2f1

avatar image
0

Answer by guybrush.threepwood · Feb 18, 2015 at 03:16 PM

EDIT: Found an answer: http://ux.stackexchange.com/a/7518

The answer is: you simply don't need to close applications manually on modern mobile operating systems

I can confirm that

"delete the entire UnityPlayerProxyActivity "

helps for quitting immediately, but I can also confirm that

"if you want to re-launch the app it will delay 4-5 seconds"

after that change.

I am using Unity 4.6.2f1 with latest admob plugin https://github.com/googleads/googleads-mobile-plugins

So we can assume that lib is broken? Or are we doing something wrong? I mean, why are we the only people with that problem?!

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 Aram-Azhari · Mar 23, 2015 at 11:30 AM 0
Share

You're not alone. I have the same problem in Unity 5 without even using the admob.

avatar image guybrush.threepwood · Mar 23, 2015 at 02:59 PM 0
Share

FYI: Found a solution http://ux.stackexchange.com/a/7518 And I've also heared, that exit/quit actions lead to rejection by apple.

  • 1
  • 2
  • ›

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

33 People are following this question.

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

Related Questions

Motorola Atrix MB860 crash always after splash screen 0 Answers

Difficulty publishing for android device 1 Answer

How is the game's performance looking on Android? 0 Answers

Android tablet crashes depending on texture compression 0 Answers

What might cause an Android app to freeze 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