Skip to content

Instantly share code, notes, and snippets.

@initishbhatt
Created April 12, 2018 06:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save initishbhatt/74ec291dc6381e424e89f2de743ba443 to your computer and use it in GitHub Desktop.
Save initishbhatt/74ec291dc6381e424e89f2de743ba443 to your computer and use it in GitHub Desktop.
class MainActivity : AppCompatActivity() {
private lateinit var nativeStore: NativeStore
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
nativeStore = NativeStore()
// Example of a call to a native method
sample_text.text = nativeStore.stringFromJNI()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment