Roger Daley Well-Known Member Licensed User Longtime User Jan 2, 2016 #1 Hi All, I am using "ShowExternalDocument" to display a HTM file. It works when I compile in Debug mode but when I compile in Release mode I get a pop up that tells me I need an App. Code: Copy Sub Help_action fx.ShowExternalDocument(File.GetUri(File.DirAssets, "helpfile.htm")) End Sub Any Ideas? Regards Roger
Hi All, I am using "ShowExternalDocument" to display a HTM file. It works when I compile in Debug mode but when I compile in Release mode I get a pop up that tells me I need an App. Code: Copy Sub Help_action fx.ShowExternalDocument(File.GetUri(File.DirAssets, "helpfile.htm")) End Sub Any Ideas? Regards Roger
eurojam Well-Known Member Licensed User Longtime User Jan 2, 2016 #2 Hi Roger, that is because the Assetfolder will not be accessible to other programs in the release state of your programm, the files are packaged inside the Jar files. Put the help file into the File.DirApp folder and it will work in release mode... best stefan Upvote 0
Hi Roger, that is because the Assetfolder will not be accessible to other programs in the release state of your programm, the files are packaged inside the Jar files. Put the help file into the File.DirApp folder and it will work in release mode... best stefan
Roger Daley Well-Known Member Licensed User Longtime User Jan 2, 2016 #3 Thanks Stephen, So easy when you know. The B4A version used a WebView, I didn't occur to me that using a browser would be a problem. When you point it out it becomes obvious. Regards Roger Upvote 0
Thanks Stephen, So easy when you know. The B4A version used a WebView, I didn't occur to me that using a browser would be a problem. When you point it out it becomes obvious. Regards Roger
eurojam Well-Known Member Licensed User Longtime User Jan 2, 2016 #4 But why don't you use a webview in your b4j app. It is also available in b4j, then you can leave your html file in the asset folder... Upvote 0
But why don't you use a webview in your b4j app. It is also available in b4j, then you can leave your html file in the asset folder...
Roger Daley Well-Known Member Licensed User Longtime User Jan 2, 2016 #5 eurojam said: But why don't you use a webview in your b4j app. It is also available in b4j, then you can leave your html file in the asset folder... Click to expand... It just seemed more Windows. Regards Roger Upvote 0
eurojam said: But why don't you use a webview in your b4j app. It is also available in b4j, then you can leave your html file in the asset folder... Click to expand... It just seemed more Windows. Regards Roger