Can't use getAsset() in a Dialog class
<pre><code>public class Class_UniversityDialog extends Dialog {

public Class_UniversityDialog(Context context) {
    super(context);
}

protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.layout_university_info);

    Typeface face = Typeface.createFromAsset(getAssets(), "tahoma.ttf");
    //To Layout Topic persian
    TextView txt_Title = (TextView) findViewById(R.id.lbl_LayoutTopic);
    txt_Title.setTypeface(face);
    String newText = (String) txt_Title.getText().toString();
    txt_Title.setText(PersianReshape.reshape(newText));
}
</code></pre>

<p>}
<br /><br /></p>

<p>In my code eclipse says that getAssets() : " The method getAssets() is undefined for the type Class_UniversityDialog"
<br /></p>

<p>How can I solve this?</p>
