[Java] Type Erasure: Implement the Interface with Two Generic Types
在 Java 實作擁有 Generic Type 的 Interface 時,可能會希望同時 implement 兩種不同 Type 的 Interface。 狀況如下,有個 class 需要接收兩種不同的 Future Task 結果, – 要被 implement 的 interface public …
difference
在 Java 實作擁有 Generic Type 的 Interface 時,可能會希望同時 implement 兩種不同 Type 的 Interface。 狀況如下,有個 class 需要接收兩種不同的 Future Task 結果, – 要被 implement 的 interface public …
最近打算做些翻譯應用,本來 Google Dictionary API 是首選,但去年關閉了,取而代之的是Google Translate API,可惜的是,一點免費的使用幅度也沒有,開口就是要 $20 per 1M characters of text,對我來說,如果只是要初期嘗試,卻要特別花這樣的費用,除了麻煩之外 …
雖然很久之前就因為下載 Google Android Source Code,因此使用 repo 來下載及管理多個 Git Repository,雖然對這個方便的 tool 很好奇,但一直沒有去多加探究。而且可惜的是,在網路上的資料,多半只提到如何使用 repo 來下載 Android Open Source Proj …
每個接觸過版本控制系統的開發者,想必都遇到過一個問題「揪竟~~要不要把這個檔案加入版本控管呢?」,會提出這樣的問題,通常是當時還不了解程式的建置過程 (build process),不了解建置前需要哪些額外的文件供建置工具 (build tool) 使用,也不知道過程中會產生哪些附屬品,所以才會有這樣的疑問。但有疑惑不 …
前陣子我的 Git 出了點問題,使用 git log 時,畫面上都是些沒有 color 的字串,而且還會包含色彩碼,一時間找不到發生原因,索性就順便更新 Git 到新版本。 從官網上看到的版本是 1.7.9,直接下載 Source Code 來編譯,編譯程序就是照一般的流程,如下, $ gi …
簡述: Version Control 及 Code Review 在軟體開發流程上,是非常重要的兩個部份。因為在 Android Open Source Project 上,是使用 Git 並搭配 Gerrit Code Review 來進行開發,所以這邊也來談談該怎麼善用這兩個工具的功能,方便做 Code …
耳聞 tmux 非常好用,所以來看看該怎麼開始使用這個 tool。 安裝方式: 很簡單,在 Ubuntu 下只要透過 aptitude 即可。 $> sudo aptitude install tmux 操作方式: 直接在 command line 執行 tmux,即可運行 tmux tool。 在進入 tm …
Sometimes, I have to check whether the system property has been changes or not. The requirement usually comes form customer for providing the preview device qui …
We can design the icon for android application. When we want to put our icon, we should follow the rule of design on the Android. In general, we have to provide …
In the Set the Partition Size for Android Emulator, I explain that how to set the partition size for Android emulator. But, in that way, you should execute the …