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 < [email protected]> 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 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 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) > ><<mailto:[email protected]>[email protected]> > >wrote: > > > >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 which are interested in > >receiving the file > >+ all clients interested are responding back with their IP address > >+ start your file transfer (ftp or http post) using the client IP > >address (if you have multiple clients you can loop through the list of > >clients) > > > >Note: you could also use the broadcast IP (more efficient) address for > >the file transfer but then everyone on the wireless LAN could receive > >the file. > > > > > >-- > >Roman Baumgaertner > >Sr. SW Engineer-OSDC > >·T· · ·Mobile· stick together > >The views, opinions and statements in this email are those of the > >author solely in their individual capacity, and do not necessarily > >represent those of T-Mobile USA, Inc. > > > >On Nov 9, 3:47 pm, Jason Proctor > ><<mailto:[email protected]>[email protected]> > >wrote: > > > > > 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 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 of problems. Both phone are using > >> >android 1.5 do you have any tips on setting ftp > >> >client/server and android. > >> > >> >Thanks and Regards > >> >Mike > >> > >> >On Mon, Nov 9, 2009 at 8:47 PM, Abhi > > > > > ><<mailto:<mailto:[email protected]> > [email protected]><mailto:[email protected]> > [email protected]> > >> >wrote: > >> > >> >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 identify each > >> >other? > >> > >> >Thanks, > >> > >> >Abhi > >> > >> >On Nov 9, 1:59 pm, Abhi > >> ><<mailto:<mailto:[email protected]> > [email protected]><mailto:[email protected]> > [email protected]> > >> >wrote: > >> >> 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- > >> > >> >> > >> <<http://mobile.com>http://mobile.com><http://mobile.com>mobile.com> > >>wrote: > >> >> > 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 trying to > accomplish. > >> > >> >> > -- > >> >> > Roman Baumgaertner > >> >> > Sr. SW Engineer-OSDC > >> >> > ·T· · ·Mobile· stick together > > > >> > The views, opinions and statements in this email are those of > the > >> >> > author solely in their individual capacity, and do not > necessarily > >> >> > represent those of T-Mobile USA, Inc. > >> > >> >> > On Nov 8, 10:00 am, Mike88 > >> >><<mailto:<mailto:[email protected]>[email protected]><mailto: > [email protected]>[email protected]> > >> >>wrote: > >> > >> >> > > Hello, > >> > >> >> > > Can some give me advice on what I > >>could use to write code to transfer > >> >> > > a file from one phone to another.- Hide quoted text - > >> > >> > > > - Show quoted text -- Hide quoted text - > >> > >> >> - Show quoted text - > >> > >> >-- > >> >You received this message because you are subscribed to the Google > >> >Groups "Android Developers" group. > >> >To post to this group, send email to > >> ><mailto:<mailto:[email protected]> > [email protected]><mailto: > [email protected]>[email protected] > >> >To unsubscribe from this group, send email to > >> > >> ><mailto:<mailto:android-developers%[email protected]<android-developers%[email protected]> > >android-developers%[email protected]<android-developers%[email protected]> > ><mailto:android-developers%[email protected]<android-developers%[email protected]> > >[email protected]<android-developers%[email protected]> > >> >For more options, visit this group at > >> ><<http://groups.google.com/group/android-developers?hl=en> > http://groups.google.com/group/android-developers?hl=en>< > http://groups.google.com/group/android-developers?hl=en> > 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 > >><mailto:[email protected]> > [email protected] > >> >To unsubscribe from this group, send email to > >> > >> ><mailto:android-developers%[email protected]<android-developers%[email protected]> > >[email protected]<android-developers%[email protected]> > >> >For more options, visit this group at > >> ><<http://groups.google.com/group/android-developers?hl=en> > http://groups.google.com/group/android-developers?hl=en>< > http://groups.google.com/group/android-developers?hl=en> > http://groups.google.com/group/android-developers?hl=en > >> > >> -- > >> jason.vp.engineering.particle > > > >-- > >You received this message because you are subscribed to the Google > >Groups "Android Developers" group. > >To post to this group, send email to > ><mailto:[email protected]> > [email protected] > >To unsubscribe from this group, send email to > ><mailto:android-developers%[email protected]<android-developers%[email protected]> > >[email protected]<android-developers%[email protected]> > >For more options, visit this group at > ><http://groups.google.com/group/android-developers?hl=en> > 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]<android-developers%[email protected]> > >For more options, visit this group at > ><http://groups.google.com/group/android-developers?hl=en> > http://groups.google.com/group/android-developers?hl=en > > > -- > jason.vp.engineering.particle > > -- > 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]<android-developers%[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

