Well, I've tried your code, and a lot of variations of it, and it can't execute fb2 nor png.
I've renamed my fb2 as Fronteras.FB2 (without spaces nor brackets nor numbers), and I've tried this:
Dim i As Intent
i.Initialize(i.ACTION_MAIN, "file///sdcard/Fronteras.FB2")
Try
StartActivity(i)
Catch
ToastMessageShow("Cannot start file.", True)
End Try
and this:
Dim i As Intent
i.Initialize(i.ACTION_MAIN, "file:///sdcard/Fronteras.FB2")
Try
StartActivity(i)
Catch
ToastMessageShow("Cannot start file.", True)
End Try
and this:
Dim i As Intent
i.Initialize(i.ACTION_MAIN, "file://sdcard/Fronteras.FB2")
Try
StartActivity(i)
Catch
ToastMessageShow("Cannot start file.", True)
End Try
and this:
Dim i As Intent
i.Initialize(i.ACTION_MAIN, "file:/sdcard/Fronteras.FB2")
Try
StartActivity(i)
Catch
ToastMessageShow("Cannot start file.", True)
End Try
and this:
Dim i As Intent
i.Initialize(i.ACTION_MAIN, "file:////sdcard//Fronteras.FB2")
Try
StartActivity(i)
Catch
ToastMessageShow("Cannot start file.", True)
End Try
and this:
Dim i As Intent
i.Initialize(i.ACTION_MAIN, "///sdcard/Fronteras.FB2")
Try
StartActivity(i)
Catch
ToastMessageShow("Cannot start file.", True)
End Try
and a lot of combinations with '/' and without it, with 'file:', with 'file', without them... All of them have failed.
Afterwards, I've tried with a png file, named demo.png, with all previous combinations, but it has failed too.
What is wrong with this code? I'm desesperated :SHOCKED::SHOCKED::SHOCKED: because I'm trying to open a fb2 file in android for a lot. I've tried creating reports in pdf, but standard pdf files cannot open external documents (only html links). I've tried to create fb2 files whitch call other fb2 files (it works in my PC), but CoolReader for Android can't still open external fb2 links. I've tried to create html reports, but html can't open external fb2 files... In the few platforms it worked (opening html external files), it opens files as xml code, because there isn't plugins for browsers in order to open fb2 files (as pdf does).
If someone can help me I will be really happy. Thanks in advance and best regards.