In SMM, why is webview not working from subfolder as in code line below using:
'..File.Copy(file.dirasset, "faq.html", xui.DefaultFolder, "myalbum/" & "faq.html")
MediaManager.SetMediaFromFile(pnl,xui.DefaultFolder, "myalbum/" & "faq.html","text/*",Null)
NOTE:
All necessary files were already copied successfully to subfolder and loading other files like video, audio, image from same subfolder work perfectly, only webview is problematic
Also, there is no problem loading SMM-webview files directly from dirasset, problem is only from dirinternal/xui.DefaultFolder subfolders
ERROR INFO:
All attempts keep giving this error:
Webpage not available
The webpage at file:///data/user/0/b4a.exampleb4xt2/files/myalbum%2Ffaq.html could not be loaded because:
net::ERR_ACCESS_DENIED
MY ATTEMPT SO FAR:
In the manifest, i put at different time with no success:
1st:
AddPermission("android.permission.INTERNET")
2nd:
At another time, since the subfolder is dirinternal/xui.DefaultFolder; WRITE/READ_EXTERNAL_STORAGE is not necessary. However, to avoid doubt; i still used it to no avail and also used:
SetApplicationAttribute(android:requestLegacyExternalStorage, true)
3rd:
I modified MediaManager to different things like below, but same problem persisted:
MediaManager.SetMediaFromFile(pnl,$"${xui.FileURI(xui.DefaultFolder, "myalbum/"& "faq.html")}"$,"text/*",Null)
MediaManager.SetMediaFromFile(pnl,xui.DefaultFolder,File.Combine(xui.DefaultFolder, "myalbum/" & "faq.html"),"text/*",Null)
MediaManager.SetMediaWithExtra(pnl,"file:///"&File.DirInternal&"/"&"myalbum/" & "faq.html","text/*",Null)
pnl.GetView(1).GetView(0).As(WebView).LoadUrl(xui.FileURI(xui.DefaultFolder, "myalbum/" & "faq.html"))
All other files work except webview not displayed
'..File.Copy(file.dirasset, "faq.html", xui.DefaultFolder, "myalbum/" & "faq.html")
MediaManager.SetMediaFromFile(pnl,xui.DefaultFolder, "myalbum/" & "faq.html","text/*",Null)
NOTE:
All necessary files were already copied successfully to subfolder and loading other files like video, audio, image from same subfolder work perfectly, only webview is problematic
Also, there is no problem loading SMM-webview files directly from dirasset, problem is only from dirinternal/xui.DefaultFolder subfolders
ERROR INFO:
All attempts keep giving this error:
Webpage not available
The webpage at file:///data/user/0/b4a.exampleb4xt2/files/myalbum%2Ffaq.html could not be loaded because:
net::ERR_ACCESS_DENIED
MY ATTEMPT SO FAR:
In the manifest, i put at different time with no success:
1st:
AddPermission("android.permission.INTERNET")
2nd:
At another time, since the subfolder is dirinternal/xui.DefaultFolder; WRITE/READ_EXTERNAL_STORAGE is not necessary. However, to avoid doubt; i still used it to no avail and also used:
SetApplicationAttribute(android:requestLegacyExternalStorage, true)
3rd:
I modified MediaManager to different things like below, but same problem persisted:
MediaManager.SetMediaFromFile(pnl,$"${xui.FileURI(xui.DefaultFolder, "myalbum/"& "faq.html")}"$,"text/*",Null)
MediaManager.SetMediaFromFile(pnl,xui.DefaultFolder,File.Combine(xui.DefaultFolder, "myalbum/" & "faq.html"),"text/*",Null)
MediaManager.SetMediaWithExtra(pnl,"file:///"&File.DirInternal&"/"&"myalbum/" & "faq.html","text/*",Null)
pnl.GetView(1).GetView(0).As(WebView).LoadUrl(xui.FileURI(xui.DefaultFolder, "myalbum/" & "faq.html"))
All other files work except webview not displayed