Wednesday, August 15, 2012

立法會重要表決紀錄 Android 版 v1.0 推出

立法會選舉在即, 過去有很多極大爭議的議案在立法會表決, 就讓我門回顧一下各議員的投票意向吧:

下載:







Monday, August 13, 2012

Google Now 小小心得 (2)

各大球賽聯賽即將開鑼, 今次教大家如何在 Google Now 中顯示各位關心的球隊卡片.

有使用 Google Now 的朋友都應該會留意到 Sports 卡片中的設定是灰掉了的, 即大家不能在設定中增加球隊, 其實這個設定只是用來刪除球隊之用. 要增加球隊, 你需要跟以下的步驟設定:

首先登入自己的 Google Dashboard: https://www.google.com/dashboard/ , 於 Account 中點選 Manage account > Go to web history > 啓動 Web History.

完成後便可以在 Google Now 中搜尋你喜愛的球隊名稱, 如該球隊在最近有比賽的話, 你就可以看見比賽結果的卡片了.



Thursday, August 9, 2012

語音搜尋戰: Google Voice VS Siri

網上有朋友 Jean-Louis Nguyen 製作了以下的影片, 他對 Google Voice 發問了 40 多個問題, 讓大家可以了解 Google Voice 強大的搜尋能力, 請特別注意最後一個問題!



其後 CaptainPrad 對 iPhone iOS6 的 Siri 作了相同問題的測試:



最後還有 TechnoBuffalo 的 side-bye-side 測試, 搜尋能力, 速度一目了言:



在簡單的問題上兩者不會有太大分別, 但比較複雜的問題上, Siri 所提供的搜尋結果很多都到喉唔到肺, 搜尋能力及速度上始終及不上靠搜尋器起家的 Google Voice.

Friday, August 3, 2012

Google Now 小小心得

可能有很多香港朋友都見過, 經 Google Now 搜尋的結果跟外國朋友不大相同. 就如跟人物相關的資料時, 外國朋友的搜尋結果一般都會有人物相片顯示. 但為可香港朋友(或非美國本土)就沒有顯示呢? 

以往近似問題最常見的解決方法是設定系統語言為 English (U.S.), 但在 Google Now 卻不能用這個方法解決. 原來只要在 settings>accounts >Google>Search, 把 Seach on google.com 勾選了就可以. (否則在香港而言則以 google.com.hk 搜尋) 


設定前:

設定後:

Credit to Lewis McGeary

Wednesday, July 11, 2012

Jelly News v0.4.2 released! (Was named GReadNotifier)

"GReadNotifier" has been renamed to "Jelly News"!!! Now fully support Jelly Bean's Expandable Notification. (See the screenshots below!)

Jelly News links your Google Reader and show your favorite news in notification bar. Read your feed anytime even running other apps on top!

Before using the app:
1. You need a Google account
2. Subscript your favorite news channel in Google Reader

App Instructions:
1. Add your google account in preferences page
2. Press "On" to start the background service
3. Wait for the news update
4. Expend the notification to read the news if you are using Jelly Bean
5. Or click the notification to read the full article
6. Swipe the screen to turn to last or next news

 

Wednesday, July 4, 2012

Android 新 UI 功能向後支援總匯

由 3.0 開始,Google 發表了不少新的 UI 功能以加強用戶體驗,計有 3.0 發表的 Action Bar、Fragment 、 Property Animation。3.0 發表並於 4.0 大幅進化的 Holo Theme,4.0 發表的 Grid Layout,4.1發表的 Notification, 豐富 Activity 轉換動畫的 ActivityOptions 等。大量新功能要向下支援舊版本確實是開發者一大煩惱。幸好很多有心人為了減少其他開發者的時間,發表了不少支援 Library,令開發者可以把時間專注於本身軟件的功能上。下面是一個支援庫總匯,希望開發者可以更新自家軟件並用盡 4.0 UI 功能,使用家不用再忍受新舊 UI 軟件同時使用的煩惱:
Action Bar:
ActionBarSherlock
http://actionbarsherlock.com/

Fragment:
Google 自家出品的 Support library
http://developer.android.com/tools/extras/support-library.html

Animation:
NineOldAndroid
http://nineoldandroids.com/

Holo Theme:
Holo Everywhere
https://github.com/ChristopheVersieux/HoloEverywhere

Grid Layout:
android-gridlayout
https://github.com/dlew/android-gridlayout

Notification:
NotificationCompat2 (UI 上舊版本不會有變化, 但新 api 不會令版本舊 force close )
https://github.com/JakeWharton/NotificationCompat2

ActivityOptions:
ActivityCompat2
https://github.com/JakeWharton/ActivityCompat2

[更新 NotificationCompat2, ActivityCompat2]

Tuesday, June 26, 2012

Android device 多逹 4000 種, 不同螢幕大少/解像度會否成為開發者的致命傷?



早前有報導指 Android device 多逹 4000 種, 亦因此為開發者帶來不少難度. 其中, 各種不同螢幕大少/解像度會否成為開發者的致命傷?


要設計一個能支援所有 Screen Size 的 UI 主要考慮到三點, 一是螢幕大小 , 二是螢幕密度 , 三是顯示方向.


一, 螢幕大小歸納了四種: small, normal, large, and xlarge. 由 1.6 版本開始, Google 已經向開發者說明 UI 設計應該使用 Density-independent pixel (dp / dip) 作為計算單位. 所以, 首先注意的是每一件元件都要以 dp 來作單位, 而不是 px. 再配合不同 Qualifier 就可以為不同大小的螢幕設定不同的排版 (如: layout-small/, layout-xlarge/). 排版時要善用 weight 及 9.patch 圖片, 這樣系統顯示版面時會自動為不同螢幕大小修正長度,


二, 螢幕密度大概分為 ldpi, mdpi, hdpi, xhdpi 及 tvdpi(Google TV用及新的 Nexus 7), 根據(一)的排版, 就可以製作不同大小的圖像應用到不同密度的螢幕. 圖像大小可以以 mdpi 作為參巧值, 如一個 50x50px 的圖片, 在 hdpi 可以製作成 75x75px. 除質素提高外, 較大的圖像所製作的按鈕在高密度的螢幕會較為好按. 如果用家的設備沒有相應的圖像資源, 系統則會自動縮放現有的資源顯示. 如要偷懶的話, 可以只為 hdpi 製作圖像, 但細小的螢幕可能會出現圖像過大的情況, 而自動縮放亦都會使圖像質素下降.


三, 基本上只要為(一)所排的版面再以不同方向排版一次, 如有需要的話可以配合 Fragment 為不同的方向製作不同版面, 這個有機會再講.


如一切順利的話, 你的應用相信已經可以支援市場上九成九的螢幕了。相信第一次製作全螢幕支援的軟件會感到困擾, 但一掌握了技術的話, 以後只要作幾個重點測試已經足夠了. 況且就算做得不太好, 亦只會"比較難睇", 軟件還是可用的. 相信不會成為開發者的致命傷.