Feb 19
Got some server on your phone?
Android, Java, Server with tags: jetty Add comments
Hmm, what if you could run a server on your mobile? Jetty, the lightweight Java HTTP server has been ported to Android as i-jetty.
You can use Jetty to run server logic and Servlets right on the phone itself.
For example, you could take a Web based application and deploy it on the phone, and have the phone’s browser talk locally. Jetty also supports Comet style Web development, so your little Web browser based application could get some PUSH.
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="org.mortbay.ijetty"> <application android:icon="@drawable/icon"> <activity class=".IJetty" android:label="@string/app_name"> <intent-filter> <action android:value="android.intent.action.MAIN" /> <category android:value="android.intent.category.LAUNCHER" /> </intent-filter> </activity> </application> </manifest>
February 19th, 2008 at 12:52 pm
there’s no download link for the project at: http://code.google.com/p/i-jetty/
where can we download and give it a try?
thanks
February 19th, 2008 at 1:09 pm
I’m sorry, I see the stuff in SVN
February 20th, 2008 at 3:45 pm
I’ve updated i-jetty to the latest Android toolkit (m5) and now have a much more flexible structure in place to move forward. Link to my blog entry is here if you’re interested:
http://blogs.webtide.com/janb/2008/02/20/1203499853543.html
At the moment, we’re at the proof-of-concept stage, where we have the Jetty structure in place, the connectors running and serving a Jetty Handler (which like a super lightweight servlet). Next goal is to serve an arbitrary webapp. Stay tuned!
cheers
Jan
February 23rd, 2008 at 11:42 pm
For S60, there is a solution as well, check out http://mymobilesite.net