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.
Related
I have developed a mobile app which uses the web view from the Codeigniter website. The app is working fine except for the file download section.
I did the usual anchor tag download option. But it didn't work. Next, I tried using google docs. I could view the file ( pdf ) but still am only able to download it to google drive rather than save it to my phone. Sending emails is not an option. Is there any other solution to this? I really appreciate any help you can provide.
I have created a private apk file for an android application that I want to keep private for certain users only. I do not want to make it available on Play store.
I uploaded the apk file onto a remote Apache web server running on a Linux machine.
There is a web page with a link to the apk file so that when a user clicks on the link, the apk file can be downloaded.
The user then simply installs the application onto their Android devices.
When I tested it on localhost, the download works fine.
But when I try to download it from the hosted server (using chrome web browser) I get Failed - Forbidden.
I did some research I understood that Google chrome denies the download of apk file for security reasons. I even turned off the security settings in the browser, but to no avail.
See attached image
Any help would be most welcome!
I am using retrofit library in my android app. I read multiple tutorial about upload and download files and working with json data. most of these tutorial have worked with image for simplicity and there is some API for working with that like imagur, but I want to work with audio files in my app and I don not know any server or API for testing upload and download mp3 files. can anybody introduce me some of that?
update :
How can I make my own computer for testing? is this possible?
There are so many Linux servers and which are free. Try https://www.hostinger.in/
for free domains and 1gb disk size.
Furthermore, if you want to test on your own computer try wamp,xampp or IIS (for .NET) and publish your code over there.
I got a website hosted by Parse.com and it has its own tool to upload files.
I want to know if is there any way for me to send files from android app. I have my data shared with my android app, and it would be great if I can send images to the web site.
You should use the Android-Library of Parse.com.
It makes it very easy for you to connect your Android App to the Parse backend.
If you look at the docs, there is a section about uploading and downloading files.
https://www.parse.com/docs/android_guide#files
I've never tried it but I think this will allow you to upload your images to the backend.
There is also a JavaScript library to connect your website (client side) to the parse backend.
Again, if you look at the docs, there is a section about uploading and downloading files.
https://www.parse.com/docs/js_guide#files
You should be able to use the JavaScript library to access the previously uploaded app-images.
The basic flow would look like this:
Android App -> Android Parse Library -> Parse Back End
Parse Back End -> JavaScript Parse Library -> Website
Keep in mind: This is all hypothetical since I haven't tried it.
You can use Es explorer https://play.google.com/store/apps/details?id=com.estrongs.android.pop Install this application and then select network option in that select ftp . Then connect to your ftp server using your credential. then copy paste thats it
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.