For array just define it globally
--->point 2
After your app starts working you may get white text as if text is behind your current layout. For that use getBaseContext(); instead of getApplicationContext();