Skip to content

luisbebop/hello-jni

Repository files navigation

#mruby + android + JNI = S2

  1. Install android NDK and android SDK
  2. Clone this repository to the same directory of mruby project from github.com/luisbebop/mruby
  3. Enter on mruby dir and rename build_config_android.rb to build_config.rb
  4. make all
  5. Go back to this directory and enter on jni
  6. ndk-build
  7. cd ..
  8. ant debug install
  9. adb logcat

The mruby-print gem implements the method p that prints messages on log output from android. The method inside hello-jni.c is called by HelloJni.java via jni. Inside this method there is an initilization of a mruby runtime and a little ruby code that will print the output on adb logcat from android.

About

mruby + android

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published