Are you created a folder called fonts
in assets or directly placed in assets
folder??if folder not created create a folder and place your font file there I think that is the mistake..In your example he is not created any fonts
folder he is directly accessing but you are accessing from fonts folder..
If not fonts folder then change this line to.
Typeface font = Typeface.createFromAsset(getAssets(), "fonts/amal.TTF");
like this..
Typeface font = Typeface.createFromAsset(getAssets(), "amal.TTF");