1

I'm new to AllJoyn, I want to develop an application where I can transfer files from windows pc to android phones. how can I achieve this?

asked 2014-04-09 23:15:29 -0700

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Can anybody help me how what should I do to transfer files from windows pc to android phone. I have my own applications from which I need to transfer files from windows machine to android phone.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-04-11 16:36:10 -0700

bspencer gravatar image

There is a sample application that you can use here: https://git.allseenalliance.org/cgit/core/alljoyn.git/tree/alljoyn_core/samples/FileTransfer

You can leverage the C++ code in JNI so you don't have to write a lot of code, or you can duplicate the interface in Java and write the implementation there.

In the above referenced code it chunks the file and send it over a signal into 100k parts since you can only fit 2^17 bytes (131072) in an AllJoyn message. Either the handset or the PC can host the AllJoyn session and once in a session you can do whatever you want via a Signal or BusMethod if you prefer.

edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2014-04-09 23:15:29 -0700

Seen: 131 times

Last updated: Apr 11 '14