How can I prevent the display on an iOS device from dimming and turning off? [duplicate]
This question already has an answer here:
I'm diving into iOS development and am building my own alarm clock app to become familiar with platform and SDK. I've noticed some alarm clock apps in the app store keep the screen from dimming and/or turning off when their app is running. How is this implemented?
Thanks so much in advance for all your help!
I would like to pull the log file from a device to my PC. How can I do that?
Possible Duplicate: Is there a unique Android device ID? I used below code to get android device IMEI and How can I change below code to get android device Unique ID. String getDeviceID1(TelephonyM
I am trying to turn on and off the display after a certain action happens (Lets just worry about turning the screen off for now). From what I understand from wake lock, this is what I have: PowerManag
Possible Duplicate: Detect Retina Display How can we know if a device has a retina display or not from objective C code?
Does anyone know a programmatic way of dimming secondary monitors while keeping the primary display screen fully bright? I have investigated some existing software, but most will only dim all monitors
How can I identify if the iOS device my app runs on is an iPhone 3G of an iPhone 4? Thanks in advance.
I am developing a widget for turning on/off camera led of phone. I have made a widget that can work like toggle button (on/off). Behavior is like follows : Sometimes the led light remains on when i en
How can I prevent sensitive encrypted data stored on an iOS device from being automatically backed up by iTunes?
How can I allow a user from an iOS device to upload an image to my server using asp.net? NOTE A native iOS application is not an option for us at this time. I'm open to any crazy idea, like emailing t
To prevent a JTree node from collapsing, you can use the setExpandedState() method. I dont see a similar method for the SwingX JXTreeTable class, and it seems that JXTreeTable doesnt extend JXTree (wh
I have a CADisplayLink, and a AVPlayerItemVideoOutput under iOS 6.1. I now have a CVPixelBufferRef and want to modify it (e.g. display a timecode on the video, etc). I think I have the modify part imp
Can i get a local ipaddress of ios device from asp.net? I want to get a ios device ip address and want to store into database.
This question already has an answer here: AutoRotate ONLY MpMoviePlayerControler iOS 6 1 answer In my iphone app I wish to rotate only one view when device rotated.How can I do this. I have sel
Possible Duplicate: How can we programmatically detect which iOS version is device running on? How do I check if a device is running iOS 6? I need to check to see if the os is iOS 6 in order to chan
I'm using MobileDevice.framework in an OS X application and I've been able to get how charged the battery of an iOS device connected over USB is using the AMDeviceCopyValue(device, domain, key) functi
I want to deploy managed iOS devices to employees of the company, and the app they will use will timestamp data that will be recorded locally, then forwarded. I need those timestamps to be correct, so
I'm new to IOS programming, I don't know how to judge the swinging direction of a device.And I have searched a long time for this question, but I only find very little about this. Could someone help m
This question already has an answer here: Android: How to Enable/Disable Wifi or Internet Connection Programmatically 5 answers I need to turn off the WiFi a while after pressing the Turn off
How can I prevent Qt Creator 2.4.1 from replacing tabs with spaces? I have chosen ‘Tabs only’ on ‘Tab policy’ but Qt Creator still has this annoying behaviour
I set display_errors to Off through my htaccess via this method, and it shows that way when I run phpinfo() (display_errors is Off in Local Value and Master Value columns). Additionally, when I echo i
I have limited Java experience, especially when it relates to graphics. I've had very good help on this problem so far and hope to contribute more as I get familiar with this site. There is starter co
I have long web page title and when adding to home screen in iPhone older versions the whole title is visible in the confirmation dialog. When I add to home screen in iPhone 4 the title is cut off aft
I have been given the task of selecting key data from an Oracle database, but I am noticing that my select is returning duplicate rows. I don't need them for my report yet I don't want them to delete
Question: When working with IOS state preservation, how can I display a custom launch image instead of the snapshot during the launching process Description: I am working on IOS state preservation. E
Dimming the background upon showing an UIAlertView seems the default behavior of iOS. Can I disable this effect so that the background will not be dimmed, because I have a rather dark background alrea
How can you power off an Android device programmatically? I searched for an answer, some said your phone must be rooted (I don't want to do that), and others said it's impossible. Is it really imposs
Possible Duplicate: NSString representation of fractions using unicode Using Fractions On Websites I am porting my application from android to IOS. In my android app i use this code to display fract
I would like to detect the status of the iPhone, such as if the screen is off (screen locked), or if the device has sound turned off. Can an API do this, or is there any other way can do it? Thanks v
This question already has an answer here: android device id confusion 5 answers How can I get the android device id which I get on dialing *#*#8255#*#* I am using the following code but it does
Possible Duplicate: iOS and finding Tomorrow How can i get next date using NSDate. Please send me the solution.
I hace attached my device to the PC and run my service via Eclipse on the device. Now I would like to see what is the behavior of my service over power-off and power-on. The problem is that once O pow
This question already has an answer here: iOS unique user identifier [duplicate] 7 answers I just want to know what can be used and stored on server from an Apple device (iPod Touch, iPhone or
How can I prevent inner SELECT from returning NULL (when matches no rows) and force query to fail. INSERT INTO tt (t1_id, t2_id) VALUES ( (SELECT id FROM t1 WHERE ...), (SELECT id FROM t2 WHERE ...) )
Possible Duplicate: get unique machine id I want to retrieve a value unique to the device (tablet, laptop, or desktop computer). Does anybody know how to get such a value?
I have an Activity that usually needs some time to watch the screen without interacting with it. The problem is that the screen turns off, just like with almos any other app. I want to prevent that au
I want to completely switch off Eclipse validation for all languages. This is not the same as disabling validation of various patterns, I don't want Eclipse to even try to validate. Version is Juno.
I am using the following code: PhoneApplicationService.Current.UserIdleDetectionMode = IdleDetectionMode.Disabled; to prevent my night clock app from turning off. However, the lights on the Back, Hom
How can I prevent .NET from using the compiled .config settings when no config file is present? For example, I have a connection string setting in the app.config file that specifies a development serv
Possible Duplicate: Why is glReadPixels() failing in this code in iOS 6.0? The following line works great on the iOS 6 simulator but doesn't work on iOS 6 device. What could be wrong ? How to fix th
I have a login box, where I want the browser to remember the saved password if the user chose to do so, but when a password is actually saved, the form starts looking really ugly: is there a way to o
How can I detect whether an iOS device has push notifications capability or not? [[UIApplication sharedApplication] enabledRemoteNotificationTypes] tells what permissions the user has given. I'm tryi
I know that this topic has been discussed many times, but none of the answers helped me. For the record, i'm running Debian. The deal is: I bought an usb powered led lamp, which is very simple and doe
After I've called DwmExtendFrameIntoClientArea on a window, how can I turn it off again while remaining in Aero mode? I've tried to call DwmExtendFrameIntoClientArea with all margins set to 0, which s
I want to send updates from server to iOS device without using APNS when application is not active (not even running in background). Any ideas regarding how can I accomplish that? One thing I want to
I am using GameKit.framework for implementing Bluetooth in my app, but in didLoad I want to check if Bluetooth is turned on or turned off. Could anybody tell me how to do this?
dear all. i have a form that consist of two textfield and one combobox. i want prevent the duplicate entry data from client side. i get combobox data from DB, like: <select id=line name=faline
After searching on Google, I found that people say it's only possible to connect an iOS device with a non iOS device with the 'MFi program'. Is that true? My project is mainly focused on sending and r