FERNANDO SILVEIRA Active Member Licensed User Jun 18, 2018 #1 Hello Guys, I'm having hard time to test this app. It is presenting the following error when I do an Code: Copy Activity.LoadLayout("Layout1") App basic code: Load Layout1 (1 panel with 1 label field) User click on label ==> start Content Chooser to select a photo Load selected photo on image field (panel 2) Crop & save cropped image Return to layout1 with label filled with cropped image Log messages: ** Activity (main) Create, isFirst = true ** Error occurred on line: 42 (Main) java.lang.RuntimeException: java.lang.reflect.InvocationTargetException at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:170) at anywheresoftware.b4a.objects.ActivityWrapper.LoadLayout(ActivityWrapper.java:209) at java.lang.reflect.Method.invoke(Native Method) at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:710) at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:342) at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:249) Any clues will be welcome. Regards, Fernando Attachments PhotoPicker.zip PhotoPicker.zip 10.4 KB · Views: 624
Hello Guys, I'm having hard time to test this app. It is presenting the following error when I do an Code: Copy Activity.LoadLayout("Layout1") App basic code: Load Layout1 (1 panel with 1 label field) User click on label ==> start Content Chooser to select a photo Load selected photo on image field (panel 2) Crop & save cropped image Return to layout1 with label filled with cropped image Log messages: ** Activity (main) Create, isFirst = true ** Error occurred on line: 42 (Main) java.lang.RuntimeException: java.lang.reflect.InvocationTargetException at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:170) at anywheresoftware.b4a.objects.ActivityWrapper.LoadLayout(ActivityWrapper.java:209) at java.lang.reflect.Method.invoke(Native Method) at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:710) at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:342) at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:249) Any clues will be welcome. Regards, Fernando
asales Expert Licensed User Longtime User Jun 25, 2018 #2 Your code is incomplete. You need add the lines to content provider definition in manifest: https://www.b4x.com/android/forum/threads/sharing-files-from-your-app-with-file-provider.70458/ and put the resource folder of cropImageView library in the project: https://www.b4x.com/android/forum/threads/cropimageview-v1-0.52278/ Upvote 0
Your code is incomplete. You need add the lines to content provider definition in manifest: https://www.b4x.com/android/forum/threads/sharing-files-from-your-app-with-file-provider.70458/ and put the resource folder of cropImageView library in the project: https://www.b4x.com/android/forum/threads/cropimageview-v1-0.52278/
FERNANDO SILVEIRA Active Member Licensed User Jun 26, 2018 #3 asales said: Your code is incomplete. You need add the lines to content provider definition in manifest: https://www.b4x.com/android/forum/threads/sharing-files-from-your-app-with-file-provider.70458/ and put the resource folder of cropImageView library in the project: https://www.b4x.com/android/forum/threads/cropimageview-v1-0.52278/ Click to expand... Thank you,Asales... Regarding resource folder I didn't figured out how important its content is. It is working now, after all these changes. Upvote 0
asales said: Your code is incomplete. You need add the lines to content provider definition in manifest: https://www.b4x.com/android/forum/threads/sharing-files-from-your-app-with-file-provider.70458/ and put the resource folder of cropImageView library in the project: https://www.b4x.com/android/forum/threads/cropimageview-v1-0.52278/ Click to expand... Thank you,Asales... Regarding resource folder I didn't figured out how important its content is. It is working now, after all these changes.