2012年3月26日 星期一

2012年3月8日 星期四

Intergate Zxing To Android Project

http://damianflannery.wordpress.com/2011/06/13/integrate-zxing-barcode-scanner-into-your-android-app-natively-using-eclipse/

2012年3月6日 星期二

Android Load Local Image To WebView

前提:
我已經把圖檔抓到Local端了,用 openFileOutput 寫入了。

方法1:
注意!!
用loadData時,要把 '#', '%', '\', '?' 分別轉換成 %23, %25, %27, %3f
且因為這個方法無法從遠端讀取資料,必須要把圖檔讀出來做過Base64 Encode
( Android 2.2 才有 Base64.java這個 Class,沒有需要自己去偷過來用!)


方法2:
個人較推薦,較不會犯錯。

2012年3月1日 星期四

Android afreechart

afreechart為android上一套免費的繪圖lib,是把jfreechart porting過來的。

Bug:
XYTextAnnotation 553行 應該為outlinePaintType
如果有設背景會讓字和背景色一樣,導致看不出來。
http://code.google.com/p/afreechart/source/browse/trunk/afreechart/src/org/afree/chart/annotations/XYTextAnnotation.java