3

I need to access V8 from my Android Application dierctly. I dont want to use Rhino or J2V8 and I dont want to create a WebView. What is the best way to do that? Is there an API for V8?

konbernu
  • 147
  • 1
  • 4
  • 12
  • Possible duplicate of [Use V8 JavaScript engine to execute JS lib without webview](http://stackoverflow.com/questions/19408245/use-v8-javascript-engine-to-execute-js-lib-without-webview) – smirnoff May 09 '17 at 23:22

1 Answers1

2

You can embed V8 directly in your App, although it will add to your binary size significantly. There is a C++ API for V8 which embedders like Chromium and Node.js use. See the V8 Embedder's Guide to get started.

Superfly
  • 571
  • 3
  • 13