On Sat, Jun 19, 2010 at 8:31 AM, Alessandro Pellizzari <a...@amiran.it> wrote: > before I start banging my head against the wall, I would like to know if > the software I have in mind is technically possible on Android. > > I would like to code a local tcp/ip server, listening on an high port > (say... 8080 or 12345) only on the localhost interface (127.0.0.1). > Is it possibile?
Sure. In this area, Android works pretty similar to standard Java. > And also, is it possible to start my "service provider" automatically > whenever some app tries to connect to that port (via a notification, for > example)? There is no equivalent of inetd or xinetd for Android SDK applications, if you are thinking of something like those Linux daemons. > Or must I start my server everytime I need it, manually? For some definition of "manually", yes. The service will need to be running to serve data over your port. Bear in mind that there is probably a better solution for whatever business problem you are trying to solve with a localhost-only TCP server. -- Mark Murphy CommonsWare mmur...@commonsware.com http://commonsware.com -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en