Thanks Miguel, Can a service launch an activity? I need to run something periodically using JavaScript (say every 4 hours). Porting Rhino probably won't work for me because I use a lot of large Strings, and putting that in the Java heap will soon fragment it very bad ...
On Oct 9, 3:26 am, Miguel Paraz <mpa...@gmail.com> wrote: > Hi, > I looked into this myself... > > On Oct 9, 3:00 pm, "tomei.ninge...@gmail.com" > > <tomei.ninge...@gmail.com> wrote: > > I want to run part of my app logic in a background service. However, > > much of the app uses JavaScript. Currently I run the JavaScript inside > > a WebView. > > > Is it possible to have an invisible WebView while running inside a > > Service? > > No, only only an Activity can have Views. > > > If the answer is no, is there any way to run JavaScript inside a > > Service? > > If it's the JavaScript language, it may be possible to port Rhino to > Android. But, the performance won't be so good because JIT compiling > must be disabled. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---