- Home /
why my Unity Android game close at random time after start on some devices.
I am developing a android game using unity. It workes properly when i use unity remote for testing.But when I build and run the game on the same device which i was using with remote,the game stops working and closes at random time.
these happens only with some devices ie Motog and Motog2, while with other device ie Motoe, Samsung duos it workes properly.
please help.
Android is killing the app to save on resources, perhaps.
Check LogCat for crash/error information.
yes you were right,android was killing the app..$$anonymous$$ay be due to large memory requirement..i reduce the size of all textures ..and the problem solve..may be temprory.. is there any permanent solution??
Answer by 3danimation.pro · Apr 24, 2016 at 11:25 PM
check if there is any exception error too many exception error closes the game on android devices as an instance null reference exception
hmm maybe this is the solustion, i gonna try this soon.
hi 3danimation.pro, previously i have some (maybe many) errors and i think some of them is null reference, and to remove them i use try and catch block. and now many there is no error showed, but somtime it close by itself. is that a problem to use many try and catch to encounter error?
Your answer
Follow this Question
Related Questions
Android Communication 1 Answer
GUI how to make the scrollbar bigger? 1 Answer
How do I reset Screen.sleepTimeout's user input timer? 1 Answer
virtual joysticks only detect one axis? 2 Answers
Mobile Keyboard Scales Screen 1 Answer