Embedding a Web server is not particularly hard. There are a handful
of Java-based Web servers, open source, that you can bake into an
Android project. I experimented with NanoHTTPD once, back in late
2008, and it worked fine (within the limits of NanoHTTPD itself, which
isn't a terribly sophisticated Web server).

However, you will *also* have to bake your Web app code into the same
Android project. It probably won't be a servlet and definitely won't
be a WAR. This too is not particularly hard, just more clunky than you
are perhaps used to.

On Mon, Jul 4, 2011 at 5:25 AM, Aravind <[email protected]> wrote:
> Hi Mark,
>
> We are running endroid on embedded platform(imx 51bbg board) which is
> connected to Wifi hotspot. Our intention is to run REST web service on
> that board.
>
> I have succeeded in running REST client in Android and RESt server in
> my local PC. I used Jersey jar to obtain the REST server which was
> running on my local PC. I deployed my REST server in Apache Tomcat.
>
> Now my job is to run REST server on Android embedded device(imx
> 51bbg). So several other people can access my server which is running
> on the board.
>
> Can you suggest a good approach to do this task.
>
> --
> 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
>



-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training in London: http://bit.ly/smand1, http://bit.ly/smand2

-- 
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