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.
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.
I am new to Android development and want to download multiple (infact too many) chunks of a file but downloading all those with code written with my bare hands are not good way.
Is there any good Downloading library for Android Studio ?
The downloading links are not different for chunks.
Such as
https://link.com/path/download_1.chunk
https://link.com/path/download_2.chunk
Any code direction too would be great.
I would use a web browser to download files that are chunked as opposed to Android Studio.
If the question is how to download these files in your app, then I would use either the DownloadManager for downloading large files or use Retrofit for all networking requests.
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 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.