Agu
Lost but trying
Profile
Posts: 98
Reg: Mar 06, 2014
GRANADA
980
06/20/15 03:19 PM (9 years ago)

my app crash

when I test the app in my smarthphone connected to eclipse, it sometimes crash after a few taps. can anyone help me please? Thanks! logcat shows: 06-21 00:17:08.844: E/AndroidRuntime(24463): FATAL EXCEPTION: main 06-21 00:17:08.844: E/AndroidRuntime(24463): Process: com.borradorcir, PID: 24463 06-21 00:17:08.844: E/AndroidRuntime(24463): java.lang.OutOfMemoryError 06-21 00:17:08.844: E/AndroidRuntime(24463): at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method) 06-21 00:17:08.844: E/AndroidRuntime(24463): at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:587) 06-21 00:17:08.844: E/AndroidRuntime(24463): at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:422) 06-21 00:17:08.844: E/AndroidRuntime(24463): at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:840) 06-21 00:17:08.844: E/AndroidRuntime(24463): at android.content.res.Resources.loadDrawable(Resources.java:2150) 06-21 00:17:08.844: E/AndroidRuntime(24463): at android.content.res.Resources.getDrawable(Resources.java:715) 06-21 00:17:08.844: E/AndroidRuntime(24463): at com.borradorcir.BT_fileManager.getDrawableByName(BT_fileManager.java:263) 06-21 00:17:08.844: E/AndroidRuntime(24463): at com.borradorcir.WB_screen_menuImage.onCreateView(WB_screen_menuImage.java:271) 06-21 00:17:08.844: E/AndroidRuntime(24463): at android.app.Fragment.performCreateView(Fragment.java:1710) 06-21 00:17:08.844: E/AndroidRuntime(24463): at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:891) 06-21 00:17:08.844: E/AndroidRuntime(24463): at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1063) 06-21 00:17:08.844: E/AndroidRuntime(24463): at android.app.BackStackRecord.run(BackStackRecord.java:684) 06-21 00:17:08.844: E/AndroidRuntime(24463): at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1450) 06-21 00:17:08.844: E/AndroidRuntime(24463): at android.app.FragmentManagerImpl$1.run(FragmentManager.java:444) 06-21 00:17:08.844: E/AndroidRuntime(24463): at android.os.Handler.handleCallback(Handler.java:733) 06-21 00:17:08.844: E/AndroidRuntime(24463): at android.os.Handler.dispatchMessage(Handler.java:95) 06-21 00:17:08.844: E/AndroidRuntime(24463): at android.os.Looper.loop(Looper.java:136) 06-21 00:17:08.844: E/AndroidRuntime(24463): at android.app.ActivityThread.main(ActivityThread.java:5118) 06-21 00:17:08.844: E/AndroidRuntime(24463): at java.lang.reflect.Method.invokeNative(Native Method) 06-21 00:17:08.844: E/AndroidRuntime(24463): at java.lang.reflect.Method.invoke(Method.java:515) 06-21 00:17:08.844: E/AndroidRuntime(24463): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:790) 06-21 00:17:08.844: E/AndroidRuntime(24463): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:606) 06-21 00:17:08.844: E/AndroidRuntime(24463): at dalvik.system.NativeStart.main(Native Method)
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
06/21/15 02:37 PM (9 years ago)
Out of memory is the problem, but without any more info about the app, it is hard to be helpful in any more than a general sense. Check out this post, there are few good tips in there http://www.buzztouch.com/forum/thread.php?tid=C4B5E55DC9830758290F3B4&sortColumn=FT.id&sortUpDown=DESC&currentPage=2
 
Agu
Lost but trying
Profile
Posts: 98
Reg: Mar 06, 2014
GRANADA
980
like
06/25/15 10:29 AM (9 years ago)
Thanks! I found the solution in that post. Just copying the image files en all res>drawable-... folders.Seems to work fine now.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.