Questions tagged [screen]

A screen on a device, such as an iPhone or other smartphone. For questions about GNU Screen (the terminal application for managing multiple windows), use the gnu-screen tag.

A screen on a device, such as an iPhone or another smartphone.

For questions about GNU Screen (the terminal application for managing multiple windows), use the tag.

4773 questions
31
votes
5 answers

jQuery Screen Resolution Height Adjustment

In order to better balance out a page I am working on I would like to find a way to increase the top margin of a DIV depending on the screen resolution. What is my best way to set these dimensions with jQuery or Javascript?
Brad Birdsall
  • 1,753
  • 3
  • 23
  • 27
31
votes
2 answers

"RuntimeException: Performing pause of activity that is not resumed"

(I see a similar question on stackoverflow, but the answer there is not a true answer, and the context of the problem is a bit different too.) "java.lang.RuntimeException: Performing pause of activity that is not resumed" I develop a game…
Thomas Calc
  • 2,994
  • 3
  • 30
  • 56
30
votes
2 answers

Light up screen when notification received android

I have a service running for my application to send notification every hour. This is working fine as i heard a sound and a vibration every hour because of my notification but i also want that my notification light up my screen as well. But i am…
Pirate
  • 545
  • 1
  • 6
  • 15
30
votes
5 answers

Changing screen brightness programmatically (as with the power widget)

I was searching how to change the brightness of the screen programmatically and I found this it is very good solution and it works nice, but it works only while my app is active. After my application is shutdown then the brightness is returned back…
Lukap
  • 31,523
  • 64
  • 157
  • 244
30
votes
9 answers

How to add icons to Preference

I'm making an app that extends the PreferenceActivity and I want to add an icon to each Preference. I read a similar question, and this is the answer with more reputation: CommonsWare Say: The Settings application uses a private custom…
Toni Alvarez
  • 1,012
  • 1
  • 10
  • 21
29
votes
2 answers

How can I make a ProgressDialog be cancelable by the back button but not by a screen tap?

I would like to make a ProgressDialog cancelable by the back button but not by a screen tap. Currently I use setCancelable(true). However, in some newer devices a tap on the screen also cancels the ProgressDialog. I'd like to disable the screen tap…
benkdev
  • 673
  • 2
  • 16
  • 32
29
votes
6 answers

How to determine the screen width/height using C#

I want to set the width & height of a Window dynamically based on the user screens maximum width/height. How can I determine this programmatically?
Shamim Hafiz - MSFT
  • 21,454
  • 43
  • 116
  • 176
29
votes
4 answers

How to display Activity when the screen is locked?

My application is launched on car docking event, I want to wake up phone (done by system) and unlock screen when I plug my device. Is it posssible ?
Pachanka
  • 492
  • 2
  • 7
  • 19
29
votes
3 answers

What is today's most popular screen resolution?

Is there a place that displays statistics in such a manner that I can rely on? e.g. Google/Microsoft homepage screen size statistics? An international statistics organization that checks multiple websites to come up with a more accurate number?
odedta
  • 2,430
  • 4
  • 24
  • 51
29
votes
5 answers

Android set navigation drawer list to open exact half of the screen for all device screen

I want to open the drawerlist to the half of the screen for all different device. i tried hard coded values for layout_margineleft 200dp or 100dp to the drawerlist. but it doesn't work in all device it different from device to device. so how can i…
Mayur Raval
  • 3,250
  • 6
  • 34
  • 57
29
votes
6 answers

Screen Video Record of Current Activity Android

Is it possible to record screen video of current running activity from same activity ? I know how to take screenshot of current activity but don't have any idea about taking screen video record. How would I start with it ? I don't know how to start…
captaindroid
  • 2,868
  • 6
  • 31
  • 45
29
votes
2 answers

What better tool than Sikuli to use for screen automation on Windows 7 (or preferably multi-platform)

I'm using Sikuli for Screen automation. i.e for clicking of GUI elements according to their appearance on the screen. This works all right, but Sikuli has one major disadvantage for me: Slow start-up for each script (because the whole JVM is loaded…
halloleo
  • 9,216
  • 13
  • 64
  • 122
28
votes
2 answers

find screen dimensions in inches not pixels using javascript

I was reading many questions on SO regarding best ways to detect screen size in pixels which is ultimately dependant on resolution to find the actual screen size. I know some mobile devices have small screen (say 4inch) yet the resolution is high.…
stackunderflow
  • 3,811
  • 5
  • 31
  • 43
28
votes
1 answer

Rails freezes when searching through tmux output buffer

I'm running Rails 3.2.6 in development mode using tmux. When I scroll through the output buffer of the Rails server (run using rails s) using tmux, the server freezes and doesn't process any requests. When I escape scrollback mode, the server starts…
michaelmwu
  • 343
  • 3
  • 8
27
votes
3 answers

onDestroy gets called each time the screen goes on

My application gets killed each time that it comes back from the screen-off-state. I fetch all the information that my app does, but I can't find out why it calls onDestroy. It's the first time I'm seeing this behavior in my applications. My main…
mikepenz
  • 12,708
  • 14
  • 77
  • 117