腦容量延伸計畫
Google 表示:父母生大腦給你是給你算東西,不是給你記東西的。
2012年6月18日 星期一
Change ROM For Nexus Phone
Galaxy Nexus & Nexus S
官方 ROM 下載點
https://developers.google.com/android/nexus/images?hl=zh-TW
直接把電池拔下看手機背面的資訊,分辨自己手機的型號。
下載自己手機的 ROM
手機關機後,按住開關和音量鍵進入 Bootloader 模式。
解壓縮後執行 flash-all.sh
Root Yout Galaxy Nexus
參考:
http://www.modaco.com/topic/348161-01-feb-r4-superboot-rooting-the-gsm-lte-galaxy-nexus/
下載 Superboot r4 GSM,台灣是GSM。
在 Mac 上的話,用 command line 執行
install-superboot-mac.sh
2012年6月13日 星期三
Use BitmapRegionDecoder Before Android API Lv10
參考:
http://stackoverflow.com/questions/10035169/how-can-i-use-bitmapregiondecoder-code-in-android-2-2-2-froyo
似乎是找出 android 的source 和 native code。
放到自己的 jni 中,用 NDK build 起來。
2012年6月10日 星期日
Decompile Android apk
參考:
http://a4apphack.com/security/sec-code/extract-android-apk-from-market-and-decompile-it-to-java-source
下載完後,大概只要10 秒鐘。
使用 root 過的手機,從 /data/app 取出 .apk 檔。
下載 dex2jar ,執行 dex2jar.sh YOUR.apk,將 apk 轉為 jar 檔。
http://code.google.com/p/dex2jar/
下載 JD-GUI 來看 jar 檔內的程式碼。
http://java.decompiler.free.fr/?q=jdgui
2012年6月6日 星期三
NCR Encode In Java
到 Apache 下載 jar 檔
http://commons.apache.org/lang/download_lang.cgi
使用 StringEscapeUtils.escape() 即可。
參考:
http://stackoverflow.com/questions/2825985/how-to-convert-from-html-to-utf-8-in-java
2012年5月28日 星期一
Qualcomm AR Return Frame To Byte Array
https://ar.qualcomm.at/arforums/showthread.php?t=314
2012年5月22日 星期二
Cocos2d-x Set Background Transparent
Cocos2d-x是一套可以支援多個平台上開發的 2D Game Lib
似乎有請到 Cocos2d 原作者加持,目前(May 2012)活躍度頗高。
http://www.cocos2d-x.org/
將背景設為透明(如果有需求是在後面疊相機的View)
http://www.cocos2d-x.org/boards/10/topics/4804
setZOrderOnTop(true);
http://stackoverflow.com/questions/2034822/android-opengl-es-transparent-background
2012年4月29日 星期日
Missing Translation When Export
不知道在哪一版的 Android SDK Tool 將 ANDROID_LINT_COMPLETE_REGIONS 改為要檢查。
在 Export 時會出一海票錯。
在 Mac OS 用 Eclipse 的話,Eclipse > Preference > Android > Lint Error Checking
的 Correctness: Messages > MissingTranslate
將 Severity 從 Fetal 改為 Warming 之類的。
不過秉持著做出好的 App 的良心,不建議大家把它改掉。
當然!我很沒良心的改掉它了。
2012年4月26日 星期四
Intent ACTION_SEND Share URL To Facebook
Intent intent = new Intent(Intent.ACTION_SEND);
intent.setType("text/plain");
intent.putExtra(Intent.EXTRA_TEXT, "http://www.google.com/"); startActivity(Intent.createChooser(intent, "Share With"));
這樣就可以直接在 FB 上分享網址,內容只能放網址!
當然,這方法有一好沒二好,因為是text/plain,所以Email就不能變成連結格式。
2012年4月22日 星期日
CSS3 Easing Testing
http://matthewlein.com/ceaser/
較新的文章
較舊的文章
首頁
訂閱:
文章 (Atom)