samedi 27 février 2016

open file using navigateToURL

I'm making an android file browser app designed with as3. I finished designing every thing now I just need a way to open a file (image, video, pdf.. etc). right now I'm using this code:

navigateToURL(new URLRequest(File.desktopDirectory.url + "/" + fileName, "_blank"));

on pc it opens the file in the default web browser but on android device it only opens the file in "google drive" app as a pdf and shows error message that the choosen file is not a pdf file and when disabling "google drive" it does nothing.
can you please tell me whats wrong? or give me a way to open a file?
I know this is a dublicate but none of other solutions worked for me.

Aucun commentaire:

Enregistrer un commentaire