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
38
votes
2 answers

Draw on the screen without a form

Is it possible to create a big white rectangle on the screen, without using a Forms Application? It should cover the whole screen if possible. I know I have to use the System.Drawing and tried several steps, but none have actually printed anything…
user1988147
  • 383
  • 1
  • 4
  • 4
37
votes
5 answers

New Activity in Android "enter from the side"

What's the best way to go to a new activity but make it look like the activity slides to the left and the new activity enters the screen? I am using intents to call the new activity, is that the way to do it if I want the application to be…
kakka47
  • 3,479
  • 8
  • 44
  • 52
36
votes
11 answers

iOS get physical screen size programmatically?

Is this possible? I want the number of inches, not the number of pixels. I know it is approximately 160 ppi. But not exactly.
William Jockusch
  • 26,513
  • 49
  • 182
  • 323
36
votes
6 answers

Programmatically get screen size in Mac OS X

I am able to return the screen size using: - (void) getScreenResolution { NSArray *screenArray = [NSScreen screens]; NSScreen *mainScreen = [NSScreen mainScreen]; unsigned screenCount = [screenArray count]; unsigned index = 0; …
WrightsCS
  • 50,551
  • 22
  • 134
  • 186
35
votes
6 answers

How to detect in jquery if screen resolution changes?

How can I make it so that each time when user changes the screen resolution size [not the browser window], the page perform a function?
Safran Ali
  • 4,477
  • 9
  • 40
  • 57
35
votes
6 answers

how to continuously display a file of its last several lines of contents

I am trying to find a Unix command (combination, maybe) on how to continuously display a file of its last several lines of contents. But during this displaying, I want some of the top lines are always displayed on the screen top when the rolling…
Wen_CSE
  • 1,225
  • 2
  • 10
  • 8
34
votes
8 answers

Screen orientation lock

Is there a reliable way to lock screen orientation on all Android devices? The code below works for my Nexus S and other phones, but for some reason ROTATION_90 corresponds to SCREEN_ORIENTATION_REVERSE_PORTRAIT on the Xoom. Is there any way to…
Michael Pardo
  • 2,590
  • 3
  • 24
  • 33
34
votes
2 answers

Cocoa drawing on different screens loses performance

I have a document-based app, where each document has one window with an NSScrollView that does some (fairly continuous) drawing using only Cocoa. To call the drawing, I am using a CVDisplayLink, outlined in the code below: -…
spudwaffle
  • 2,905
  • 1
  • 22
  • 29
34
votes
7 answers

Unable to resolve module 'react-native-screen'

I got this error from React Native on Atom: Unable to resolve module 'react-native-screen' Here are my steps: I ran npm install --save react-navigation, and I got the following: Then I ran npm install: And after, when I run my application, I…
34
votes
4 answers

Android Get Screen dimensions from Service

I got the Screen Size by using the following from a activity, Display display = getWindowManager().getDefaultDisplay(); But the same thing is not working from a service (for obvious reasons, i know!) but i desperately need to get the display size…
JaVadid
  • 7,107
  • 13
  • 42
  • 54
33
votes
3 answers

Iphone: Get current view dimensions or screen dimensions

Hello i want to get the width and height of my main view. I want the correct value in landscape or portrait mode. I've tried the following: NSLog(@"aaa %f", [UIScreen mainScreen].applicationFrame.size.width); NSLog(@"zzz %f",…
gyozo kudor
  • 6,284
  • 10
  • 53
  • 80
33
votes
8 answers

How to get the visible size on an Activity?

How can I know the visible size of my activity? I'm trying to get the Activity real size, not the height and width from getHeight() and getWidth(), which gives me the screen full size.
Tsimmi
  • 1,828
  • 6
  • 23
  • 35
32
votes
3 answers

Splash screen while loading a url in a webview in android app

I've got an app, that has 2 activity, the first one launch the second to load a url into a webview. It works, but while the url is loading , the webview appear empty... then i want to make a splash screen or something like this, to show it while the…
Migua
  • 575
  • 1
  • 10
  • 17
32
votes
3 answers

how to resize physical android screen from terminal/shell

A while ago, I was able to resize the screens on Android. For example, I had a Xoom, and was able to run a command from ADB which shrunk it down to a 7" screen (leaving a black border around it). Granted, it was a little buggy because the…
Geobio Boo
  • 1,284
  • 1
  • 10
  • 12
31
votes
2 answers

How to display text on the screen without a window using Python

The Problem: I need to write text directly to the screen without a window. The text needs to appear above all other windows and full-screen applications and should not be clickable or interactable in any way. Example: The text doesn't need to have…
dln385
  • 11,630
  • 12
  • 48
  • 58