I'm using a ContentResolver query to get some data from a database in Android. That's not the issue.
The method returns string representation of integers,
INT TYPE_MAIN = 2
I want to convert that to a string Type_Main
String a = someMagicalMethod(TYPE_MAIN);
System.out.println(a);
Such that the output would be
TYPE_MAIN
I can't use Integer.toString(TYPE_MAIN)
because that would return the value of it which is 2
How can I achieve this?