You should replace this
Typeface type = Typeface.createFromAsset(activity.getAssets(),
"fonts/Paprika-Regular.ttf");
With
Typeface type = Typeface.createFromAsset(context.getAssets(),
"fonts/Paprika-Regular.ttf");