Skip to content

Instantly share code, notes, and snippets.

@initishbhatt

initishbhatt/MainActivity.kt Secret

Created Apr 12, 2018
Embed
What would you like to do?
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