1 import proguard.annotation.*; 2 3 11 @KeepApplication 12 public class NativeCallBack 13 { 14 20 public native int computeAnswer(); 21 22 23 29 @Keep 30 public int getAnswer() 31 { 32 return 42; 33 } 34 35 36 public static void main(String [] args) 37 { 38 int answer = new NativeCallBack().computeAnswer(); 39 40 System.out.println("The answer is " + answer); 41 } 42 } 43 | Popular Tags |