Javascript app in Android
<p>I am new to Android programming, and looking for some general knowledge. I am considering writing logic of my application in javascript so that the same code could be executed in a webapp and in a desktop application. Would it be possible to also have it working on Android? I know that:</p>

<ul>
<li>SL4A is marked as alpha-quality, and user would need to install it to make such an app work. Still it provides access to Android API. SL4A scripts also cannot go to Android Market, as far as I know.</li>
<li>A simple webapp doesn't have access to most Android API.</li>
</ul>

<p>Would it be possible to write a simple Java app that would embed an HTML widget with javascript code and provide some wrapper to access necessary API?</p>

<p>I am not looking for a fully portable thing--I intend to adapt UI to each environment manually. I just would like to have the internal logic common to all ports.</p>
