I\'m trying to develop an app that will take a number from the dial pad and call another number instead. But i get a number format exception on the phonenumber i want to call. <
That's because 6768886877 is too big of a number for an int.
6768886877
int
Use a long instead.
long
long checkNumber = 0l; try{ checkNumber = Long.parseLong (phoneNumber); } catch (NumberFormatException e) { e.printStackTrace(); }