April 2013

Snippets, Solutions

Android Get Application Context

When we are inside an Activity, and we need the application context we can use getApplicationContext()  method. But what if we are not inside an Activity and we need the application context? Well, I will explain in this tutorial how you can get the context of the application outside an Activity. You have to create […]

, , , ,
Snippets, Solutions

Set custom font on android – from assets

Among other nice things that Android has, we can also load custom fonts. To do that we need to get a font file with the desired font. There are some sites where you can find open source fonts like this or this.Ok, I assume you downloaded this font file angrybirds-regular.ttf . Step 1: – put the

, , , ,
Scroll to Top