LogCat connected to: emulator-5554
--------- beginning of system
--------- beginning of main
Copying updated assets files (1)
** Activity (main) Create, isFirst = true **
Error occurred on line: 122 (CustomListView)
java.lang.IllegalArgumentException: Layout: -12 < 0
at android.text.Layout.<init>(Layout.java:139)
at android.text.StaticLayout.<init>(StaticLayout.java:105)
at android.text.StaticLayout.<init>(StaticLayout.java:91)
at android.text.StaticLayout.<init>(StaticLayout.java:69)
at android.text.StaticLayout.<init>(StaticLayout.java:49)
at anywheresoftware.b4a.objects.StringUtils.MeasureMultilineTextHeight(StringUtils.java:32)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:668)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:334)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:244)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:132)
at de.amberhome.swiperefreshexample.main.afterFirstLayout(main.java:102)
at de.amberhome.swiperefreshexample.main.access$000(main.java:17)
at de.amberhome.swiperefreshexample.main$WaitForLayout.run(main.java:80)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5257)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
** Activity (main) Create, isFirst = true **
customlistview_insertattextitem (java line: 361)
java.lang.IllegalArgumentException: Layout: -12 < 0
at android.text.Layout.<init>(Layout.java:139)
at android.text.StaticLayout.<init>(StaticLayout.java:105)
at android.text.StaticLayout.<init>(StaticLayout.java:91)
at android.text.StaticLayout.<init>(StaticLayout.java:69)
at android.text.StaticLayout.<init>(StaticLayout.java:49)
at anywheresoftware.b4a.objects.StringUtils.MeasureMultilineTextHeight(StringUtils.java:32)
at de.amberhome.swiperefreshexample.customlistview._insertattextitem(customlistview.java:361)
at de.amberhome.swiperefreshexample.customlistview._addtextitem(customlistview.java:51)
at de.amberhome.swiperefreshexample.main._refreshlistview(main.java:404)
at de.amberhome.swiperefreshexample.main._activity_create(main.java:335)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:187)
at de.amberhome.swiperefreshexample.main.afterFirstLayout(main.java:102)
at de.amberhome.swiperefreshexample.main.access$000(main.java:17)
at de.amberhome.swiperefreshexample.main$WaitForLayout.run(main.java:80)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5257)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
java.lang.IllegalArgumentException: Layout: -12 < 0
** Activity (main) Pause, UserClosed = false **
** Activity (main) Create, isFirst = true **
main_refreshlistview (java line: 414)
java.lang.RuntimeException: Object should first be initialized (Panel).
at anywheresoftware.b4a.AbsObjectWrapper.getObject(AbsObjectWrapper.java:50)
at anywheresoftware.b4a.objects.PanelWrapper.AddView(PanelWrapper.java:63)
at de.amberhome.swiperefreshexample.main._refreshlistview(main.java:414)
at de.amberhome.swiperefreshexample.main._activity_create(main.java:340)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:187)
at de.amberhome.swiperefreshexample.main.afterFirstLayout(main.java:102)
at de.amberhome.swiperefreshexample.main.access$000(main.java:17)
at de.amberhome.swiperefreshexample.main$WaitForLayout.run(main.java:80)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5257)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
java.lang.RuntimeException: Object should first be initialized (Panel).
** Activity (main) Create, isFirst = true **
main_refreshlistview (java line: 416)
java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.
at android.view.ViewGroup.addViewInner(ViewGroup.java:3936)
at android.view.ViewGroup.addView(ViewGroup.java:3786)
at android.view.ViewGroup.addView(ViewGroup.java:3758)
at anywheresoftware.b4a.objects.PanelWrapper.AddView(PanelWrapper.java:63)
at de.amberhome.swiperefreshexample.main._refreshlistview(main.java:416)
at de.amberhome.swiperefreshexample.main._activity_create(main.java:340)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:187)
at de.amberhome.swiperefreshexample.main.afterFirstLayout(main.java:102)
at de.amberhome.swiperefreshexample.main.access$000(main.java:17)
at de.amberhome.swiperefreshexample.main$WaitForLayout.run(main.java:80)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5257)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.
** Activity (main) Create, isFirst = true **
main_refreshlistview (java line: 412)
java.lang.RuntimeException: Object should first be initialized (ImageView).
at anywheresoftware.b4a.AbsObjectWrapper.getObject(AbsObjectWrapper.java:50)
at de.amberhome.swiperefreshexample.main._refreshlistview(main.java:412)
at de.amberhome.swiperefreshexample.main._activity_create(main.java:335)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:187)
at de.amberhome.swiperefreshexample.main.afterFirstLayout(main.java:102)
at de.amberhome.swiperefreshexample.main.access$000(main.java:17)
at de.amberhome.swiperefreshexample.main$WaitForLayout.run(main.java:80)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5257)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
java.lang.RuntimeException: Object should first be initialized (ImageView).
** Activity (main) Create, isFirst = true **
Downsampling image due to lack of memory.
Downsampling image due to lack of memory: 6
Downsampling image due to lack of memory.
Downsampling image due to lack of memory: 6
Downsampling image due to lack of memory: 12
Downsampling image due to lack of memory.
Downsampling image due to lack of memory: 6
Downsampling image due to lack of memory: 12
Downsampling image due to lack of memory.
Downsampling image due to lack of memory: 6
Downsampling image due to lack of memory: 12
Downsampling image due to lack of memory.
Downsampling image due to lack of memory: 6
Downsampling image due to lack of memory: 12
Downsampling image due to lack of memory: 24
Downsampling image due to lack of memory: 48
--------- beginning of crash
** Activity (main) Create, isFirst = true **
main_refreshlistview (java line: 411)
java.lang.NullPointerException: Attempt to read from field 'int android.view.ViewGroup$LayoutParams.height' on a null object reference
at anywheresoftware.b4a.objects.ViewWrapper.getHeight(ViewWrapper.java:143)
at de.amberhome.swiperefreshexample.main._refreshlistview(main.java:411)
at de.amberhome.swiperefreshexample.main._activity_create(main.java:335)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:187)
at de.amberhome.swiperefreshexample.main.afterFirstLayout(main.java:102)
at de.amberhome.swiperefreshexample.main.access$000(main.java:17)
at de.amberhome.swiperefreshexample.main$WaitForLayout.run(main.java:80)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5257)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
java.lang.NullPointerException: Attempt to read from field 'int android.view.ViewGroup$LayoutParams.height' on a null object reference
** Activity (main) Create, isFirst = true **
Downsampling image due to lack of memory.
Downsampling image due to lack of memory: 6
Downsampling image due to lack of memory.
Downsampling image due to lack of memory: 6
Downsampling image due to lack of memory: 12
Downsampling image due to lack of memory.
Downsampling image due to lack of memory: 6
Downsampling image due to lack of memory: 12
Downsampling image due to lack of memory.
Downsampling image due to lack of memory: 6
Downsampling image due to lack of memory: 12
Downsampling image due to lack of memory: 24
Downsampling image due to lack of memory.
Downsampling image due to lack of memory: 6
Downsampling image due to lack of memory: 12
Downsampling image due to lack of memory: 24
** Activity (main) Create, isFirst = true **
Downsampling image due to lack of memory.
Downsampling image due to lack of memory: 6
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Service (httputils2service) Create **
** Service (httputils2service) Start **
** Service (imagedownloader) Create **
** Service (imagedownloader) Start **
** Activity (main) Pause, UserClosed = false **
** Activity (activity2) Create, isFirst = true **
** Activity (activity2) Resume **
** Activity (activity2) Pause, UserClosed = true **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
** Activity (activity2) Create, isFirst = false **
** Activity (activity2) Resume **
** Activity (activity2) Pause, UserClosed = true **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
** Activity (activity2) Create, isFirst = false **
** Activity (activity2) Resume **
** Activity (activity2) Pause, UserClosed = true **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
** Activity (activity2) Create, isFirst = false **
** Activity (activity2) Resume **
** Activity (activity2) Pause, UserClosed = true **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
** Activity (activity2) Create, isFirst = false **
** Activity (activity2) Resume **
** Activity (activity2) Pause, UserClosed = true **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
** Activity (activity2) Create, isFirst = false **
** Activity (activity2) Resume **
** Activity (activity2) Pause, UserClosed = true **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
** Activity (activity2) Create, isFirst = false **
** Activity (activity2) Resume **
** Activity (activity2) Pause, UserClosed = true **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
** Activity (main) Resume **
** Activity (main) Create, isFirst = true **
customlistview_insertattextitem (java line: 361)
java.lang.IllegalArgumentException: Layout: -12 < 0
at android.text.Layout.<init>(Layout.java:139)
at android.text.StaticLayout.<init>(StaticLayout.java:105)
at android.text.StaticLayout.<init>(StaticLayout.java:91)
at android.text.StaticLayout.<init>(StaticLayout.java:69)
at android.text.StaticLayout.<init>(StaticLayout.java:49)
at anywheresoftware.b4a.objects.StringUtils.MeasureMultilineTextHeight(StringUtils.java:32)
at de.amberhome.swiperefreshexample.customlistview._insertattextitem(customlistview.java:361)
at de.amberhome.swiperefreshexample.customlistview._addtextitem(customlistview.java:51)
at de.amberhome.swiperefreshexample.main._refreshlistview(main.java:404)
at de.amberhome.swiperefreshexample.main._activity_create(main.java:335)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:187)
at de.amberhome.swiperefreshexample.main.afterFirstLayout(main.java:102)
at de.amberhome.swiperefreshexample.main.access$000(main.java:17)
at de.amberhome.swiperefreshexample.main$WaitForLayout.run(main.java:80)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5257)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
java.lang.IllegalArgumentException: Layout: -12 < 0