android - How to deal with a force close -
i developing game application android. problem crashes , displays "unfortunately...has stopped" dialog. running application again not force close app when getting same point, appear every often.
what potential reasons might happen? i've done research couldn't find anything
you should review logcat possible exceptions.
if have no exceptions causing app crash -meaning code aparently "ok"- there's chance application consuming lots of memory. if application making garbage collector overwork, android may shut down application.
you must take care not overcreating objects, or leaving load behind cleaned garbage collector. means, if can reuse objects, that's idea.
there's <application>
element in android manifest. can set there attribute named android:largeheap="true". in way android assign more memory application. do last resort. try first improve object management in app. ain't easy task, luck.
Comments
Post a Comment