I tried many times to return a string from java project to an android project But it keeps sending incorrect values as in 2 as it should be 1 here is an example.
Java Project:
boolean somethingboolean = false; if(something.equals("1")){ somethingboolean = true; } public static String getString(){ if(somethingboolean == true){ return "TRUE"; }else{ return "FALSE"; } }
Android project:
System.out.println(JavaProject.getString())
and in the android project it prints "FALSE"
So what should i do? Thanks for all...