Android Question SMM With ZoomImageViewRequest Crashes in B4A but Works in B4J

Mahares

Expert
Licensed User
Longtime User
I followed these 3 rules:
1. Added SMM_ZOOM to build configuration
2. ZoomImageView v1.05
3. SMM version 1.08. B4A and B4J use the same b4xlib
B4X:
#if SMM_ZOOM
    Dim extra As Map = CreateMap(MediaManager.REQUEST_ZOOMIMAGEVIEW: True)
    MediaManager.SetMediaFromFile(Pane2, File.DirAssets, "hannibal.jpg","image/*" , extra)
#End if
B4X:
Error occurred on line: 241 (SMMViews)
java.io.FileNotFoundException: /data/user/0/b4a.example/files/virtual_assets/smmzoomimageview.bal (No such file or directory)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:200)
at java.io.FileInputStream.<init>(FileInputStream.java:150)
at anywheresoftware.b4a.objects.streams.File.OpenInput(File.java:205)
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:82)
at anywheresoftware.b4a.objects.PanelWrapper.LoadLayout(PanelWrapper.java:134)
at anywheresoftware.b4a.objects.B4XViewWrapper.LoadLayout(B4XViewWrapper.java:312)
atb4a.example.smmviews._getview(smmviews.java:620)
at b4a.example.smmviews$ResumableSub_AddMedia.resume(smmviews.java:243)
at b4a.example.smmviews._addmedia(smmviews.java:195)
at b4a.example.simplemediamanager._mediaisready(simplemediamanager.java:1394)
Thank you
 

Peter Simpson

Expert
Licensed User
Longtime User
Yep, all works ?
 

Attachments

  • Project.zip
    48 KB · Views: 208
Upvote 0
Top