device

Ble Scan service of a device without connecting to it

十年热恋 提交于 2019-12-02 02:52:07
I want to scan some device with BLE. I only want to show my device, so for know I get the name of the device and if it is the good one I put it in my list. if (device.getName().contains(DEVICE_NAME)) { mDevices.put(device.hashCode(), device); invalidateOptionsMenu(); } My problem is that if I change the name of my device this check will be false. So I look if it was possible to get some uuid of some services that I add to do the check with something that would not change. And the only way is to connect to the device doing a device.connectGatt(this, false, mGattCallback); and after with the

xcode 3.2.4 (sdk 4.1) unable to install to device

浪子不回头ぞ 提交于 2019-12-02 02:20:15
I recently installed XCode 3.2.4 to my machine. This comes with iOS SDK 4.1. Annoyingly I can no longer install my app to any iPhone. The option to tick "Device" in the drop down for where to install to is present, but when I click it, it doesn't become ticked. Strangely I can only run my app on the simulator, despite the option to select the simulator not being present. Does anyone know how to fix this or what might be the problem? Thanks in advance, Tristan Alrighty, I'm answering my own question. What I didn't realise is that there's seperate build configurations depending on wether you

xcode 3.2.4 (sdk 4.1) unable to install to device

北城以北 提交于 2019-12-02 02:15:49
问题 I recently installed XCode 3.2.4 to my machine. This comes with iOS SDK 4.1. Annoyingly I can no longer install my app to any iPhone. The option to tick "Device" in the drop down for where to install to is present, but when I click it, it doesn't become ticked. Strangely I can only run my app on the simulator, despite the option to select the simulator not being present. Does anyone know how to fix this or what might be the problem? Thanks in advance, Tristan 回答1: Alrighty, I'm answering my

applying resolution for different devices

自闭症网瘾萝莉.ら 提交于 2019-12-02 01:29:16
I have been trying to Set screen resolution for an Array of devices,I have looked all the answers up and from what I understood if I create an res/layout-normal,res/layout-large and so on I can put adjusted Layouts there and the app will Load them automatically. How ever this has not occurred... can someone PLEASE just explain what to do after i have created the layouts and layout folders and allowed the use of all sizes in my XML (although i think the default is all of them). THANK YOU! Its just a example: Device resolution- res/values/dimens.xml(default) res/values-ldpi/dimens.xml (240*320

objective C iOS Device ID in iOS7

烈酒焚心 提交于 2019-12-02 01:21:49
问题 I want to ask that whether objective C can obtain a unique device ID of the Device. "uniqueIdentifier" is deprecated in iOS7 and I try to use "identifierForVendor" but it gives me a different ID after the app is re-installed. I want to find a stable device ID after the app is re-install, and even the iOS is changed. In the early version of iOS, we can use MAC address to achieve such goal. But now, in iOS7, the MAC address is no longer available. How can i find a stable device ID of the iOS

objective C iOS Device ID in iOS7

邮差的信 提交于 2019-12-01 21:44:41
I want to ask that whether objective C can obtain a unique device ID of the Device. "uniqueIdentifier" is deprecated in iOS7 and I try to use "identifierForVendor" but it gives me a different ID after the app is re-installed. I want to find a stable device ID after the app is re-install, and even the iOS is changed. In the early version of iOS, we can use MAC address to achieve such goal. But now, in iOS7, the MAC address is no longer available. How can i find a stable device ID of the iOS device in iOS7? Maybe using Keychain to store the "identifierForVendor" value is a good approach. But

WP7: Get phone name

我们两清 提交于 2019-12-01 20:43:38
问题 I'm looking for a simple information. I want to get the name of the device the user is currently using. For example, I want to get "Eric's Phone" (like in Zune). Is it possible? I looked for the DeviceExtendedProperties (see link) or the UserExtendedProperties see link) Thanks for you time. 回答1: "That information is not available to third-party apps." Credit : Krome Studios 来源: https://stackoverflow.com/questions/5616546/wp7-get-phone-name

Android Studio does not detect Android device on Windows 10

断了今生、忘了曾经 提交于 2019-12-01 20:29:10
问题 I am setting up a Android development environment on a new Windows 10 laptop. I have done this many times on other machines with other operating systems, but this is the first time with Windows 10. The problem is that Android Studio cannot detect my device (LG Zone 3) after I connect it via USB. Note that I have previously used this device for development on an Arch Linux desktop. I have downloaded Android Studio and created several AVDs. I can run my app and tests on those just fine. However

How do I uniquely identify an USB-device?

时光怂恿深爱的人放手 提交于 2019-12-01 20:22:14
问题 I was wondering how to get the unique id of a USB storage device. I already know how to fetch the SCSI serial id from this post : USB-drive serial number under linux C++ The post mentions using the Device Descriptor to get the ID. Can someone post some code to determine the Device Descriptor information under Linux? 回答1: ls -l /dev/disk/by-id 回答2: I do it with HAL in C++ / C by using QT. Found some blog about it: How to detect if /dev/* is a USB device Would be also possible to do it by using

android device capability detection

不羁的心 提交于 2019-12-01 20:19:41
i'm trying to determine if the device i'm running on has the capability to send/receive phone calls, email, and SMS. i found that i can use the TelephonyManager to get the devices phone number and on devices without the capability of making calls the phone number is null. that's one problem down. i still haven't found a way to detect email and SMS capability. SMS is probably futile without a cell signal, so you can use your same trick for that. As for email (=networking), you can probably iterate through your devices in NetworkInterface.getNetworkInterfaces() and see if the device is connected