This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Resolution of the Monitor  RSS feed

 
Pratik Khetia
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I need to know how do I find the resolution of the end-user's monitor. Is there any system properties for that ??

thanks in advance
Pratik
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you're talking about having a browser connect (via HTTP) to your socket listener and you want to find some way to detect their resolution from this, as far as I am aware, the resolution is not a property of HTTP but can be made available by the browser.
In other words, I'm not sure you can simply parse the HTTP data and find the resolution since it doesn't exist there. You can send a HTML page with javascript, the javascript can get the browser info and then send it back to the server side.
The best reference I could find is here
Dave.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!