Manufacturer provided DPI vs ES Task Manager displayed DPI
I am a web developer and I am looking for an android phone below Rs. 10,000 for my development purpose which should have 360x640 viewport size.
I don't find any phone manufacturers specifying viewport size in specifications. So, I decided to calculate viewport size with manufacturer provided information like screen resolution and dpi.
I have a Samsung J7 Max android phone. I used this phone to find a method to calculate viewport size.
Below is the example phone specification:
Model: Samsung J7 Max
Screen Resolution: 1080x1920
DPI or PPI: 386
Refer this site for full specification: https://www.gsmarena.com/samsung_galaxy_j7_max-8684.php
I Googled and found below formula to calculate the viewport size.
dp = px / (dpi / 160)
This is how my calculation was,
Width:
dp = 1080 / (386 / 160)
dp = 448
Height:
dp = 1920 / (386 / 160)
dp = 796
So, the viewport size would be 448x796.
Now I opened http://whatismyscreenresolution.net/ in my mobile browser to check the viewport size. And it returned 412x732.
??????
Calculated viewport size: 448x796
Browser viewport size: 412x732
The calculated viewport size is different from the viewport size displayed in the browser.
So I went back to my calculation and checked every number. But I couldn't spot out what was wrong.
I installed ES Task manager app in my phone to verify dpi. Surprisingly it showed 420dpi, where 386dpi was in phone specification.
Now I performed the same calculation with dpi as 420(ES Task manager displayed dpi value).
Width:
dp = 1080 / (420 / 160)
dp = 412
Height:
dp = 1920 / (420 / 160)
dp = 732
Now calculated viewport size matched the browser(412x732).
Now my question is,
- What is Manufacturer provided dpi value(386) and ES Task manager displayed dpi value(420)?
- How to come up with a number 420 from the manufacturer provided information?! so that I can match the browser viewport size?!
Thanks a lot!
android browser viewport dpi
add a comment |
I am a web developer and I am looking for an android phone below Rs. 10,000 for my development purpose which should have 360x640 viewport size.
I don't find any phone manufacturers specifying viewport size in specifications. So, I decided to calculate viewport size with manufacturer provided information like screen resolution and dpi.
I have a Samsung J7 Max android phone. I used this phone to find a method to calculate viewport size.
Below is the example phone specification:
Model: Samsung J7 Max
Screen Resolution: 1080x1920
DPI or PPI: 386
Refer this site for full specification: https://www.gsmarena.com/samsung_galaxy_j7_max-8684.php
I Googled and found below formula to calculate the viewport size.
dp = px / (dpi / 160)
This is how my calculation was,
Width:
dp = 1080 / (386 / 160)
dp = 448
Height:
dp = 1920 / (386 / 160)
dp = 796
So, the viewport size would be 448x796.
Now I opened http://whatismyscreenresolution.net/ in my mobile browser to check the viewport size. And it returned 412x732.
??????
Calculated viewport size: 448x796
Browser viewport size: 412x732
The calculated viewport size is different from the viewport size displayed in the browser.
So I went back to my calculation and checked every number. But I couldn't spot out what was wrong.
I installed ES Task manager app in my phone to verify dpi. Surprisingly it showed 420dpi, where 386dpi was in phone specification.
Now I performed the same calculation with dpi as 420(ES Task manager displayed dpi value).
Width:
dp = 1080 / (420 / 160)
dp = 412
Height:
dp = 1920 / (420 / 160)
dp = 732
Now calculated viewport size matched the browser(412x732).
Now my question is,
- What is Manufacturer provided dpi value(386) and ES Task manager displayed dpi value(420)?
- How to come up with a number 420 from the manufacturer provided information?! so that I can match the browser viewport size?!
Thanks a lot!
android browser viewport dpi
add a comment |
I am a web developer and I am looking for an android phone below Rs. 10,000 for my development purpose which should have 360x640 viewport size.
I don't find any phone manufacturers specifying viewport size in specifications. So, I decided to calculate viewport size with manufacturer provided information like screen resolution and dpi.
I have a Samsung J7 Max android phone. I used this phone to find a method to calculate viewport size.
Below is the example phone specification:
Model: Samsung J7 Max
Screen Resolution: 1080x1920
DPI or PPI: 386
Refer this site for full specification: https://www.gsmarena.com/samsung_galaxy_j7_max-8684.php
I Googled and found below formula to calculate the viewport size.
dp = px / (dpi / 160)
This is how my calculation was,
Width:
dp = 1080 / (386 / 160)
dp = 448
Height:
dp = 1920 / (386 / 160)
dp = 796
So, the viewport size would be 448x796.
Now I opened http://whatismyscreenresolution.net/ in my mobile browser to check the viewport size. And it returned 412x732.
??????
Calculated viewport size: 448x796
Browser viewport size: 412x732
The calculated viewport size is different from the viewport size displayed in the browser.
So I went back to my calculation and checked every number. But I couldn't spot out what was wrong.
I installed ES Task manager app in my phone to verify dpi. Surprisingly it showed 420dpi, where 386dpi was in phone specification.
Now I performed the same calculation with dpi as 420(ES Task manager displayed dpi value).
Width:
dp = 1080 / (420 / 160)
dp = 412
Height:
dp = 1920 / (420 / 160)
dp = 732
Now calculated viewport size matched the browser(412x732).
Now my question is,
- What is Manufacturer provided dpi value(386) and ES Task manager displayed dpi value(420)?
- How to come up with a number 420 from the manufacturer provided information?! so that I can match the browser viewport size?!
Thanks a lot!
android browser viewport dpi
I am a web developer and I am looking for an android phone below Rs. 10,000 for my development purpose which should have 360x640 viewport size.
I don't find any phone manufacturers specifying viewport size in specifications. So, I decided to calculate viewport size with manufacturer provided information like screen resolution and dpi.
I have a Samsung J7 Max android phone. I used this phone to find a method to calculate viewport size.
Below is the example phone specification:
Model: Samsung J7 Max
Screen Resolution: 1080x1920
DPI or PPI: 386
Refer this site for full specification: https://www.gsmarena.com/samsung_galaxy_j7_max-8684.php
I Googled and found below formula to calculate the viewport size.
dp = px / (dpi / 160)
This is how my calculation was,
Width:
dp = 1080 / (386 / 160)
dp = 448
Height:
dp = 1920 / (386 / 160)
dp = 796
So, the viewport size would be 448x796.
Now I opened http://whatismyscreenresolution.net/ in my mobile browser to check the viewport size. And it returned 412x732.
??????
Calculated viewport size: 448x796
Browser viewport size: 412x732
The calculated viewport size is different from the viewport size displayed in the browser.
So I went back to my calculation and checked every number. But I couldn't spot out what was wrong.
I installed ES Task manager app in my phone to verify dpi. Surprisingly it showed 420dpi, where 386dpi was in phone specification.
Now I performed the same calculation with dpi as 420(ES Task manager displayed dpi value).
Width:
dp = 1080 / (420 / 160)
dp = 412
Height:
dp = 1920 / (420 / 160)
dp = 732
Now calculated viewport size matched the browser(412x732).
Now my question is,
- What is Manufacturer provided dpi value(386) and ES Task manager displayed dpi value(420)?
- How to come up with a number 420 from the manufacturer provided information?! so that I can match the browser viewport size?!
Thanks a lot!
android browser viewport dpi
android browser viewport dpi
asked Nov 15 '18 at 3:57
Jeffrin Manova PrabaharJeffrin Manova Prabahar
11
11
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53312228%2fmanufacturer-provided-dpi-vs-es-task-manager-displayed-dpi%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53312228%2fmanufacturer-provided-dpi-vs-es-task-manager-displayed-dpi%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown