find . -name *.java -type f -exec cat {} \; | wc -l
2010年12月10日 星期五
2010年5月23日 星期日
Android "insufficient permissions for device "
當使用USB連接到device的時候,出現了"insufficient permissions for device
", 下面是我的做法:
接下來就可成功連接到device了
", 下面是我的做法:
$ sudo -s
$ ./adb kill-server
$ ./adb start-server
接下來就可成功連接到device了
2010年5月14日 星期五
檔案分割與合併
分割
split -b size file_name prefix.
合併
cat prefix.a* > file_name
split -b size file_name prefix.
split -b 1m phrase.db phrase.合併
cat prefix.a* > file_name
cat phrase.a* > phrase.db
2010年2月20日 星期六
JarFile
JarFile jar = new JarFile(file);
// get file entry from the JarFile
JarEntry entry = jar.getJarEntry("file_name");
// get file stream to prepare parsing this file
InputStream input = jar.getInputStream(entry);
2010年2月8日 星期一
Build Image Language
append this line "PRODUCT_LOCALES := zh_TW en_GB es_US ja"[...other local
language] at end of [top-dir]/build/target/product/generic.mk if compiling
generic, note,zh_TW must be first position
PRODUCT_LOCALES := \
en_US \
de_DE \
zh_CN \
ru_RU \
reference:
http://pdk.android.com/online-pdk/guide/index.html
http://www.johandekoning.nl/index.php/2009/06/08/building-android-15-building-the-source/
language] at end of [top-dir]/build/target/product/generic.mk if compiling
generic, note,zh_TW must be first position
PRODUCT_LOCALES := \
en_US \
de_DE \
zh_CN \
ru_RU \
reference:
http://pdk.android.com/online-pdk/guide/index.html
http://www.johandekoning.nl/index.php/2009/06/08/building-android-15-building-the-source/
2009年12月10日 星期四
Eclipse 在 Ubuntu 9.10 的視窗問題
在Ubuntu 9.10下,想透過ADT外掛來新增AVD,但卻一直沒法把視窗叫出來
後來執行下面的command,就可以解決這個問題
但在9.10下開發Android,感覺似乎相當不穩!
後來執行下面的command,就可以解決這個問題
export GDK_NATIVE_WINDOWS=true但在9.10下開發Android,感覺似乎相當不穩!
2009年11月20日 星期五
Ubuntu 下安裝 sh 檔
1.首先把 .sh 檔拷貝到某目錄下,ex:/usr/local/
2.執行 chmod command
3.執行 .sh 檔
2.執行 chmod command
sudo chmod +x *.sh3.執行 .sh 檔
sudo sh ./*.bin
訂閱:
文章 (Atom)