source命令:
source命令也称为“点命令”,也就是一个点符号(.)。source命令通常用于重新执行刚修改的初始化文件,使之立即生效,而不必注销并重新登录。
用法:
#vim ~/.bashrc
#source ~/.bashrc 阅读全文>
发表于 @ 2010年02月03日 20:07:00 | 评论( loading... ) | 举报| 收藏
假定存在 linux kernel 的配置文件 arch/arm/configs/smartq7_android_nfs_defconfig
现在编译内核
#make smartq7_android_nfs_defconfig
#make ARCH=arm CROSS_COMPILE=/usr/local/bin/arm-eabi-devel-阅读全文>
发表于 @ 2010年02月03日 20:02:00 | 评论( loading... ) | 举报| 收藏
今天有时间小看一下Android 的Makefile, 终于稍有明白Android 编译系统是如何通过环境变量 TARGET_PRODUCT 来决定编译定制product.1 首先, 编译Android 代码 通常情况下使用 Command:# make showcommands这实际上等价于下面的完整命令 (具体参见 build/core/envsetup.mk )# TARGET_ARCH=arm TARGET_PRODUCT=generic TARGET_BUILD_TYPE=release make showcommands可见,默认情况下编译系统认为TARGET_PRODUCT 是generic 的那如何编译特定产品的Android呢?这就需要查看Android Makefile是如何解析环境变量TARGET_PRODUCT的。Android Makefile 的引用关系是这样的阅读全文>
发表于 @ 2010年02月03日 15:59:00 | 评论( loading... ) | 举报| 收藏
Building For Dream Or SapphireThe basic manifest for donut (and above) defines which projects are needed to do a generic build for flashable Dream and Sapphire devices (i.e. respectively the Android Dev Phone 1 and the Google I/O device).
This instructions are ONLY meant to be used with Android Dev Phone 1 and the Google I/O device, as those are the only devices covered by there instructions that are explicitly specified to be flashable with custom builds. Don't forget to delete the f阅读全文>
发表于 @ 2010年02月03日 15:14:00 | 评论( loading... ) | 举报| 收藏
http://www.howtoforge.com/how-to-enable-adobes-flash-player-in-google-chrome-ubuntu-9.04-p2
Open a terminal (Applications > Accessories > Terminal):
If the Flash plugin is already installed for Firefox, we have to find out where it is located:
sudo updatedb
sudo locate libflashplayer.so
If it is installed, output should be similar to this one...
falko@falko-desktop:~$ sudo locate libflashplayer.so
/opt/Adobe AIR/Versions/1.0/Resources/l阅读全文>
发表于 @ 2010年01月30日 15:34:00 | 评论( loading... ) | 举报| 收藏
scan
The process by means of which a wireless network client finds a wireless network:
• Passive scan: walk around with a laptop looking for signals (done
aggressively, this is called warchalking, wardriving, etc.) The laptop
software listens for beacon frames from other wireless devices.
• Active scan: seeking a specific SSID (wireless network identifier), a
laptop or other wireless device broadcasts an association request frame
(also called a probe).阅读全文>
发表于 @ 2010年01月28日 14:54:00 | 评论( loading... ) | 举报| 收藏
Blog from http://forum.xda-developers.com/showthread.php?t=552846
I've just pushed new Hero Java app into my rogers build and it works fine.
What you basically need is:
Jbed.apk (install with adb install)
libjbedvm.so (adb push /system/lib) - remember to remount as RW.
I strongly suggest to run linux-swap (as it killed all my applications and hanged for some time without it).
Files taken from Drizzy's build.Attached Filesjava.zip (1.95 M阅读全文>
发表于 @ 2010年01月26日 17:20:00 | 评论( loading... ) | 举报| 收藏
使用Eclipse 的 Junit 工程,远程测试Android 板子上JNI 实现, 需要配置 adb 到 socket模式.
Android JNI function Remote Debugging, to a real Android board by using of Eclipse junit project and adb. 阅读全文>
发表于 @ 2010年01月11日 10:34:00 | 评论( loading... ) | 举报| 收藏
#du -sh *
看整个当前目录的详细各个子目录的大小
#df -h
看硬盘上各个分区的使用的大小。阅读全文>
发表于 @ 2010年01月08日 13:00:00 | 评论( loading... ) | 举报| 收藏
我也要试着在Q7上试验一下
转自http://hi.baidu.com/aokikyon/blog/item/1e16931e675de11440341753.html
编译Android操作系统(2)——添加Wifi支持
Rockie Cheng
Now,zd1211b无线网卡已可使用wpa_supplicant连接无线网络,下一步要让android能够识别无线网卡。
Android默认使用wifi.c加载无线网卡驱动模块,如果直接编译进内核需要做一定修改。
btw:需要内核支持wifi和dhcp
(1)build/target/board/idea6410/BoardConfig.mk
add
# Wifi related defines
BOARD_WPA_SUPPLICANT_DRIVER := WEXT
(2)external\wpa_supplicant\.config
# CONFIG_NO_WPA=y
CONFIG_阅读全文>
发表于 @ 2010年01月05日 14:51:00 | 评论( loading... ) | 举报| 收藏
转自
http://www.blogjava.net/hongzionline/archive/2007/09/19/146392.html
final 关键字 和 static 用法
一、final
根据程序上下文环境,Java关键字final有“这是无法改变的”或者“终态的”含义,它可以修饰非抽象类、非抽象类成员方法和变量。你可能出于两种理解而需要阻止改变:设计或效率。
final类不能被继承,没有子类,final类中的方法默认是final的。
final方法不能被子类的方法覆盖,但可以被继承。
final成员变量表示常量,只能被赋值一次,赋值后值不再改变。
final不能用于修饰构造方法。
注意:父类的private成员方法是不能被子类方法覆盖的,因此private类型的方法默认是final类型的。
1、final类
final类不能被继承,因此final类的成员方法没有机会被覆盖,默认都是final的。阅读全文>
发表于 @ 2010年01月05日 14:15:00 | 评论( loading... ) | 举报| 收藏
1.
super是调用父类的构造函数
2.
this调用的同类的构造函数.
3.
3.1
synchronized关键字的作用域有二种
3.1.1
是某个对象实例内,synchronized aMethod(){}可以防止多个线程同时访问这个对象的synchronized方法(如果一个对象有多个synchronized方法,只要一个线程访问了其中的一个synchronized方法,其它线程不能同时访问这个对象中任何一个synchronized方法)。这时,不同的对象实例的synchronized方法是不相干扰的。也就是说,其它线程照样可以同时访问相同类的另一个对象实例中的synchronized方法;
3.1.2
是某个类的范围,synchronized static aStaticMethod{}防止多个线程同时访问这个类中的synchronized static 方法。它可以对类的所有对象实例起作用。
3.2
除了方法前用synchronized阅读全文>
发表于 @ 2010年01月05日 14:01:00 | 评论( loading... ) | 举报| 收藏
About the linux system call : ptrace, wait, wait_pid, WIFSTOPPED , WSTOPSIG and etc1. Part Ihttp://www.linuxjournal.com/article/61002. Part II http://www.linuxjournal.com/article/6210阅读全文>
发表于 @ 2009年12月22日 10:45:00 | 评论( loading... ) | 举报| 收藏
Smartq7 NFS 启动 Android.阅读全文>
发表于 @ 2009年12月21日 10:16:00 | 评论( loading... ) | 举报| 收藏
1.
First check the
Android -> Settings -> Applications -> Unknown sources to be set
2.
make sure the /data/app
drwxrwxrw- root root 2009-12-19 16:18 app
drwx------ system system 2009-12-19 16:18 app阅读全文>
发表于 @ 2009年12月20日 00:06:00 | 评论( loading... ) | 举报| 收藏