Cleanup
authorDaniel G <giri@nwrk.biz>
Sat, 26 Jan 2019 23:37:26 +0000 (00:37 +0100)
committerDaniel G <giri@nwrk.biz>
Sat, 26 Jan 2019 23:37:26 +0000 (00:37 +0100)
_template/src/android-src/.gitignore [new file with mode: 0644]
_template/src/android-src/AndroidManifest.xml
_template/src/android-src/java/MainActivity.java
_template/src/android-src/res/values/strings.xml

diff --git a/_template/src/android-src/.gitignore b/_template/src/android-src/.gitignore
new file mode 100644 (file)
index 0000000..c3af857
--- /dev/null
@@ -0,0 +1 @@
+lib/
index 89c25c7..4f011e7 100644 (file)
@@ -1,6 +1,6 @@
 <manifest
     xmlns:android="http://schemas.android.com/apk/res/android"
-    package="com.giri.template">
+    package="com.giri._template">
   <application
       android:label="@string/app_name">
     <activity
index 366135e..3ff2943 100644 (file)
@@ -1,25 +1,16 @@
-package com.giri.template;
+package com.giri._template;
 
 import android.app.Activity;
 import android.os.Bundle;
-import android.widget.TextView;
-
 
 public class MainActivity extends Activity {
-  
   @Override
     protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
-       setContentView(R.layout.activity_main);
-        TextView tv = (TextView)findViewById(R.id.hello_textview);
-        tv.setText(stringFromJNI() );
-        //tv.setText("LOLOLOLO");
+       main();
     }
-
-
-    public native String  stringFromJNI();
-
+    public native int  main();
     static {
-        System.loadLibrary("test");
+       System.loadLibrary("_template");
     }
 }
\ No newline at end of file
index 148b866..8af8760 100644 (file)
@@ -1,4 +1,3 @@
 <resources>
-  <string name="app_name">Hello World</string>
-  <string name="hello_world">Hello world!</string>
+  <string name="app_name">_template</string>
 </resources>
\ No newline at end of file