I am trying to write an app that includes an EditText that gets a number from the user and dials it. I am trying to use formatNumber to format it as a phone number but it is giving me an error.
//inputOne is the input from the EditText
inputOne = formatNumber(fieldOne.getText().toString());
It says that formatNumber takes a String as a parameter so I don't understand why I am getting an error.
I also tried using setInputType and I got a similar error (cannot find symbol: variable InputType) even though I imported android.widget.*;
fieldOne = (EditText) findViewById(R.id.input1);
fieldOne.setInputType(InputType.TYPE_CLASS_PHONE);
I know that there is probably a painfully obvious solution but I don't know what it is!