• 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
0
Question by Efect · Dec 21, 2012 at 12:55 AM · androidsaveloadingcrashes

Because sometimes my game crashes when loading the game on the android tablet?

Hello, I'm making a game for android and everything worked fine, I put the option to save game with PlayerPrefs.SetInt ("LVL" level), and everything works fine on the computer. but in my android tablet loading screen sometimes hangs and restarts the game. I can not know what happens in the tablet because I have no debugger and the game works fine on the pc. Thank you.

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 MD_Reptile · Dec 21, 2012 at 06:26 PM 0
Share

this sounds like something I often get with android builds. See what I think is happening, is you build out to your device, then run the app, and it works no problem first run - then you build again, and when it goes to launch the app, its already running in the background (because my dev builds often lack quit buttons lol) and then it starts to open, blacks out the screen, and poof, right back to the homescreen or app screen. I dont think this has to do with the playerprefs or anything, just a nuance of the android operating system, and having an app running then pushing another version, and having that apps memory still loaded or something...

Then again this is just my theory, perhaps its a bigger problem or totally unrelated to what I had experienced...

Couple things to consider maybe:

A) how complex is this game? is it overwhel$$anonymous$$g your OS/hardware on your device? Then again I have ran some ridiculous stuff on my Droid X and Droid Razr, and it works most of the time lol...

B) have you completely "quit" the other instance your game ran in, on the device?

if those dont help I am not sure what is going on...good luck

avatar image Efect · Dec 22, 2012 at 01:45 AM 0
Share

Thanks for your answer. Characters in the game only has about 300 polygons no shadows or lighting, the textures are the most basic unshaded. just a little more transparency. That is not the problem. When I save the game I go to the game menu and I reload, or get out of the game completely closing the application No two games while starting.

avatar image MD_Reptile · Dec 22, 2012 at 02:23 AM 0
Share

Oh okay then none of that stuff is the problem.

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by thendricks · Dec 21, 2012 at 02:20 PM

It seems to me that your tablet doesn't have enough ram/The game your making for android is to powerful for an android device. The best thing to do would be to have less action going on in the scene. Like getting lower poly models, creating less simple particle systems,or using less objects. Sorry if this doesn't apply to what your trying to do.

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
avatar image
0

Answer by Efect · Dec 21, 2012 at 09:44 PM

Thanks for responding. The game always worked perfectly on the tablet but has begun to fail to save the game. When charging sometimes at 2 segudos start the game crashes. probe to give you three seconds before loading the screen in case it was the problem of time it takes to grab the data from the save. Keep only 5 variables, the number of current screen, the lives, the points, the selected character, and progress.

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 Efect · Dec 21, 2012 at 05:35 PM 0
Share

Thanks for responding. The game always worked perfectly on the tablet . Began to fail after entering the game the possibility to save the game. When charging sometimes at 2 seconds start the game crashes. probe to give you three seconds before loading the screen in case it was the problem of time it takes to grab the data from the save. $$anonymous$$eep only 5 variables, the number of current screen, the lives, the points, the selected character, and progress.

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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

11 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

Related Questions

Loading a save/playerprefs from a different game? 2 Answers

PlayerPrefs not working? 1 Answer

IsolatedStorageException: Could not find a part of the path 1 Answer

How to modify or save xml on Android 0 Answers

Android application (Unity 5) closes without error a few seconds into game on random devices. 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