lledden Member Licensed User Longtime User Jul 5, 2018 #1 I have a simple app that is working in the Andy emulator. I just added a custom list view with layout made in the designer. The custom list layout file (lstlayout.bal) appears in the files tab in the IDE along with the main layout file (Remote.bal). The app starts and loads the main activity layout file which displays properly. When the Activity attempts to create the custom list view Code: Copy Dim p As Panel p.Initialize("") p.SetLayout(0, 0, Width, Height) p.LoadLayout("lstlayout") I get the error java.io.FileNotFoundException: /data/user/0/b4a.example/files/virtual_assets/lstlayout.bal (No such file or directory) Is there something special that needs to be done to include layout files with the apk?
I have a simple app that is working in the Andy emulator. I just added a custom list view with layout made in the designer. The custom list layout file (lstlayout.bal) appears in the files tab in the IDE along with the main layout file (Remote.bal). The app starts and loads the main activity layout file which displays properly. When the Activity attempts to create the custom list view Code: Copy Dim p As Panel p.Initialize("") p.SetLayout(0, 0, Width, Height) p.LoadLayout("lstlayout") I get the error java.io.FileNotFoundException: /data/user/0/b4a.example/files/virtual_assets/lstlayout.bal (No such file or directory) Is there something special that needs to be done to include layout files with the apk?
Erel B4X founder Staff member Licensed User Longtime User Jul 6, 2018 #2 Try this: 1. Uninstall the app from the device. 2. Clean the project (Ctrl + P) 3. Run your project. Does it run properly? Upvote 0
Try this: 1. Uninstall the app from the device. 2. Clean the project (Ctrl + P) 3. Run your project. Does it run properly?