On Fri, Jul 1, 2011 at 7:45 AM, Aravind <[email protected]> wrote:
> I need help in building a web server in android froyo.

Why?

> I used i jetty,
> paw, kws and atjeews web server for android. But i didnt succeed. In
> ijetty i didnt find any way to deploy my webapps(war) file using jetty
> and download my webapp to the device. They have mentioned about using
> the dx tool but i was not able to find any appropriate method.

I doubt that can be made to work.

It is eminently possible to embed a Web server in an Android app, but
you would not be using servlets or WAR files as separately
distributable things. Rather, you would have to teach the Web server
that on certain URL patterns to go call some internal class within the
APK.

> My final aim is to run a Rest based web server and client in Android
> device.

Again, why? If you want to build a Web application that runs natively
on the device, you do not need a Web server -- use
addJavascriptInterface() as does PhoneGap.

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

_Android Programming Tutorials_ Version 3.5 Available!

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