JNI Lab

Create a new Android Application

Add C++ support

build a simple library to handle memory buffer:

  • int create(int size) – returns handle to the buffer
  • int setval(int handle,int pos,int val)
  • int getval(int handle,int pos)

Add a simple activity to test your library