Without seeing your code and without knowing what exception is being thrown what follows is all guesswork. I take it you are using something like the following?
String fontFamily = "Arial";
Typeface tf = Typeface.Create(fontFamily, Typeface.DEFAULT);
myTextView.setTypeface(tf);
- Have you a null reference to the myTextView?
- Is the font family you want to use actually present?
- What does Typeface.Create() return if the font family isn't available?
Assuming you are using Eclipse; suggest that you run the offending code in the emulator and either single step from a break point and/or wrap the failing code in a try/catch block and log the exception details which will then be available for inspection in logcat.
See
setTypeface[
^]
and
Typeface[
^]