实现“摇一摇”功能,其实很简单,就是检测手机的重力感应,具体实现代码如下:一、在 AndroidManifest.xml 中添加操作权限二、实现代码package com.xs.test;import android.app.Activity;import android.hardware.Sens...
分类:
移动开发 时间:
2015-03-19 06:09:21
阅读次数:
177
Intel提供了一个叫HAXM的虚拟硬件加速技术,全称为:Intel Hardware Accelerated Execution Manager.
只要你的CPU是intel的产品并且支持VT(virtualization Technology)就可以使用HAXM技术将你的模拟器的速度提升至真机的水平。目前此技术支持苹果的Mac系统和Windows系统,但Linux平台不在此列。
要知道And...
分类:
移动开发 时间:
2015-03-18 14:06:13
阅读次数:
286
android源码目录下的build/envsetup.sh文件,描述编译的命令- m: Makes from the top of the tree.- mm: Builds all of the modules in the current directory.- mmm: Builds all...
分类:
其他好文 时间:
2015-03-11 21:22:50
阅读次数:
140
1.virtual memory =physical memory + swap2.page fault:a type ofinterrupt, calledtrap, raised by the hardware when a running program accesses amemory pa...
分类:
其他好文 时间:
2015-03-10 21:11:42
阅读次数:
127
理解进程控制的原理对于理解和修改fio project非常的重要。"fio is an I/O tool meant to be used both for benchmark and stress/hardware verification."...
分类:
编程语言 时间:
2015-03-08 23:07:46
阅读次数:
484
selectComputers.Factoryas廠別,
Computers.Departas部門,
Computers.idas財產編號,
Computers.Owneras使用者,
Computers.Accountas帳戶,
Computers.Locateas存放位置,
Hardware.OSas操作系統,
Hardware.CPU,
Hardware.Computer_Typeas主機型號,
Hardware.Ramas內存,
concat(ce..
分类:
其他好文 时间:
2015-03-08 01:37:42
阅读次数:
161
Android Studio 运行应用的时候,提示错误: emulator: ERROR: x86 emulation currently requires hardware acceleration!
Please ensure Intel HAXM is properly installed and usable.
CPU acceleration statu...
分类:
移动开发 时间:
2015-03-07 18:48:39
阅读次数:
2220
gps.conf是gps的配置文件,这里面常用到的DEBUG_LEVEL配置项是gps HAL层logcat的开关,搞清楚这个配置项的解析流程同样对整个gps.conf的解析有很大的帮助,这里来走一下flow。hardware/qcom/gps/loc_api/libloc_api_50001/gps.c const GpsInterface* gps__get_gps_interface(stru...
分类:
其他好文 时间:
2015-03-06 19:09:11
阅读次数:
714
gps.conf是gps的配置文件,这里面常用到的DEBUG_LEVEL配置项是gps HAL层logcat的开关,搞清楚这个配置项的解析流程同样对整个gps.conf的解析有很大的帮助,这里来走一下flow。
hardware/qcom/gps/loc_api/libloc_api_50001/gps.c
const GpsInterface* gps__get_gps_interf...
分类:
其他好文 时间:
2015-03-06 17:10:56
阅读次数:
579
Default (and possibly architecture dependents) HAL modules go here. libhardware.so eventually should contain *just* the HAL hub(hardware.c), everythin...
分类:
移动开发 时间:
2015-03-05 16:33:38
阅读次数:
160