device

Android Device Debug stopped after plug other phone

 ̄綄美尐妖づ 提交于 2019-12-21 06:23:29
问题 I've launched and debugged several applications on my Samsung Galaxy S Device, however, yesterday I plugged in another Device (Same type) to upload music and now, when I try to launch or debug application, Eclipse wants me to choose between 2 devices (only 1 is online), and when I select this option, I'm getting the following Error log: [2011-03-30 11:36:56 - ****] Uploading ****.apk onto device '1000b1eda2c2' [2011-03-30 11:36:56 - ****] Failed to install ****.apk on device '1000b1eda2c2':

android execution in emulator or device?

放肆的年华 提交于 2019-12-21 05:06:16
问题 Is there any way to know if my application is running on the emulator or on the device ? 回答1: I am using this code snippet which works on both Intel and ARM emulators: if (Build.MODEL.contains("google_sdk") || Build.MODEL.contains("Emulator") || Build.MODEL.contains("Android SDK")) { RunsInEmulator = true; } 回答2: Secure.getString(getContentResolver(), Secure.ANDROID_ID); (where Secure is android.provider.Settings.Secure ) That value will be null on the emulator, non-null on devices. 来源: https

Flash memory as mass storage device using STM32 USB Device Library

旧街凉风 提交于 2019-12-21 04:41:04
问题 There is this flash memory IC on my board, which is connected to my STM32F04 ARM processor. USB port of the processor is available for the user. I want my flash memory to be detected as storage device when connected to PC via USB. As the first step I defined my USB class as MSC in my program which works fine. Since when I connect my board to PC, it detects a mass storage device connected, giving an error that "You should format the disc before using it". Now the question is that, how I can

Android Logcat not showing logs when I switch devices

谁说我不能喝 提交于 2019-12-21 04:29:28
问题 I am trying to use Logcat to help diagnose my android issues. I frequently have a phone plugged in AND an emulator running. Sometimes I debug on the emulator, sometimes I debug on the phone, or maybe even a third device. Logcat does not continue to show messages after a device is switched. How can I specify what Logcat does or force it to resume logging without restarting eclipse? Insight appreciated 回答1: I've noticed this at times. Usually one of two things does the trick. First, open the

micromax a111 is not detected by adb

牧云@^-^@ 提交于 2019-12-21 02:43:15
问题 Recently i've purchased micromax a111 android device. I am android developer. So tried this device for debugging option. But the adb is not able to detect the device. I have change the settings also, but not working out. If any one have the solution please help me regarding this. 回答1: micromax doesn't have official PC-Suite, so you need to download a third party PC-Suite like Moborobo or Mobogenie, after installation you can restart the system, now your mobile will be detected. 回答2: Add the

How to detect when USB device is being connected/disconnected?

大憨熊 提交于 2019-12-20 15:01:28
问题 I don't feel comfortable harnessing USB device with Delphi and have a next to nothing knowledge of the details of writing device driver (though I've come accross some when learning assembly with GoASM). The device could be either an usb modem or an usb printer. What I need is a direction to go and sample code adressing the topic. 回答1: This was taken from detect if usb device is connected unit U_Usb; interface uses Windows, Messages, SysUtils, Classes, Forms; type PDevBroadcastHdr = ^DEV

How to detect when USB device is being connected/disconnected?

我是研究僧i 提交于 2019-12-20 15:01:11
问题 I don't feel comfortable harnessing USB device with Delphi and have a next to nothing knowledge of the details of writing device driver (though I've come accross some when learning assembly with GoASM). The device could be either an usb modem or an usb printer. What I need is a direction to go and sample code adressing the topic. 回答1: This was taken from detect if usb device is connected unit U_Usb; interface uses Windows, Messages, SysUtils, Classes, Forms; type PDevBroadcastHdr = ^DEV

How to simulate touch for any application in Android?

淺唱寂寞╮ 提交于 2019-12-20 09:57:32
问题 I know some similar questions have already been asked, but I think they are asking for simulating touch in their own applications, however I want to make an agent that can "use" any application. So what I want to achieve should take as a series of inputs (touch: {x1,y1}, {x2,y2}, etc) and control any application (such as Facebook) just as if a genuine user is touching that coordinate. Is there any example, or a way for this? Or an already existing question about this? Thanks for any help!

Can't find android device using “adb devices” command

[亡魂溺海] 提交于 2019-12-20 08:27:17
问题 I am developing Android application on macOS and my application runs well on the emulator. I want to run it on the device, but when I run adb devices I get nothing. localhost:platform-tools BF$ adb devices List of devices attached localhost:platform-tools BF$ I have checked the documentation in the reference about "Setting up a Device for Development". I have done everything step by step. In the documentation, there are some words: Setup your system to detect your device. If you're developing

Cordova android emulation - Error: Cannot read property 'semver' of null

左心房为你撑大大i 提交于 2019-12-20 08:25:08
问题 Trying to emulate Android app with cordova, but get this error message: Built the following apk(s): /Users/jnj/cordova/hello/platforms/android/build/outputs/apk/android-debug.apk ANDROID_HOME=/Users/jnj/Library/Android/sdk JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_151.jdk/Contents/Home Error: Cannot read property 'semver' of null Any solutions? 回答1: This is due using an emulator with an unstable Developer Preview API version. You probably have a device using API 27 (Android 8.1).