I'm sure this did work bit now it doesn't. I don't know why
Gives error on line 51
B4X:
Sub Class_Globals
#if b4j
Private fx As JFX
#end if
#if b4a
Private rp As RuntimePermissions
#End If
Dim carmodelpage As CarModels
Dim toolPage As Tool
Private Root As B4XView
Private xui As XUI
Private ivAddCar As B4XView
Private WobbleMenu1 As WobbleMenu
Private clvMakes As CustomListView
Private CachedPanels As List
Type ImageData (FileName As String, Title As String, Bitmap As B4XBitmap, Model As Int)
Private DBFileDir As String
'----PUBLIC ------------
Public options As Map
Public searchString As String = ""
Public B4XFTxtSearch As B4XFloatTextField
Public MyTools,MyToolWish As List
Public currentTool As String = ""
Public currentToolType As Int = 1
'------Drawer-------
Private drawer As B4XDrawer
Private HamburgerIcon As B4XBitmap
Private clvMenu As CustomListView
Private MenuItemLbl As B4XView
'----TOOLS---------
Private btnTool, lblKeyway, rbtnIHave, rbtnIWant As B4XView
Private ToolFileName = "MyTools.txt", ToolFileNameW = "MyToolsW.txt" As String
Private clvTools As CustomListView
End Sub
Private Sub B4XPage_Created (Root1 As B4XView)
Root = Root1
drawer.Initialize(Me, "Drawer", Root, 200dip)
drawer.CenterPanel.LoadLayout("MainPage")
B4XPages.SetTitle(Me,"LARA 4 alpha")
B4XPages.GetManager.TransitionAnimationDuration = 0
carmodelpage.Initialize
toolPage.Initialize
B4XPages.AddPage("model page",carmodelpage)
B4XPages.AddPage("tool page",toolPage)
HamburgerIcon = xui.LoadBitmapResize(File.DirAssets, "hamburger.png", 32dip, 32dip, True)
Gives error on line 51
Application_Start
Error loading bitmap: Error opening stream (/private/var/mobile/Containers/Data/Application/F1524758-BE10-4491-9E69-E81A3053F6C9/tmp/virtual_assets/addcar.png): Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory" UserInfo={_kCFStreamErrorCodeKey=2, _kCFStreamErrorDomainKey=1}
Class (b4i_bcpath) instance released.
Error occurred on line: 66 (B4XMainPage)
Error opening stream (/private/var/mobile/Containers/Data/Application/F1524758-BE10-4491-9E69-E81A3053F6C9/tmp/virtual_assets/hamburger.png): Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory" UserInfo={_kCFStreamErrorCodeKey=2, _kCFStreamErrorDomainKey=1}
Stack Trace: (
CoreFoundation <redacted> + 252
libobjc.A.dylib objc_exception_throw + 56
CoreFoundation <redacted> + 0
B4i Example -[B4IFile OpenInput::] + 440
B4i Example -[B4IBitmap Initialize::] + 800
B4i Example -[B4IBitmap InitializeResize:::::] + 140
B4i Example -[B4ICommon LoadBitmapResize:::::] + 192
B4i Example -[B4IXUI LoadBitmapResize:::::] + 136
CoreFoundation <redacted> + 144
CoreFoundation <redacted> + 292
B4i Example +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1608
B4i Example -[B4IShell runMethod:] + 448
B4i Example -[B4IShell raiseEventImpl:method:args::] + 1648
B4i Example -[B4IShellBI raiseEvent:eventarams:] + 1580
B4i Example +[B4IDebug delegate:::] + 80
B4i Example -[b4i_b4xmainpage _b4xpage_created::] + 360
CoreFoundation <redacted> + 144
CoreFoundation <redacted> + 292
B4i Example +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1608
B4i Example -[B4ICommon CallSubDebug4::::] + 1080
B4i Example -[B4ICommon CallSubDebug2::::] + 372
B4i Example -[b4i_b4xpagesmanager _createpageifneeded::] + 1152
B4i Example -[b4i_b4xpagesmanager _showpage::] + 828
B4i Example -[b4i_b4xpagesmanager _addpage:::] + 1428
B4i Example -[b4i_b4xpagesmanager _addpageandcreate:::] + 640
B4i Example -[b4i_b4xpagesmanager _initialize:::] + 1892
B4i Example -[b4i_main _application_start:] + 700
CoreFoundation <redacted> + 144
CoreFoundation <redacted> + 292
B4i Example +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1608
B4i Example -[B4IShell runMethod:] + 448
B4i Example -[B4IShell raiseEventImpl:method:args::] + 2172
B4i Example -[B4IShellBI raiseEvent:eventarams:] + 1580
B4i Example __33-[B4I raiseUIEvent:eventarams:]_block_invoke + 60
libdispatch.dylib <redacted> + 24
libdispatch.dylib <redacted> + 16
libdispatch.dylib <redacted> + 1068
CoreFoundation <redacted> + 12
CoreFoundation <redacted> + 1924
CoreFoundation CFRunLoopRunSpecific + 436
GraphicsServices GSEventRunModal + 104
UIKitCore UIApplicationMain + 212
B4i Example main + 128
libdyld.dylib <redacted> + 4
)