Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8427297
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T04:44:53+00:00 2026-06-10T04:44:53+00:00

This code: activity.getWindowManager().getDefaultDisplay().getMetrics(dm); is reporting landscape xdpi = 195.38461 on the new Nexus 7.

  • 0

This code:

activity.getWindowManager().getDefaultDisplay().getMetrics(dm);

is reporting landscape xdpi = 195.38461 on the new Nexus 7. My tape measure says the screen is 1/16″ shy of 6″ wide, and at 1280 pixels, that works out to 215.57894.

And yes, our Android.xml says:

<uses-sdk android:minSdkVersion="16"/>

Is this just a bug, or are we doing something wrong?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T04:44:54+00:00Added an answer on June 10, 2026 at 4:44 am

    From this response from Dianne Hackborn:

    Sorry you just can’t use them. Nothing in the platform makes use of
    them. They need to be set by the manufacturer (there is no way for
    the platform to know what they are), and as of today they are just not
    consistently set correctly across devices, and because nothing in the
    platform relies on them it is easy for devices to have them set
    incorrectly.

    Basically, you can’t rely on what that returns, at all.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I have this code in my main activity to start a new one:
My code to get the screen height dynamically: Display display = ((Activity) getContext()).getWindowManager().getDefaultDisplay(); Point
I add this code in my activity public boolean onKeyDown(int keyCode, KeyEvent event) {
This code $html = file_get_html('http://runkeeper.com/user/'.RUNKEEPER_ID.'/activity/'); $link1 = $html->find('.activityMonth', 0); will return the FIRST (foo,
I have this code for my soundboard, public class soundboardActivity extends Activity { View
I have this code: package com.powergroupbd.timer; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.os.CountDownTimer;
I have onPause in activity and works great. This is code @Override protected void
This is my MyTasteActivity code: package MyTaste; import android.app.Activity; import android.content.Context; import android.os.Bundle; import
Here is my code: chartDialog = new Dialog(item_activity.this); chartDialog.setContentView(R.layout.customlayout); chartDialog.setTitle(Title ); TextView textItemDetailsDialog =
This is my code: Activity: @Override public void onCreate(Bundle savedInstanceState) { ... Intent intent

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.