アプリでウィジェットのカスタムフォントを設定したい。そのために次のコードを使用しました。
Context context = getBaseContext();
Typeface font = Typeface.createFromAsset(context.getAssets(), "fonts/tahoma.ttf");
Button bt = (Button)findViewById(R.id.txt_username);
bt.setTypeface(font);
しかし、プログラムを実行すると、エミュレーターに「残念ながら、firstTestが停止しました」と表示されます。