This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pacman -Sy | |
pacman -S --needed python2 perl git gnupg flex bison gperf zip unzip sdl wxgtk squashfs-tools ncurses libpng | |
zlib libusb libusb-compat readline inetutils | |
pacman -S --needed schedtool | |
pacman -S --needed openjdk6 | |
## for x86_64? | |
pacman -S --needed gcc-multilib gcc-libs-multilib binutils-multilib libtool-multilib lib32-libusb lib32-libusb-compat lib32-readline lib32-glibc lib32-zlib | |
Install yaourt (& package-query): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Install ccache: | |
In Arch: | |
$ sudo pacman -S ccache | |
Or Ubuntu: | |
$ sudo apt-get install ccache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
网上已经有很多文章仔细介绍了Linux下JDK的安装步骤了。大家可以摆渡或google一下。这边我只想写下我安装的步骤,其实很简单,就两个步骤吧: | |
1.从sun网站下载JDK(记住要下载linux版本的),现在的是jdk-6u12-linux-i586-rpm.bin (记住要下载末尾是-rpm.bin的那个) | |
2.安装JDK。首先chmod a+x jdk-6u12-linux-i586-rpm.bin 给这个文件赋予可执行权限。然后切换到root权限下,执行./jdk-6u12-linux-i586-rpm.bin 这个文件 。 | |
Over!!! | |
不出意外地话,这样JDK就已经安装成功啦!!! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NOTE: You only need to do these steps the first time you build. If you previously prepared your build environment, skip to Download RomManager. | |
NOTE: | |
在准备开工之前,请务必确保硬盘工作空间不少于20G(最低不能低于15G),且不能是VFAT或NTFS格式。 | |
Install the ADB | |
Install the Android SDK. | |
Install the Build Packages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
以普通用户登录linux,解出android-sdk后,设置环境变量,然后运行adb devices会提示权限不够: | |
List of devices attached | |
???????????? no permissions | |
这是因为访问adb设备需要root权限。 | |
我们可以利用文件的set-user-id属性来解决这个问题: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://developer.android.com/reference/android/os/FileObserver.html | |
Monitors files (using inotify) to fire an event after files are accessed or changed by by any process on the device (including this one). FileObserver is an abstract class; subclasses must implement the event handler onEvent(int, String). | |
Each FileObserver instance monitors a single file or directory. If a directory is monitored, events will be triggered for all files and subdirectories (recursively) inside the monitored directory. | |
An event mask is used to specify which changes or actions to report. Event type constants are used to describe the possible changes in the event mask as well as what actually happened in event callbacks. | |
Warning: If a FileObserver is garbage collected, it will stop sending events. To ensure you keep receiving events, you must keep a reference to the FileObserver instance from some other live object. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
android下的按键布局和映射 | |
这个笔记整理一下使用usb键盘遇到的问题,比如添加usb键盘的keylayout,添加按键,修改按键映射等。 | |
本文参考了: | |
http://blog.csdn.net/kieven2008/archive/2011/03/26/6279975.aspx | |
http://blog.csdn.net/skdev/archive/2010/03/08/5355542.aspx | |
Android的用户输入系统,自下而上,分成如下部分: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://yuangu.tk/post-32.html | |
转自:http://www.cnblogs.com/MaxWoods/archive/2011/09/16/2179310.html | |
不知道有多少Android开发着对Android虚拟机的那悲剧的性能有意见,反正我的看法是:那速度实在是太坑爹了! | |
为什么Android虚拟机比iOS和WP7的虚拟机要慢很多呢?原因如下: | |
1. Android 模拟器模拟的是 ARM 的体系结构(arm-eabi),而 iOS 和 WP7 的模拟器的目标体系结构都是 x86 的,另外 iOS 的模拟器中运行的 App 也是编译为 x86 的。这样一来 Android 模拟器需要做一些额外的二进制翻译工作。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://gitorious.org/omap4-v4l2-camera/pages/Home |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://my.oschina.net/xishvaigo/blog/295855 |
OlderNewer