[fpc-devel] Android native application with local webserver
Dariusz Mazur
darekm at emadar.com
Thu Apr 14 10:36:34 CEST 2011
W dniu 2011-04-14 09:38, Michael Schnell pisze:
> On 04/13/2011 11:11 PM, darekm at emadar.com wrote:
>> Hello
>> I finish first stage to move my webapp as native Android application.
>> Its consists one java file with declaration webWiew, and all rest,
>> written
>> in FPC, is build as library. Of course start is thought jni, but after
>> that http server (based on Synapse) is started, and build in browser can
>> play with them.
>
> Sounds great.
>
> So your way to overcome the native-code <-> user interface barrier on
> Android is to make the apllication a web server and access it via the
> browser ?
>
yes,
this is the same application as for linux or windows
> I understand the executable has a built-in web server, so it is _not_
> a CGI. Correct ?
>
yes
> Did you already succeed in managing the usual obstacles of this:
> creating timers,
yes
> notifying the main thread from worker threads,
yes
> doing application initiated "active" user notifications on the web-page ?
>
I'm not sure I understand
when I need this, web page (by Javascript) sequentially ask server
--
Darek
More information about the fpc-devel
mailing list