Hi,
I looked into this myself...

On Oct 9, 3:00 pm, "[email protected]"
<[email protected]> 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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to