I want to write the application which will transfer file from android (nexus1) to some other server by using GPRS.which protocol should i use and how to implement that?
HTTP. It's the most reliable protocol on a mobile device. There are plenty of libraries (including built into Android) that will aid you in that, and I'm sure you can find some good tutorials on the net.
Related
I need a way to sync files (mainly photos) to my own server. Is for be used from iOS/Android devices and desktop clientes on OSX/Windows/Linux. The most obvious way is to use sftp and a lot of custom logic, but exist a better way?
I want to develop an App which is just like snap chat,to send video files to friend.Is there any third party API to do this.What are the possible ways?
One way is using Sockets. You could basicly send information how many bytes the file has and then transfer it to other Socket where you will read it. You should take a look at this question.
Edit:
In this solution you don't need any third party, it is java api.
You can use sockets but you can also use the PubNut API if you want focus in your app and leave the networking to a third party.
I hope this help you.
Socket is good for transferring files, but i think you cannot transfer large files. And your application will allow lots of unwanted/unauthorized video being transferred between users.
You need to learn about XMPP protocol and Open Fire Server, which are widely used by applications like WhatsApp (not sure what they currently using).
This may help you i think...
Try: Here is the example link to transfer files usind asmack and openfire server http://harryjoy.me/2012/08/18/file-transfer-in-android-with-asmack-and-openfire/
On an Android device, I'm trying to list down mp3 file names (list view) , stream/buffer a mp3 file , download the mp3 file available in the cloud.
I was thinking about couple of approaches that I can follow to get this done
Host mp3 files on a server, & probably create a web service which gives me the above functionality and at the client side, I should be consuming the web service. ( Single server for both Web service & hosting mp3 files ).
Host Mp3 files on a server1, Deploy a web service on server2, this way I can easily structure and manage mp3 files.
What is the usual approach that app's like Google Play Music, Saavn ... follow ? If there is any other solutions I can look into, please suggest them.
It would depend on the amount of space your data will occupy, the bandwidth available on your server infrastructure, the kind of speed you need, how fault tolerant you want it to be, the budget you have etc and many more factors.
Generally, I'd suggest you use a single server to host your data and application logic in the beginning. If/when you start getting more users for your service, then you can start thinking about scaling up using a more distributed architecture (like maybe firing up a couple of instances of Amazon S3) etc.
Your client mobile app should be implemented in a way that it doesn't need to know what kind of backend architecture is supporting it so that you can easily change the architecture later without affecting the client side code. Look into RESTful web services for this.
I want to transfer some data (app specific data) from an ios device to the android device (and vice versa) running the same application for respective platform.
I understand the easiest way to achieve this is to have a relay server which will take data from one device and pass it on to the other.
However, i would prefer if this could be achieved on a wifi network (peer to peer) without using any kind of server in between (the way they do in multiplayer games).
I tried gamekit but its supposed to work only on ios devices and cant support android. Tried alljoyn as well but its not available for ios yet.
Anyone who has tried this or has some idea on how to proceed are most welcome with their thoughts....
I don't ever try that.... but may be you can do that using XML file...
so
Make the XML file of data which you want to send...
Send that file using bluetooth or using wi-fi programatically...
On another device you can fetch data from xml file..
and that's how you can make this happen....
I want to get data using serial port via audio jack. I don't have any idea about this.
I found the app square they read the data through port.so does any one know how to get data or is there any projects similar like this.
Romotive, a project that helps you make robots out of smartphones uses the audio jack for data transfer, and I think the software is open source.