Well, of course, this is possible, you can simply just do the normal
Java socket stuff.  The problem comes with the details of actually
using it and interfacing to it.  Besides the problem of not really
having an easily addressable IP, it's just not clear what's being
asked here.

This idea implemented naively lends itself to a risky "everlasting
service," an antipattern in Android.  That's really the problem to be
avoided here, not a webservice per se.

Instead, it would help if the OP would more fully explain what he
wants to do.  Likely he can use GCM or something of that nature to
communicate between devices, rather than a web service *on* the
device.  (Assuming he's using it for communication between devices..)

Kris

On Wed, Jan 9, 2013 at 2:31 PM, Nobu Games <[email protected]> wrote:
> Well... in fact there are apps out there that run small web-servers on your
> phone, like Samsung's Kies app that allows browsing your phone's contacts
> and media files from your PC's browser. It works on a LAN and I was very
> intrigued by that concept so I prototyped a primitive Android web server a
> while ago. It works actually pretty well and it isn't that complicated to
> implement (depending on how far you want to go with your implementation).
> But if you just want to serve static HTML contents / files, you should be
> able to create an implementation in no time.
>
> However, I'm just responding to this discussion here since I do not fully
> understand what the OP is asking :-(
>
>
> On Wednesday, January 9, 2013 3:41:22 AM UTC-6, tom wrote:
>>
>> Hi,
>>
>> why couldn't create webservice  using android?
>> if that any reason. if you know that reason...please share with me..
>>
>> Thanks,
>> Tom
>
> --
> 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