Develop Android applicationsProgramYou may need to test between multiple devices, including emulator and handheld devices.
When you need to delete an app in development, you need to use the ADB uninstall command. Its explanation is as follows:
ADB uninstall [-K] ('-K' means keep the data and cache Directories)
By default, this command can run normally when one device is connected. When multiple devices are connected, the following situation occur
When writing drivers, it is generally necessary to add node information to the device tree, which provides a way to add device information directly to the drive.The drive template for I²c is as follows#include The SPI driver template is as follows#include The SPI and IIC drivers under Linux are not programmed to add device information on the
One: Insmod time error:
1: Error message insmod:error inserting ' Hello.ko ':-1 Device or resource busy
2: Reason: The device number inside your code is conflicting with the system already exists
3: View the system's device number:
Cat/proc/devices
See if there is a conflict with your device number, note that yo
{Code...} has determined how the mobile device uses the computer version on the mobile terminal.
require(dirname(__FILE__)."/lib/Mobile_Detect.php");$detect = new Mobile_Detect;$deviceType = ($detect->isMobile() ? ($detect->isTablet() ? 'tablet' : 'phone') : 'computer');if($_SERVER["SERVER_NAME"] == "nj.xxx.cn" ){ if($deviceType == "phone") { header("Location:http://m.xxx.cn/"); exit(); }}
DeterminedMobile Devices
At the Mo
When you safely delete a USB flash drive, you will often encounter a message saying "you cannot stop the 'general-purpose volute' device. Please stop the device later ."
In this case, can I forcibly unplug the USB flash drive? Of course not! In this case, if you forcibly remove the USB flash drive, it is easy to damage the USB port of the computer or your USB flash drive. If you have important information o
Android dialing device and dialing device
Design of android Phone Dialer
Shows the running interface.
Procedure:
1. Create an Android project. In Eclipse, choose "File"> "NEW"> "Android Project"
2. Compile the string. xml file. The Code is as follows:1 3. Compile the main. xml file. The Code is as follows:1 4. Click the event to process the button. The Code is as follows:1 package com. example. phone; 2 3
Using the device's onboard gyroscope can be achieved, when you rotate the phone screen, the inside of the screen will not be updated with the view to move to balance the physical movement.The following example performs this operation using a small number of simple geometric transformations. He builds a motion manager, subscribes to device motion updates, and then applies image transformations based on the swing, forward tilt, and sway angle of the mot
Drive developmentcharacter devices, block devices, network devicescharacter Deviceaccessed as a byte stream,cannot be accessed randomlywith the exception, the video card, EEPROM can be randomly accessedEEPROM can be erased 100 million times, is a character device, can be randomly accessedread/write is direct access to hardwareFlash Erase Times Limited, 1 million times, easy to have bad blockBlock Devicescan be accessed randomlyAccess as a "block" unit
[Linux Device Driver] linux address type, linux Device address type
List of address types used in Linux:
User virtual addresses)
The normal address visible to the user space program. The virtual address length is 32-bit or 64-bit. It depends on the underlying hardware architecture. Each process has its own virtual address space.
Physical address (Physical addresses)
The address used between the processor an
Get the device model and Device
Code:
- (void)viewDidLoad{ [super viewDidLoad]; // Do any additional setup after loading the view. NSLog(@"--self-machine-%@",[self machineName]); }- (NSString*) machineName{ struct utsname systemInfo; uname(systemInfo); NSString *result = [NSString stringWithCString:systemInfo.machine encoding:NSUTF8StringEnc
VMware prompt: Host USB device connections disabled-(the USB device connection is disabled on the VMware Host)
VMware Workstation prompts host USB device connection disabled.
As shown in the figure, the VMware USB arbitration service is not enabled (go to the control panel, administrative tools, services, and find "VMware USB arbitration server" to start
Two steps:1, with Fuser:fuser-k/data2, Umount/dataBasically can deal with Umount device busy busy problem, of course, it is best to be sure that the partition uninstall will not have an impact.Here are some parameter explanations for the Fuser command:-K kills these processes that are accessing these files. The Sigkill signal is sent unless the signal is modified with-signal.-I interactive mode-l lists all known signal names.-N space, choose a differe
For the cool dog software users to detailed analysis to share the cool dog audio device settings tutorial.
Tutorial Sharing:
Audio output: The output type provides both DirectSound and Microsoft Sound Mapper types, DirectSound efficient, while Microsoft Sound Mapper compatibility is better; the default is DirectSound output type, and the default setting is recommended.
All right, the above information is a small set of cool dogs for
Iar+st-link Debug STM32 occurs, Fatal error:the selected device does not match the target device error and cannot be debugged. This is a bug in IAR Embedded Workbench for ARM 7.80.3, which can be solved by downloading patches from IAR.
According to the Posthttp://www.stmcu.org/module/forum/forum.php?mod=viewthreadtid=610247 in the form of finishing. Error screenshot
Patch Download
Http://supp.iar.com/Com
Every time I use a USB cable to plug in the computer interface will prompt "device can improve performance" small series always want to know the reason.
Today, when I go to the forum, I understand, share to everyone
is because your motherboard USB port is different has 1.1 of 2.0 of 3.0 because you plug in the USB port is relatively low so there will be a hint you can ignore him can also be inserted into the other mouth to try to plug in a better mo
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.