I have some files that I need to copy to a folder once the user has installed my app. I was trying to find a way to transfer the files directly from the application root directory but no luck. I had also seen a suggestion about zipping the files and including the zipped file in my package, then extracting them to the folder. But did not know how to implement either methods.
Another alternative is to download and install the files when the app starts, but didnt want to rely on having to maintain the files on a server or that the user always has internet access since my app can be run offline.
How do I do this with a Phonegap/JQM/Javascript app?
Thanks,
Robert
Related
I wanted to know if/how it's possible to read/write non-app files with Expo. I specifically need to access files that fall outside of the app's directory, such as the downloads folder, images folder, and any other external folder. Expo docs on FileSystem say that it is only able to access app files, and not external files.
I have my businesses apk and apk decompiled files and I would like to add a .so file to my decompiled files in order for a script to run on start. Can someone help me?
I tried looking in the lib folder but I couldn’t find where to add it. Can someone show me where I would put this.
As said on this website on APK Building (summarizing the Android Dev Docs with links for further reading):
The Android Package Manager expects to find native libraries on filepaths inside the APK matching the pattern lib/<abi>/lib<name>.so, where <abi> is the name of the ABI the library was compiled for.
So, if the .so file in question was compiled for the AArch64 instruction set and therefore matches the arm64-v8a ABI, one has to place the file into the directory lib/arm64-v8a. Create the corresponding subfolder at need. The Android Dev Docs thereby provide a list of supported ABIs.
I am wondering if it is possible to install files to a specific directory other than the downloads folder using JavaScript.
For example, if I were downloading a video, it will install to \Videos\ rather than \Downloads.
I am wondering if it is possible to install files to a specific
directory other than the downloads folder using JavaScript.
No. Only the end-user is allowed to specify a download location in the browser other than the default download location. This is a security feature so web-sites and their Javascript cannot put files in locations of their choice on your hard drive (e.g. replace executables, add startup files, etc...).
If I understand your question correctly, the answer is nope, this is not possible!
Ok so locally I have saved a lot of files in a folder, and this web app is just on my computer. It is not on github and I don't want to upload it to github (I don't want it open sourced). So it's just in folders on my computer, and when I run it I open command prompt, go to the folder it's in, and go node server.js.
So, how in the world do I upload all those needed files into openshift hosting so that this web app can finally be online? All they are talking about is doing it via the command prompt, but I mean it is so many files, like all the little images, and all that. Do I really have to type it all manually somehow in the command? Isn't there an easier way to just click "Upload" somewhere and just select the files I need, kind of like uploading images to photobucket or facebook?
I am a beginner at this, I've never uploaded a web app.
Git is not Github.
Github is onlice public service and git is just a protocol.
You need to create local git repository on your local git server and commit your files to it.
There is a simple guide about doing it for openshift.
I am planning to create a responsive website using jquery/backbonejs.
my plan is to create a simple webapp to be used in phonegap (and deployed to android and iPhone via appstore/Google Play) which does only check what resources are on the server (via JSON) and download them all. after downloading them, i would like to jump to the folder having all the downloaded files and start from there.
Since iam not allowed to download files directly into my phonegap app folder, i guess i need to download the files into some kind of document folder used by the app. But the question is, is it possible to redirect from my phonegaps index.html to that other index.html in my documents folder having all the downloaded files. would it work linking to jquery.js and images being in that folder located in js/ or img/ ?
That way i could keep my app up2date, but it loads only if there is something missing or updated on the server.