Basically i want to build an executable file with dependency on android libraries, copy it multiple folders on runtime and run within my apk (probably with Runtime.getRuntime().exec(cmd);
?) I've tried that with no luck:
package com.example.hello;
import android.util.Log;
public class Hello {
public static void main(String[] args) {
System.load("/system/lib/libandroid_runtime.so"); // this line didnt help
Log.wtf("hello", "main: hasdsd");
}
}
When i compile it to jar, make a dex out of it and try to run with dalvikvm -cp command on terminal it throws linker error because of android.util.Log usage.
Im using Android Studio but ready to install Eclipse if needed. Thanks