fork/rules_rust
git clone https://git.julia.blue/fork/rules_rust
4845af6c
cleanup
1package com .example .androidapp ; 2 3import android .app .Activity ; 4import android .os .Bundle ; 5import android .util .Log ; 6import android .widget .TextView ; 7 8public class AndroidMain extends Activity { 9@ Override 10public void onCreate (Bundle savedInstanceState ) { 11super .onCreate (savedInstanceState ); 12setContentView (R .layout .android_main ); 13 14Log .v ("Bazel" ,"Android app launched" ); 15System .loadLibrary ("android_app" );// 'android_app' is the name of the native library in this example 16Log .v ("Bazel" ,"Value from rust: " +JniShim .getValue ()); 17 18final TextView helloTextView = (TextView )findViewById (R .id .text_view ); 19helloTextView .setText ("Value from rust: " +JniShim .getValue ()); 20 } 21}