You cannot call a method that does not exists. The text variable is of type String, and it does not contain that method.
String | Android Developers
Type: Posts; User: copeg
You cannot call a method that does not exists. The text variable is of type String, and it does not contain that method.
String | Android Developers
For future reference, please wrap your codes in the code tags.
See the API for String - does it contain a setTypeface method with those parameters?