device

Android: Within Android Device Chooser the same device shows up several times

孤人 提交于 2019-12-09 13:22:58
问题 I am using Eclipse to program for the Android OS. I use a real device to test my application on. To test my application I click on run, then the target project i wanna run and then the Android Device Chooser pops up, where I can choose the device or emulator that I want to run the application. (like probably every programmer here). But sometimes when my app crashes because of some exception, the Android Device Handler gets some weired behavior. Now everytime I connect my device to the

How to programmatically get the Device ID for Admob?

百般思念 提交于 2019-12-09 13:07:12
问题 I have multiple devices, and I probably will have more, and do not want to add them one by one. Does anybody know what ID Admob uses? 回答1: String aid = Settings.Secure.getString(getContext().getContentResolver(), "android_id"); Object obj = null; try { ((MessageDigest) (obj = MessageDigest.getInstance("MD5"))).update( aid.getBytes(), 0, aid.length()); obj = String.format("%032X", new Object[] { new BigInteger(1, ((MessageDigest) obj).digest()) }); } catch (NoSuchAlgorithmException

Mapping a physical device to a pointer in User space

淺唱寂寞╮ 提交于 2019-12-09 12:13:40
问题 We have an embedded system where a memory mapped device is connected, and an ARM CPU runs Linux. The device is located at address 0x40400000 and occupies a megabyte (most of it is not backed by an actual memory, but the address space is mapped to the device anyway). We currently don't have a device driver for this device. In the device there is a special read-only register (called CID) at address 0x404f0704 . This register contains the value CID = 0x404 . I am trying to read this register

Testing multiple Android devices on one machine

微笑、不失礼 提交于 2019-12-09 11:47:50
问题 I have two different Android devices plugged into the same machine. What I would like to do is to target each device and execute a test on it separately. Unfortunately, it seems as if I need to unplug one of the devices to run the test each time, because if I don't, I receive the following error: error: more than one device and emulator Does anyone know of a work-around for this issue so that I can simply keep both devices plugged in and run my tests? 回答1: You need to set ADB_DEVICE_ARG

Run Android apps on hardware device from Android Studio by USB

拥有回忆 提交于 2019-12-09 08:14:01
问题 I am developing apps in Android Studio and I can run them in the virtual device succesfully. However running the apps on my own device (Samsung S3 GT-I9300) doesn't work. Based on the documentation of Google (http://developer.android.com/tools/device.html) I have tried this: In the application tag of the AndroidManifest.xml I have added: android:debuggable="true" . Installed the latest OEM driver from the Samsung Website In the Android Studio I changed in the Edit Configurations the target

how to get Device Token using Iphone Application and other info about the device?

浪尽此生 提交于 2019-12-09 07:02:59
问题 In my iphone application i want Device Token using the APN. How to get that using code ? Alos i want Other information about the Device User,its version and other info. How to get that using Code ? Is it possible to get the device other information using Device Token? what is the format of the Device Token? Please give solution by code or any link or any other way,which would be appreciated. Thanks, Mishal Shah 回答1: here how you get information about device--- NSString* deviceName= [[UIDevice

Device going offline randomly (and appearing multiple times as offline) in Eclipse - fixes?

▼魔方 西西 提交于 2019-12-09 04:39:16
问题 This problem has been bugging me for ages and I can't seem to fix it or fully localize the source of the problem (although at times I can force it by allowing the phone to Standby while connected to Eclipse, but sometimes that doesn't even cause a problem). Let's go through the steps. I connect my device, it pops up and seems to be working fine: I double-click it to ensure LogCat is logging it at which point 1 of 2 things happen: It seems to work, I swap to LogCat window which sliiides

getDeviceList() always empty

风格不统一 提交于 2019-12-09 00:44:16
问题 I'm trying to use an Arduino Board along with my Odys Neo x8 tablet but it seems, that the UsbManager doesn't recognize the device alright. I connected the arduino to the tablet via an OTG-adapter so that the tablet will work in host mode, the Arduino is successfully receiving power from the device. I'm fetching the list of available USB-devices on the tablet as follows: sUsbController = new UsbController(this, mConnectionHandler, 0, 0); HashMap<String, UsbDevice> devlist = sUsbController

How to run logcat on multiple devices?

99封情书 提交于 2019-12-08 22:48:05
问题 How can I run logcat on multiple devices at the same time? "adb logcat" command gives an error: error: more than one device and emulator 回答1: Use the -s option of adb : adb -s <serialnumber> Example C:\Users\lel>adb devices List of devices attached 192.168.198.101:5555 device 0123456789ABCDEF device adb -s 0123456789ABCDEF logcat adb -s 192.168.198.101:5555 logcat You can combine grep whit this, to get all lines that contain it. an example is with System.out Example: adb -s 192.168.198.101

How to get information from device manager?

牧云@^-^@ 提交于 2019-12-08 21:43:32
问题 How can I, in my C# applictation, read specific information about a device? I have tried WMI and it does not provide the information that I need. The information that I want is stored in the Details tab of a device and the information I want there is "Parent". I have also looked in regedit, without any luck. 回答1: Microsoft provides a sample: http://support.microsoft.com/kb/311272 From C#, it might be easier to capture the output of devcon than integrating the APIs. If you feel comfortable