Enabled hardware acceleration
Prevented handler leaks
Added showToast function
Create SharedPreferences instance