CopyPastor

Detecting plagiarism made easy.

Score: 0.9155208459540979; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2014-09-20
by Sandeep Kumar

Original Post

Original - Posted on 2011-03-16
by Mitul Nakum



            
Present in both answers; Present only in the new answer; Present only in the old answer;



DisplayMetrics metrics = new DisplayMetrics(); getWindowManager().getDefaultDisplay().getMetrics(metrics); switch(metrics.densityDpi){ case DisplayMetrics.DENSITY_LOW: break; case DisplayMetrics.DENSITY_MEDIUM: break; case DisplayMetrics.DENSITY_HIGH: break; }
This will work in API lavel 4 or higher.
DisplayMetrics metrics = new DisplayMetrics(); getWindowManager().getDefaultDisplay().getMetrics(metrics);
switch(metrics.densityDpi) { case DisplayMetrics.DENSITY_LOW: break;
case DisplayMetrics.DENSITY_MEDIUM: break;
case DisplayMetrics.DENSITY_HIGH: break; }
This will work on API level 4 and higher.

        
Present in both answers; Present only in the new answer; Present only in the old answer;