Using emedded files in an APK - Forum

Forum Navigation
You need to log in to create posts and topics.

Using emedded files in an APK

Hello. I'm trying to use some embedded files inside my app. Some are htm other are jpg. It works when the app runs in web browser but it doesnt work in the APK.

I need to use it this way instead of having the code in objects. So I put an iFrame that calls the htm file.

As HTA is enough to put myfile.htm as source, it works. But for Phonegap I have tried that and other options: file:///myfile.htm, also ./myfile.htm and all the combinations. Nothing seems to work.

The same problem with an image. I want to use an embedded image as background. I have tried img/myfile.jpg and ./img/myfile.jpg, and also url('img/myfile.jpg') but none of this kind of addresses work.

Any suggestions? Thanks.

Hi @fmorales take a look at this topic:

Thank you very much @asmat. Even if my problem wasn't explained there, with the example I was able to see that htm files aren't embedded inside the zip, so I have to add them manually. And then works flawless.

 

Thank you!