Hi
i use B4XFloatTextField for Password.
- on New Device (Android 9), it works (Android 5/6 not testet)
- on Android 4.4, Crash
Code:
crash on SV_FTP.Panel.LoadLayout
whats wrong? on other Place (other bal File) it works also on Android 4, i think its a Problem in the bal File or with the ScrollView??
i use B4XFloatTextField for Password.
- on New Device (Android 9), it works (Android 5/6 not testet)
- on Android 4.4, Crash
Code:
B4X:
Dim SV_FTP As ScrollView
SV_FTP.Initialize(800dip)
SV_FTP.Panel.Initialize("ftp_zugang_panel")
SV_FTP.Panel.LoadLayout("ftp_zugang")
crash on SV_FTP.Panel.LoadLayout
Panel size is unknown. Layout may not be loaded correctly. <<- on Boot, Android 4.4 and 9
b4xfloattextfield_createbitmap (java line: 190)
java.lang.IllegalArgumentException: width and height must be > 0
at android.graphics.Bitmap.createBitmap(Bitmap.java:667)
at android.graphics.Bitmap.createBitmap(Bitmap.java:649)
at anywheresoftware.b4a.objects.drawable.CanvasWrapper.Initialize(CanvasWrapper.java:81)
at anywheresoftware.b4a.objects.B4XCanvas.Initialize(B4XCanvas.java:37)
at de.udxsoft.udxlog.b4xfloattextfield._createbitmap(b4xfloattextfield.java:190)
at de.udxsoft.udxlog.b4xfloattextfield._update(b4xfloattextfield.java:636)
at de.udxsoft.udxlog.b4xfloattextfield._designercreateview(b4xfloattextfield.java:366)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:196)
at anywheresoftware.b4a.objects.CustomViewWrapper.AfterDesignerScript(CustomViewWrapper.java:67)
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:162)
at anywheresoftware.b4a.objects.PanelWrapper.LoadLayout(PanelWrapper.java:134)
at de.udxsoft.udxlog.main$ResumableSub_btn_Backup_SetFTP_Click.resume(main.java:8405)
at de.udxsoft.udxlog.main._btn_backup_setftp_click(main.java:8365)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:196)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:180)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:176)
at anywheresoftware.b4a.objects.ViewWrapper$1.onClick(ViewWrapper.java:80)
at android.view.View.performClick(View.java:4191)
at android.view.View$PerformClick.run(View.java:17184)
at android.os.Handler.handleCallback(Handler.java:615)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4867)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1007)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:774)
at dalvik.system.NativeStart.main(Native Method)
b4xfloattextfield_createbitmap (java line: 190)
java.lang.IllegalArgumentException: width and height must be > 0
at android.graphics.Bitmap.createBitmap(Bitmap.java:667)
at android.graphics.Bitmap.createBitmap(Bitmap.java:649)
at anywheresoftware.b4a.objects.drawable.CanvasWrapper.Initialize(CanvasWrapper.java:81)
at anywheresoftware.b4a.objects.B4XCanvas.Initialize(B4XCanvas.java:37)
at de.udxsoft.udxlog.b4xfloattextfield._createbitmap(b4xfloattextfield.java:190)
at de.udxsoft.udxlog.b4xfloattextfield._update(b4xfloattextfield.java:636)
at de.udxsoft.udxlog.b4xfloattextfield._designercreateview(b4xfloattextfield.java:366)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:196)
at anywheresoftware.b4a.objects.CustomViewWrapper.AfterDesignerScript(CustomViewWrapper.java:67)
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:162)
at anywheresoftware.b4a.objects.PanelWrapper.LoadLayout(PanelWrapper.java:134)
at de.udxsoft.udxlog.main$ResumableSub_btn_Backup_SetFTP_Click.resume(main.java:8405)
at de.udxsoft.udxlog.main._btn_backup_setftp_click(main.java:8365)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:196)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:180)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:176)
at anywheresoftware.b4a.objects.ViewWrapper$1.onClick(ViewWrapper.java:80)
at android.view.View.performClick(View.java:4191)
at android.view.View$PerformClick.run(View.java:17184)
at android.os.Handler.handleCallback(Handler.java:615)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4867)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1007)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:774)
at dalvik.system.NativeStart.main(Native Method)
whats wrong? on other Place (other bal File) it works also on Android 4, i think its a Problem in the bal File or with the ScrollView??
Attachments
Last edited: