screen

Screen Support in Android 3.2 (API level 13)

帅比萌擦擦* 提交于 2019-12-07 07:40:08
问题 According to the note written in this documentation (DeclaringTabletLayouts), the old groups was deprecated (small, normal, large, and xlarge), which is why we have to migrate to the new technique defined in Android 3.2. Note: Beginning with Android 3.2 (API level 13), these size groups are deprecated in favor of a new technique for managing screen sizes based on the available screen width. If you're developing for Android 3.2 and greater, see Declaring Tablet Layouts for Android 3.2 for more

How can I wake an android device up and skip the screenlock

一曲冷凌霜 提交于 2019-12-07 06:22:39
问题 As title, is it possible for me to wake my phone up and skip the screenlock? I want to write an app based on the alarm clock, when it's time, the app should do detect something in the background even when the phone is sleeping. When something is detected, the phone should automatically wake up, skip the screenlock, and show a picture(start a new activity ). Can anybody give me some suggestions or examples on these? Thanks a lot! 回答1: The activity you're starting needs one or both of the

Android: Turn off screen from a service

家住魔仙堡 提交于 2019-12-07 06:13:36
问题 I am trying to figure out how to turn off the screen from within a service. I have already read this but I am failing to realize how to do this from within a service. I don't really want to deal with wake locks because as soon as the screen goes off, I don't really care about turning it back via java code. I just need a one time method for turning the screen off and I have searched forever on this. 回答1: I see two options: (1) Create a dummy Activity and use it to get a Window object through

Full screen capture of a DirectX program in java (Javacv ?)

假装没事ソ 提交于 2019-12-07 06:10:56
问题 [For Windows] I know it is possible to capture screen of a DirectX program running under C# language, but do you know some sample code for Java? I am actually facing this same problem than this Take screen shots inside of full screen applications with java?. Robot class didn't helped and neither worked. But yet I didn't found any sample of java code on the internet concerning this. Thanks for any help you could provide on this topic. 回答1: Since I worked on it more, see also: import java.awt.*

Detecting screen orientation change from service [duplicate]

喜夏-厌秋 提交于 2019-12-07 06:07:30
问题 This question already has answers here : How do I use a service to monitor Orientation change in Android (4 answers) Closed 6 years ago . A pretty simple and straightforward question... is it possible for a service to detect screen orientation changes? If so, how? 回答1: This link will answer your question: How do I use a service to monitor Orientation change in Android You can also create a BroadcastReceiver that listens for Intent.ACTION_CONFIGURATION_CHANGED ( "android.intent.action

android layout at different screen sizes

孤街浪徒 提交于 2019-12-07 05:00:19
问题 trying to get my head around screen sizes so my app looks the same on different devices. I have two devices a galaxy s3 and a galaxy tab 8. both have the same resolution screen 720 x 1280 but the s3 is 4.7 inches while the tab is 8 inches When I do a linear layout I set padding to 130 at the top so that the first textview is 130 pixels from the top so the image on the background is not obscured. This is fine on the s3 but when I load it on the tab the padding needs changing to 190 pixels for

screen support multiple devices using layout-large,layout-normal and layout-xlarge folders

末鹿安然 提交于 2019-12-07 03:41:50
问题 I created layout-large , layout-normal and layout-xlarge in the res folder and I copied all the xml files to those layout folders First, I want to ask what is the difference between layout (the default ) and layout-normal folder? I know if I run the application on big screen size the app will take the xml files from layout-xlarge . So I made all the elements in layout-xlarge look as I want using FrameLayout in tap2 10.1 , but when I run it in note2 or s3 mobile it looks different because the

How to turn off particular monitor with .NET?

此生再无相见时 提交于 2019-12-07 01:32:25
问题 OK, I know there are quite a few posts on this topic. However, none of them provide the solution to my issue: I don't want just to turn off my monitor(s), I wish my code to turn off a specific monitor. The URL the most people refer to, http://fci-h.blogspot.com/2007/03/turn-off-your-monitor-via-code-c.html, doesn't help here, as it turns off all the displays. So, I have my laptop screen and an additional external monitor. While I'm watching movies, I switch the display to the external monitor

Move Form onto specified Screen

ぐ巨炮叔叔 提交于 2019-12-06 22:50:08
问题 I am trying to figure out how to move specified System.Windows.Forms.Form onto another than primary screen. I have ComboBox with list of available screens where user selects whichever screen he likes and my application is supposed to move one of its windows onto that screen. I have only one screen on my laptop and no external monitor, so ComboBox on my computer offers only one option. I think minimalising desired window, moving it's left corner in the center of selected screen's Bounds and

Android screen sharing programmatically (Root)

ⅰ亾dé卋堺 提交于 2019-12-06 21:53:30
问题 Is it possible to screen sharing from root adb shell without user interaction over mircast or chromecast in Android >= 5? I'm looking for the command that enables/disables this https://support.google.com/nexus/answer/2865484?hl=en 回答1: You can try the Media Router - Secondary Output APIs from Android SDK: The Android media router APIs are designed to enable media display and playback on these secondary devices. There are two main approaches you can use to play content using these APIs: Remote