Well, the problem with this approach is that you don't know the
address of the other phone (and usually it's behind a router, etc...).
 I've only played this trick in toy apps, but if you want to see a
reference google "file transfer socket java code."  (I got a bunch of
good examples from this...)

If you want to go the web service transfer route, you'll have to have
access to a web service.  and then investigate that route.

(It seems like people ask about this a lot, maybe somebody could make
money off of creating a web service and then charging a modest
licensing fee?)

Kris

On Thu, Oct 20, 2011 at 8:15 AM, Perumss Naren <[email protected]> wrote:
> HI Kris,
>
>         You have any sample code for client server communication for file
> sharing , or send link it will useful for me
>
>          thanks for your reply!
>
> On Thu, Oct 20, 2011 at 4:24 PM, Kristopher Micinski
> <[email protected]> wrote:
>>
>> You can't do this, if you're thinking of a BT push using adhoc mode
>> (Android has no ad-hoc APIs.)
>>
>> What you can do is run a server on one phone, then push to the server
>> on the other phone from a client...  But still, you probably shouldn't
>> do this, as it's likely going to eat up battery..  So the last idea is
>> to use some web service to transfer your files.
>>
>> Kris
>>
>> On Thu, Oct 20, 2011 at 2:06 AM, Perumss Naren <[email protected]> wrote:
>> > HI all,
>> >
>> >           how to transfer file from android device to another android
>> > device
>> > using wifi please provide some link.
>> >           Thanks in Advance!
>> >
>> > --
>> > Regards,
>> >
>> > Perumal.N
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups "Android Developers" group.
>> > To post to this group, send email to [email protected]
>> > To unsubscribe from this group, send email to
>> > [email protected]
>> > For more options, visit this group at
>> > http://groups.google.com/group/android-developers?hl=en
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to [email protected]
>> To unsubscribe from this group, send email to
>> [email protected]
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
> --
> Regards,
>
> Perumal.N
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to