device

How to detect iOS device programmatically

流过昼夜 提交于 2019-11-27 08:08:27
问题 I need to know which iOS device is currently running app (saying more exactly I need to know is device armv6 or armv7). UIUserInterfaceIdiomPad() could not check is device an iPhone4S or iPhone3G. Is it possible? 回答1: Download https://github.com/erica/uidevice-extension (UIDevice-Hardware class) and you can use these: [UIDevice currentDevice] platformType] // returns UIDevice4GiPhone [[UIDevice currentDevice] platformString] // returns @"iPhone 4G" Or check if its retina + (BOOL) isRetina {

Just upgraded my OS X to Yosemite, Android Device Chooser not showing device - what to do?

寵の児 提交于 2019-11-27 07:03:40
After upgrading to OS X Yosemite I found that eclipse was not working because JAVA was not properly installed. I installed it and now I am able to open eclipse. When I connect my device, I am able to see my device on the device list in eclipse. However when I run my project, I am unable to see it on Android device chooser. My device is getting detected by Eclipse but I am not able to select it to run. This was working perfectly on my previous OS X Mavericks! Please help! Thanks Matt It seems to be a layout bug. Drag one of the column headers in the device chooser where the device should be and

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

和自甴很熟 提交于 2019-11-27 06:22:28
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 instead of launching the emulator/virtual device? Sachin Gurnani With an Android-powered device, you can develop and debug your Android applications just as you would on the emulator. 1. Declare your application as "debuggable" in AndroidManifest.xml . <application android:debuggable="true" ... > ... </application> 2. On your handset, navigate to

Find which drive corresponds to which USB mass storage device in WinXP

。_饼干妹妹 提交于 2019-11-27 05:41:07
问题 I have several USB drives connected to a WinXP SP3 computer, and I need to tell them apart programatically - I need to find which drive letter corresponds to which device (in this case, one device ~ one volume). I can get their Volume IDs and drive letters using mountvol , looking something like this: C:\WINDOWS\> mountvol \\?\Volume{bdb681b2-1ddf-11dd-bf71-806d6172696f}\ C:\ \\?\Volume{6a8784f8-7406-11dd-a8c3-001e8c829b67}\ A:\ Also, using devcon or the Device Manager, I can see the device

Why does adb return offline after the device string?

坚强是说给别人听的谎言 提交于 2019-11-27 05:16:18
问题 I use "adb devices" to get following result. Only one device is connected to PC by USB, but we get 8 lines of result. Could anyone suggest the reason? WH96TNE00361 offline WH96TNE00361 offline WH96TNE00361 offline WH96TNE00361 offline WH96TNE00361 offline WH96TNE00361 offline WH96TNE00361 offline WH96TNE00361 offline 回答1: Try the following: Unplug the usb and plug it back again. Go to the Settings -> Applications -> Development of your device and uncheck the USB debugging mode and then check

Difference between target google APIs and target android

浪尽此生 提交于 2019-11-27 05:11:18
问题 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 APIs(Google Inc). Among those targets, I'm uncertain which one I should choose. My question is what's the difference between them. Thanks in advance Dan 回答1: The Google API includes Google Maps and other Google-specific libraries. The Android one

Xcode Error Message: “could not inspect application package”

佐手、 提交于 2019-11-27 04:37:02
I'm trying to run my app on the device but I'm getting the following error message "Could not inspect application package", the app was successfully running on the device but then it stopped, it still builds successfully. Other apps are running fine. This was the error from the console. Dec 1 14:08:13 Marafeti kernel[0] : lockbot[567] Builtin profile: gputoolsd (sandbox) Dec 1 14:08:28 Marafeti installd[31] : 0x2ff7c000 handle_install: Install of "/var/mobile/Media/PublicStaging/demoMus.app" requested by mobile_installation_proxy Dec 1 14:08:28 Marafeti installd[31] : 0x2ff7c000 peruse_package

android device id confusion

北城以北 提交于 2019-11-27 03:20:03
If I dial * # * # 8 2 5 5 # * # * , I get my android device id which starts with android- 35c2acdd... source If I use Settings.Secure.getString(getContentResolver(), Settings.Secure.ANDROID_ID) the result starts with a96b4b27... If I use ((TelephonyManager) Context.getSystemService(Context.TELEPHONY_SERVICE)).getDeviceId() the result starts with 3538330... What is the difference between these ID-s? How can I get the result of the * # * # 8 2 5 5 # * # * dial? Andrew Alcock IMEI The IMEI is the ' MAC ' for the telephony module - the unique ID that the telephone uses when it connects via GSM

usb device identification

两盒软妹~` 提交于 2019-11-27 02:05:43
问题 i am using python on ubuntu 9.04 say i have two usb devices connected to a single PC. how can i identify the devices in python code.....for example like if usb port id == A write data to device 1 if usb port id == B write data to device 2 any ideas.... 回答1: Have you tried pyUsb? Install using: pip install pyusb Here a snippet of what you can do: import usb busses = usb.busses() for bus in busses: devices = bus.devices for dev in devices: print("Device:", dev.filename) print(" idVendor: %d (0x

How to get a list of video capture devices (web cameras) on windows? (C++)

◇◆丶佛笑我妖孽 提交于 2019-11-27 01:53:46
So we have a simple C++ win32 console app. All we want is to print list of web cameras and other video capture devices that are avaliable. We want to use windows apis as much as possible - no external libs - after all - all we want is to print out a a list - not to fly onto the moon!) How to do such thing? My own reserch: I found this official msdn sample but I still do not get how to output device list onto screen=( (sorry - I am new to C++) ... some more reserch... In one of simpliest ms samples on topic found this HRESULT OnInitDialog(HWND hwnd, ChooseDeviceParam *pParam) { HRESULT hr = S