I have project to open PDF file in my Android app.
Using below codes always give me error “Web page not available” ?
[lua]local path = system.pathForFile( “flyer_1.pdf”, system.DocumentsDirectory )
local target = string.gsub(path,“flyer_1.pdf”,"")
print(target)
local webView = native.newWebView( 0, 0, 320, 480, webListener )
webView:request( “flyer_1.pdf” , target )[/lua]
Can someone help to find out how to get real path in Android Device for reading PDF file or other solutions.
Thank you in advanced.
. [import]uid: 100448 topic_id: 32836 reply_id: 332836[/import]