Friday, May 10, 2024
 Popular · Latest · Hot · Upcoming
164
rated 0 times [  170] [ 6]  / answers: 1 / hits: 24185  / 14 Years ago, thu, december 9, 2010, 12:00:00

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:




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

  • A simple webapp doesn't have access to most Android API.



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?



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.


More From » android

 Answers
27

If you want to use javascript and access the native api then you should try Appcelerator.com. Those people are providing this.


[#94658] Wednesday, December 8, 2010, 14 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
analiseb

Total Points: 252
Total Questions: 96
Total Answers: 106

Location: Singapore
Member since Sat, Jul 25, 2020
4 Years ago
analiseb questions
;