Integer.parseInt("123");
Tags:
Converting a string to an integer (Android)
Android: converting String to int