device

Constantly getting …DeviceMonitor] Failed to start monitoring

耗尽温柔 提交于 2019-12-03 01:36:10
I find that after running or debugging my application a few times using eclipse, that I get the above output in my console (in red) and I get no feedback from Dalvik as to the connection status to my phone is going. My application will still debug etc. I just get nothing useful in my Console. Any ideas how to fix this? It appears intermittent. It starts doing it after a few minutes, continues to do it for quite a while and occasionally goes away again. This has happened on my last laptop and now on my new laptop with a completely fresh install etc. ok so here's what fixed it for me and I think

Linux: Which process is causing “device busy” when doing umount? [closed]

大兔子大兔子 提交于 2019-12-03 01:27:02
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . Linux: Which process is causing "device busy" when doing umount? 回答1: Look at the lsof command (list open files) -- it can tell you which processes are holding what open. Sometimes it's tricky but often something as simple as sudo lsof | grep (your device name here) could do it for you. 回答2: Just in case...

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

蹲街弑〆低调 提交于 2019-12-03 00:56:13
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 through a bunch of text and then goes white, I swap back to Devices and see Device goes offline immediately

how to manage debug and release version on android device?

浪子不回头ぞ 提交于 2019-12-02 23:46:40
I'm new to Android dev and I'm almost ready to release a first version of my app :) While testing the signed release apk on my phone, it refuse to install because the debug version is installed with the debug signature. So I have to uninstall the debug version but it delete all my database (and it will do it to my friends who are testing it). Is there a way to manage a debug and a release version of the same app without losing data? I'm not aware of any easy way to do get around the uninstall/reinstall process, so your options include... Buy a second device for testing (some Android devices

How to write Linux driver module call/use another driver module?

感情迁移 提交于 2019-12-02 23:12:35
I'm developing a Linux driver loadable module and I have to use another device in my driver.(kind of driver stacked on another driver) How do I call/use another driver in my driver? I think they are both in the kernel so there might be a way that can use another driver directly. Martin Carpenter You will need the EXPORT_SYMBOL (or EXPORT_SYMBOL_GPL ) macro. For example: /* mod1.c */ #include <linux/module.h> #include <linux/kernel.h> #include "mod1.h" .... void mod1_foo(void) { printk(KERN_ALERT "mod1_foo\n"); } EXPORT_SYMBOL(mod1_foo); /* mod2.h */ .... extern void mod1_foo(void); .... /*

Changing displayed Android device name in Eclipse

时间秒杀一切 提交于 2019-12-02 21:02:14
When attaching several Android devices to my development machine, it quickly becomes difficult to determine which device is which from Eclipse, because the device names appear to be represented as their serial numbers. For instance, the Devices list: Is there any way to display the phone model, or to change the device name? On my Desire (cyanogenmod7, Android 2.3.3) there is a setting: Homescreen -> press menu -> System settings -> applications -> development -> Device name Here I can change the devices name which is shown in eclipse. Unfortunately, my second development phone (Nexus-S, Stock

List all devices, partitions and volumes in Powershell

扶醉桌前 提交于 2019-12-02 18:46:34
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? To get all of the file system drives, you can use the following command: gdr -PSProvider 'FileSystem' gdr is an alias for Get-PSDrive , which includes all of the "virtual drives" for the registry, etc. Get-Volume you will get: DriveLetter, FileSystemLabel, FileSystem, DriveType, HealthStatus, SizeRemaining and Size On Windows Powershell: Get-PSDrive [System.IO.DriveInfo]::getdrives() wmic diskdrive wmic

Creating a Virtual USB Device

二次信任 提交于 2019-12-02 16:20:58
I am a newbie learning how to write WDM device drivers for USB devices and found that the materials available are all too hard to comprehend (the DDK online doc is one of the most difficult to read, and the WDM Device driver book by Oney isn't anything better). So, I've got a simple question. Where do I start if I want to create a virtual USB device (for example, a virtual USB mouse which looks like a real USB mouse attached to a USB port) for testing/learning. So far what I understand is the HIDClass driver (hidclass.sys) has a minidriver for the usb bus (hidusb.sys) that carries out the

Xcode “Device Locked” When iPhone is unlocked

核能气质少年 提交于 2019-12-02 15:40:25
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? Did you by chance not "trust" the device? This will prevent it from communicating with xcode even if the device is unlocked. Update here's a support doc from Apple: http://support.apple.com/en-us/HT5868 My phone was set to "trust" the Mac, and I still ran into this error with Xcode 6.1.1. This worked for me: unplug device quit xcode open xcode plug in device build/run Iron John Bonney I recently ran into this issue with XCode 8 just after updating my device from

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

久未见 提交于 2019-12-02 15:30:35
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? This is due using an emulator with an unstable Developer Preview API version. You probably have a device using API 27 (Android 8.1). Open your AVD, remove that device and re-run. It's also useful to use --target <emulator_name> when launching