Re: [android-developers] Re: Transfer file between phone

2009-11-10 Thread Michael Budas
Hey, sorry to ask what is probably an obvious question but how on an android phone can you get the ip of the phone using java. On Tue, Nov 10, 2009 at 12:36 AM, Jason Proctor jason.android.li...@gmail.com wrote: what is chucking of data? do you mean chunking? not sure what you mean. the

[android-developers] Re: Transfer file between phone

2009-11-09 Thread Roman ( T-Mobile USA)
You can write a ftp like client/server application. Use TCP socket communication for the file transfer application. If you are in the same network you have not to worry about too much. If you try to do a file transfer on cellular things get more complicated. Let me know what you exactly are

[android-developers] Re: Transfer file between phone

2009-11-09 Thread Abhi
Hi, I am trying to do a similar thing but not between two phones. I am trying to accomplish wireless printing to my home wireless printer. Could you please guide me through to the initial steps? Thanks, Abhi On Nov 9, 1:50 pm, Roman ( T-Mobile USA) roman.baumgaert...@t- mobile.com wrote: You

[android-developers] Re: Transfer file between phone

2009-11-09 Thread Abhi
Hi Romain, To add to my above note, the preferred wireless connection would be Wi- Fi and not Bluetooth. Is there a way to find out what devices are connected to your WLAN? Like how we do a scan for Wireless Access Points. Is there a way by which these Wireless devices can share MAC addresses to

Re: [android-developers] Re: Transfer file between phone

2009-11-09 Thread Michael Budas
Roman, Thanks for the response. What I am trying to do is, write a program be able to send a file of any type (but probably an mp3) from one android phone to another android phone. The two phone will only be a few meters apart if that. Bluetooth was not working very well I was just getting a lot

Re: [android-developers] Re: Transfer file between phone

2009-11-09 Thread Jason Proctor
you could broadcast on a known port number to find each other, then once you've done that, use HTTP GET/PUT on another known port. HTTP servers are pretty easy to write, and there is a client in the Android SDK. Roman, Thanks for the response. What I am trying to do is, write a program be

Re: [android-developers] Re: Transfer file between phone

2009-11-09 Thread Michael Budas
Thanks, I have written an http server and client in c before. Would I have to account for chucking etc if i wrote a server on an android. Mike On Mon, Nov 9, 2009 at 11:47 PM, Jason Proctor jason.android.li...@gmail.com wrote: you could broadcast on a known port number to find each other,

[android-developers] Re: Transfer file between phone

2009-11-09 Thread Roman ( T-Mobile USA)
As Jason suggested you can write a simple protocol which finds out about the clients within your wireless LAN. Something like + clients which are interested to be part of the file transfer within your WLAN are listening to the LAN broadcast ip address + sender sends out a request to all clients

Re: [android-developers] Re: Transfer file between phone

2009-11-09 Thread Michael Budas
Thanks guys you have been a big help. One last question if you use the HTTPClient for android do you have to deal with problems such as chucking of data. On Tue, Nov 10, 2009 at 12:15 AM, Roman ( T-Mobile USA) roman.baumgaert...@t-mobile.com wrote: As Jason suggested you can write a simple

Re: [android-developers] Re: Transfer file between phone

2009-11-09 Thread Jason Proctor
what is chucking of data? do you mean chunking? not sure what you mean. the included Apache HTTP client works all right, but i had some problems syncing cookies with WebKit, so i ended up rolling my own HTTP for Android. never looked back... Thanks guys you have been a big help. One last

Re: [android-developers] Re: Transfer file between phone

2009-11-09 Thread Michael Budas
Yeah sorry I mean chunking but thanks that is a good help On Tue, Nov 10, 2009 at 12:36 AM, Jason Proctor jason.android.li...@gmail.com wrote: what is chucking of data? do you mean chunking? not sure what you mean. the included Apache HTTP client works all right, but i had some problems