-
-
Notifications
You must be signed in to change notification settings - Fork 695
Testing and working examples
To test Android Upload Service, you have the following choices:
- Use your own server (which handles one or more of the supported upload types)
- Use one of the server implementations provided in the examples (read below)
- Use the excellent http://www.posttestserver.com/ (bear in mind that the data you post there is public!) for HTTP Multipart requests
My advice:
When dealing with network app debugging, Wireshark is your best friend to find where the real problem is. If you are not familiar with it, I suggest you to learn it, as it will have a positive impact your career as a network programmer. Top 10 reasons to learn Wireshark.
In the examples folder you will find:
-
A simple Android application that uses this library. It's a proof of concept. You can do much more with the library to best suit your specific scenario. Check JavaDocs to discover all the features.
-
Demo servers which handle uploads:
-
node.js (HTTP Multipart and Binary). This is the server implementation used in development, as it's the most easy to get up and running in a matter of minutes, it's flexible and it's possible to make rapid changes when needed. You need to have node.js and npm installed. Refer to this guide. To run the server, open a terminal, check out the project sources, navigate to
examples/server-nodejs
folder and launch the server:git clone https://github.com/gotev/android-upload-service.git cd android-upload-service/examples/server-nodejs/ npm install npm start
Follow the instructions and the output that you will get in the console.
-
PHP (HTTP Multipart only). You need a running web server (e.g. Apache + PHP) in which to put the script. To get up and running in minutes you can use a solution like XAMPP (supports Windows, OS X and Linux).
-