I am trying to create an FTP page in AppInventor so I can upload and download files from an Androidmobile device to my web server.
Going through the forums I have read about Appinventor not supporting it but it could be done via 3rd-party application that you can open via ActivityStarter.
Is this true and is this really the only way?
I only ask again because I've read through some outdated posts. If anyone is aware of a certain solution (direct or indirect) your tips and suggestions would be most appreciated!
Thanks!
As already said here, there are these solutions to upload/download files to a web server:
1) how to upload a file
2) how to download a file
Related
I am using Linphone Android for making secure Voip calls with my own Self signed certificates. For security reasons, I want to built my own File sharing Server instead of using Linphone standard Server having a php file url as: https://www.linphone.org:444/lft.php.
My question is how can I make my own Script/server to transfer files and images? I have searched many times on google could not find any solution or lft.php script.
Any help in this regard will be highly appreciated.
Need help.
We have two servers that deploy the website. The website has a link that can download an .apk file to a mobile.
The problem is, when site is access in mobile using android 4.x, it downloads successfully on both server. However, when using android 5 (lollipop), it download successfully in one server but unsuccessful in another.
the mime type for both server is the same (application/vnd.android.packa..). Certificate for both server is ok also (although they have different issuer, which I don't think is an issue)
I also check the properties of the website, and its the same.
Is there are any setting in web server that I need to check or any security setting that makes one server download successfully the apk file while the other does not?
Appreciate any thought on this.
I am new to this forum so please forgive me if I am asking something stupid.
I have a mobile responsive website which is to be ported on mobile devices using PhoneGap. The code of mobile site is on github and I want to download the code from github in order to work in offline mode. This would help in keeping just one version of application on play store which will download content from github if there are any changes on website.
So, is there anyway I can download zip file from github using android APIs?
Thanks for reading.
Regards,
Anjali
This is very much possible. Please see at the link below.
How to download source in ZIP format from GitHub?
You need to use HttpURLConnection in order to download it to the location you want.
Cheers,
Bsengar
The link for the actual zip file is available on GitHub.
It's possible to download a zip file using the HttpURLConnection. You should cache the zip(on SD card for example), and extract it. The code for downloading the zip is shown in this thread:
Android Download Zip to SD card?
I have a cloud storage website and I want to create an Android application for that website.
I tried 2 methods.
First Method
Using Phonegap to open a remote website which handles everything and its built-in PHP so everything works fine. But a Cloud Storage app must allow uploading and downloading. In Phonegap I can upload through the website but can't download directly to local storage. It can only be done locally if my website is in the local www folder. Also in this way API of Phonegap can't be used either. If I download any file the browser opens up, in this case.
Second Method:
I tried to use Phonegap locally and just create an API of my cloud storage website so that locally with the help of jQuery ,Ajax so that I can post data to the remote URL, but that can't be done due to the Same Origin policy. I may receive the JSON data of files and show but can't log the user in and other features. :( Again a problem.
What else can I do? Is there any other method or solution you can provide me regarding these two methods or any alternative method I can use?
Depending on the kinds of data you're talking about there are several alternatives.
You're describing a cloud storage app (I'm assuming like drop box or Google drive right).
Therefore you'll want to write to the file system instead of some kind of database (locally ofc)
I would therefore check out the following api docs;
http://docs.phonegap.com/en/2.1.0/cordova_file_file.md.html#File
Examples are there too.
PS ive had same origin problems in development, but they seem to go away in production, try testing there too.
Am looking for the way to play video inside my android browser locally. There may be two or more video's in a local page (like facebook contains video's).
Can anyone please help me out..
Without actually reading about the specifics of the Android built in browser I would safely say, you can't. Well, if you run a local html file it might work, but if you intend to have an external page from which you can play local videos it shouldn't work. I say shouldn't because in the early days of browsers some of them actually did give you access to the local file system. Javascript for example could use file://, something I used myself for image previewing before upload. But this was a major security concern and all modern browsers prevent this.
The difference is if you run a local file or a file on your own local web server. Since then, your local file system is actually part of the web servers file system and the web server can serve your local files.