EF's Blog

Posts Tagged ‘screen

public static int getMetricDPI(Activity myActivityReference)
{

//created by Erwin Fransiscus
//get display DPI
DisplayMetrics metrics = new DisplayMetrics();
myActivityReference.getWindowManager().getDefaultDisplay().getMetrics(metrics);
return metrics.densityDpi;
}

 

it returns integer

I’ve tried several tutorial to create splash screen and most of them does not work.

And somehow i found this indonesian link website and it is work.

http://pratamawijaya.com/programming/programming-membuat-splash-screen-pada-android

so if someone need a working one, you can visit the link.

and this is the  english google-translated link for the website above : http://translate.googleusercontent.com/translate_c?hl=en&rurl=translate.google.com&sl=id&tl=en&twu=1&u=http://pratamawijaya.com/programming/programming-membuat-splash-screen-pada-android&usg=ALkJrhgvoM_ev8pdNZt8ZHcPbcKLH7T8JQ


EF’s Blog

I'm just ordinary people who lived in an extra-ordinary world.

EF's Blog Stats

  • 135,476 hits
June 2017
M T W T F S S
« Jul    
 1234
567891011
12131415161718
19202122232425
2627282930  

Archives