Is there someone who knows, why I always get an out of memory exception, when I change the screenorientation six or seven times? My device is an Galaxy S5. The following log in unfiltered, but I'm not able to see the problem
Thanks for help....
B4X:
** Activity (konferenz) Resume **
Downsampling image due to lack of memory.
Downsampling image due to lack of memory: 2
java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Integer
AsyncLoad failed: java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()
** Activity (konferenz) Pause, UserClosed = false **
** Activity (konferenz) Create, isFirst = false **
(Konferenz, 94) Object was already initialized. (warning #1003)
** Activity (konferenz) Resume **
Downsampling image due to lack of memory.
Downsampling image due to lack of memory: 2
AsyncLoad failed: Out of Memory
** Activity (konferenz) Pause, UserClosed = true **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
java.lang.OutOfMemoryError
at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)
at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:683)
at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:513)
at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:889)
at android.content.res.Resources.loadDrawable(Resources.java:3454)
at android.content.res.Resources.getDrawable(Resources.java:1918)
at com.android.internal.widget.ActionBarView.setIcon(ActionBarView.java:1037)
at com.android.internal.policy.impl.PhoneWindow.setDefaultIcon(PhoneWindow.java:1550)
at android.app.Activity.initActionBar(Activity.java:2017)
at android.app.Activity.setContentView(Activity.java:2052)
at de.eis_desktop.eis.main.onCreate(main.java:57)
at android.app.Activity.performCreate(Activity.java:5451)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1093)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2359)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2453)
at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:4036)
at android.app.ActivityThread.access$1000(ActivityThread.java:173)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1309)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5579)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1268)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1084)
at dalvik.system.NativeStart.main(Native Method)
Thanks for help....