Questions tagged [device]

DO NOT USE. This tag is ambiguous. Questions about hardware not related to programming are off-topic.

2917 questions
451
votes
30 answers

How to determine the current iPhone/device model?

Is there a way to get the device model name (iPhone 4S, iPhone 5, iPhone 5S, etc) in Swift? I know there is a property named UIDevice.currentDevice().model but it only returns device type (iPod touch, iPhone, iPad, iPhone Simulator, etc). I also…
The Mach System
  • 5,790
  • 3
  • 12
  • 20
425
votes
71 answers

Android Studio doesn't see device

The AVD Manager in Android Studio doesn't show my device but adb devices does show it. Am I missing something obvious here?
amnesyc
  • 4,464
  • 4
  • 15
  • 17
349
votes
37 answers

Xcode "Device Locked" When iPhone is unlocked

When I tried to build and run, Xcode said my device was locked. I looked at my iPhone, and it's not locked at all. How do I fix this?
Faisal Syed
  • 3,561
  • 2
  • 9
  • 10
302
votes
24 answers

How to detect iPhone 5 (widescreen devices)?

I've just upgraded to Xcode 4.5 GM and found out that you can now apply the '4" Retina' size to your view controller in the storyboard. Now if I want to create an application that runs on both iPhone 4 and 5, of course I have to build every window…
Finn Gaida
  • 3,920
  • 3
  • 17
  • 30
275
votes
17 answers

iOS detect if user is on an iPad

I have an app that runs on the iPhone and iPod Touch, it can run on the Retina iPad and everything but there needs to be one adjustment. I need to detect if the current device is an iPad. What code can I use to detect if the user is using an iPad in…
Albert Renshaw
  • 15,644
  • 17
  • 92
  • 173
106
votes
6 answers

Detect the specific iPhone/iPod touch model

Possible Duplicate: Determine device (iPhone, iPod Touch) with iOS I am making a game that utilizes the peer-to-peer bluetooth capabilities of the iPhone (and probably the iPod touch 2nd generation). However, to stop the users from trying to play…
Dimitris
  • 12,954
  • 17
  • 71
  • 93
95
votes
31 answers

How to resolve "Waiting for Debugger" message?

I have HTC Comet connected to Eclipse with SDK 2.2. I do a debug build - the application does not run; though it does get installed on the device. On the device I get this message box on the Comet screen Waiting for Debugger Application HunyDew…
Abhi
  • 2,758
  • 1
  • 22
  • 37
92
votes
33 answers

Android Device Chooser -- device not showing up

I'm using Eclipse + ADT, and my physical device (listed below) is unlisted on Android Device Chooser. I have updated Eclipse and all of the Android packages. My phone is running Android OS 1.6, which corresponds to the target version listed in the…
mportiz08
  • 9,516
  • 12
  • 38
  • 42
84
votes
9 answers

Logging data on device and retrieving the log

On a debug build in Xcode, regardless of whether I am using the simulator or an actual device, NSLog, printf, fprintf assert and NSAssert statements come out on the console If I now run a release build on the device (say I send a test flight build…
P i
  • 25,182
  • 33
  • 133
  • 229
82
votes
12 answers

Linux: Which process is causing "device busy" when doing umount?

Linux: Which process is causing "device busy" when doing umount?
flybywire
  • 232,954
  • 184
  • 384
  • 491
80
votes
20 answers

How to detect a mobile device with JavaScript?

I have been asked to create an actual HTML page / JavaScript to simulate detection of the mobile devices (iPhone / iPad / Android) using JavaScript code. This will then take the user to a different screen which asks them for their email address.
Jeevs
  • 889
  • 2
  • 9
  • 9
73
votes
1 answer

Difference between target google APIs and target android

I'm developing android with SDK 2.3.3 using Eclipse IDE. As you all know to run my app, I should generate virtual device. From 'create new AVD' window, I can see many targets. There are 2 targets for API level 10 such as 'android 2.3.3' and Google…
allbory
  • 733
  • 1
  • 5
  • 5
65
votes
3 answers

How to debug on a real device (using Eclipse/ADT)

I'm trying to figure out how to debug applications directly on my phone (HTC Desire). I've installed the USB driver that came with the phone and the phone is listed when using "adb devices". How do I configure eclipse/ADT to launch on the phone…
jgauffin
  • 95,399
  • 41
  • 227
  • 352
62
votes
10 answers

List all devices, partitions and volumes in Powershell

I have multiple volumes (as nearly everybody nowadays): on Windows they end up specified as C:, D: and so on. How do I list these all like on a Unix machine with "ls /mnt/" with Powershell?
wishi
  • 6,348
  • 14
  • 55
  • 92
61
votes
3 answers

How to detect a mobile device manufacturer and model programmatically in Android?

I want to find device specification of a mobile phone for examples, the device manufacturer, model no ( and may be types of sensors in the device, wifi chipset etc..). I want to get the device manufacture/model number (eg. Samsung GT-I9100 i.e…
Shan
  • 4,496
  • 10
  • 40
  • 57
1
2 3
99 100