int to String in Android

I get the id of resource like so:

int test = (context.getResourceId("raw.testc3")); 

I want to get it's id and put it into a string. How can I do this? .toString does not work.


String testString = Integer.toString(test);

Or you can use Use

String.valueOf()

eg.

int test=5;
String testString = String.valueOf(test);