// Used to load the 'native-lib' library on application startup.static{
System.loadLibrary("native-lib");}@OverrideprotectedvoidonCreate(Bundle savedInstanceState){super.onCreate(savedInstanceState);setContentView(R.layout.activity_main);// Example of a call to a native method
TextView tv =(TextView)findViewById(R.id.sample_text);int[]iArr ={1,2,5,6,9,8,9};
String []strArr ={"linux","rehat","debian","ubuntu"};
tv.setText(stringFromJNI2(this,"ubuntu"));}/**
* A native method that is implemented by the 'native-lib' native library,
* which is packaged with this application.
*/publicnative String stringFromJNI();publicnative String stringFromJNI1(int[] iArr, String [] strArr);publicnative String stringFromJNI2(Activity iArr, String strArr);publicintgetIndex(){return index;}publicvoidsetIndex(int index){this.index = index;}int index=100;staticvoidshowText(String jniStr){
Log.e("chris",jniStr);}
// Used to load the 'native-lib' library on application startup.static { System.loadLibrary("native-lib");}@Overrideprotected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_m