Labels

Adventure Book 2.0 Headline Animator

推薦內容

Thursday, June 25, 2009

HTC推出G3 Hero桑 !



HTC推出新手機!

一樣是Android平台的Hero 算一算 他就是G3

看一下廣告影片吧



其他相關文章:


HTC Hero 實機照


HTC Hero 韌體的操作影片

HTC Hero vs. Magic 動手玩!

2009 年一堆 Android手機!

Monday, June 22, 2009

Supporting Multiple Devices

Read these first

Declaring Layout

Building Custom Components

Resources


常見Units


• Pixels (px)
• Millimeters (mm)
• Inches (in)
• Points (pt)
• Device independent pixels (dp)
• Scaled pixels (sp)

Thursday, June 18, 2009

Ajax on Android

Android’s Browser is based on WebKit + SquirrelFish


•WebKit v528.5, equivalent to Safari 4 beta
– Reports as 3.1.2 in the user-agent string -- oops!


• Includes Gears 0.5.17.0 (including location)








其他Google I/O 文章:


Google I/O 2011 重點整理


2011年的Chrome瀏覽器


2010年Google I/O Android 2.2 要來啦 ~

Monday, June 15, 2009

錯誤歸因

錯誤歸因是一種人常犯的錯誤。

比如A事件和B事件同時發生造成了C結果,但當事者誤認C結果為A事件所造成,其實是B。

--

唉,

工作上我常出現這樣的問題 :(

該好好檢討,

所謂的鬼打牆,就是因為錯誤歸因先起了個頭,

而自己一開始完全搞懂,就會走到錯誤的路上。

--

由於在某個已確定的檔案裡面找不到,就覺得應該是發錯 KeyEvent

然後在自己覺得問題所在的地方放Log檢查

結果什麼都沒得到,

於是覺得是不同層級的問題,

應該不是framework 而是再往下

於是找阿找 去追可能的路徑

推測如下:

EventHub.cpp

負責設定property

KeyCharacterMap.cpp

來load *kcm

KeyCharacterMap.java

這裡負責來抓keycode 以建立keymap

(會先確認device -> 找keycode ->)

KeyEvent.java

根據keymap 發keyevent

--

總之,心裡就想,那我應該要

1. 幫寫一個kcm
2. 找keycode 定義
3. 幫他加一個對應event
4. 接著在policy定義要做的行為

--

但是,走了這一段路之後,

發現要找的東西,不在那個檔案,而是在隔壁 ....

唉 所以一步錯步步錯 @@

--

因為用grep找關鍵字

我先找到了 xxxManager.java

就覺得是這裡了!

疑 怎麼沒有 然後就以為少了什麼 該自己去補起來

但同一個目錄明明就還有 xxx.java

我卻見木不見林

@@



--

另一個觀察切入點

為甚麼要有 xxxManager.java 跟 xxx.java ?

但有的時候又是 xxxService.java 配 xxxManager.java ?



xxxManager.java 通常都是 AIDL (Android Interface Definition Language)

AIDL is an IDL language used to generate code that enables two processes on an Android-powered device.

這應該要想一想 @@

Service 自己是一個process ?@@

還是很多個Service都在一個process內 ? @@

不懂阿不懂

參考資料:

Designing a Remote Interface Using AIDL

[轉]Android 的AIDL是啥?


--

AIDL

在Android中,每個應用程序都可以有自己的進程.在寫UI應用的時候,經常要用到Service.在不同的進程中,怎樣傳遞對象呢?

顯然, Java中不允許跨進程內存共享.因此傳遞對象,只能把對象拆分成操作系統能理解的簡單形式,以達到跨界對象訪問的目的.

在J2EE中,採用RMI的方式,可以通過序列化傳遞對象.在Android中,則採用AIDL的方式.理論上AIDL可以傳遞Bundle,實際上做起來卻比較麻煩.

AIDL參考文章之一

ReStart !

被中斷了一下

要重新開始嚕 :)

差點要真的說聲再會


Friday, June 12, 2009

什麼是 DRM ?

網路上查詢 DRM的定義結果:

* 數字版權管理(Digital Rights Management;簡稱:DRM)指的是出版者用來控制被保護對象的使用權的一些技術,這些 ...
zh-CN.wikipedia.org/wiki/DRM

DRM – 檔案受DRM管理,使用者只能依據該檔案的DRM屬性去進行操作

需要確認檔案的屬性 :

– FL (Forward Lock):
檔案可以自由在手機內使用,但是不可以散佈到其他手機,裝置或是網路上

– CD (Combined delivery):
檔案必須依據使用規範(定義在Right Object)來操作並且也不可以散佈出去

– SD (Separate delivery):
檔案可以自由散佈出去,使用者必須獲得Right Object後才可以使用檔案

--

應該不會搞混的

什麼是 DM ?

Tuesday, June 9, 2009

Is Android browser supports Content-Encoding : gzip ?

發現有人在google group 問了這個問題 :
Is Android browser supports Content-Encoding : gzip ?

(網址)

HI all

I am developing a application which launches automatically when the
user clicks on any link of pls / m3u in browser it works fine.

But some links the response from server is like bellow it dos't
launches my activity

i founded that the difference is only Content-Encoding: gzip is extra
in those not working links

The android browser also dos't support these links

url : http://dir.xiph.org/by_format/MP3

HTTP/1.1 200 OK
Date: Tue, 24 Mar 2009 06:22:48 GMT
Server: Apache/2.2.4 (Ubuntu) PHP/5.2.3-1ubuntu6.3
X-Powered-By: PHP/5.2.3-1ubuntu6.3
Content-Disposition: inline; filename="listen.m3u"
Content-Encoding: gzip
Vary: Accept-Encoding
Content-Length: 82
Connection: close
Content-Type: audio/x-mpegurl

How can i specify the Content-Encoding in intent filter

is Android browser supports Content-Encoding : gzip


Answer : No ~~~~

什麼是 EFS ?

What is EFS ?


網路上查詢 EFS的定義結果:


Encrypting File System


* 加密資料檔案的方法。每個檔案都會利用一個不受使用者的「公開/私密金鑰對」所支配、且隨機產生的金鑰 ...
www.cardweb.com.tw/card/CardISO/netsecurity.htm

http://en.wikipedia.org/wiki/Encrypting_File_System

什麼是 GZIP ?

網路上查詢 GZIP的定義結果:

# gzip 是GNU zip的縮寫,它是一個 GNU 自由軟件的文件壓縮程序。它是 Jean-loup Gailly 和 Mark Adler 一起開發的。 ...
zh-CN.wikipedia.org/wiki/Gzip

# Internet上免費提供的一個UNIX文件壓縮程序, 在UNIX環境中, 直接使用Gzip作為一個命令對文件進行壓縮操作。 ...
www.caep.cetin.net.cn/xy/chn_G.htm

Monday, June 1, 2009

無名之後是 ... Yahoo! 360°

Yahoo! 360° Is Closing: Action Required



Dear Yahoo! 360° customer,

To read this in Vietnamese,
please use the link at the bottom of the message.

We will be officially closing Yahoo! 360° on July 13, 2009, to focus our efforts on making your new profile on Yahoo! the place where you connect with the people who matter to you most. As a result, you will need to move your 360° information to your new profile before this date. After July 12, 2009, your content on Yahoo! 360° will no longer be accessible. Here are some details to guide you through this transition.


What you need to move to your new profile


Your 360° information will not be automatically transferred to your new profile on Yahoo!. To move your profile photo, nickname, and any personal status messages, you'll need to first save or download them before July 13, 2009. Once you've saved this information, you can later upload it to your new profile. Be sure to head over to your new profile soon so you can make it look just the way you want.

What to do with your blog

Be sure to take your blog with you as part of this transition process. To help, we've built a blogging tool for you in your new profile on Yahoo!. We've made the move easy; it takes just one click to take your posts with you. If you'd prefer to take your blog to a different website instead, you can download an archive of your posts and transfer them to your new blog space. Click here to read more about your blogging options.

Some content will not be supported in your new profile

Please note that your new profile will not allow mature content. Also, you will not be able to take the following with you to your new profile: your 360° inbox, testimonials, friend categories, local reviews, RSS feeds, tags, or custom theme. If you want to retain any of this material, we strongly recommend that you return to your pages and download it before July 13, 2009.

Your privacy settings are retained

Your privacy is important to us. Both your new profile and your blog contents will be set to "private". This means unless you change the setting, you will be the only one able to see your profile.

To help you through this transition, we've compiled a list of the most frequently asked questions and resources here.


Thank you for using Yahoo! 360°. We look forward to seeing you in your new profile on Yahoo!.

The Yahoo! Profile Team

--

應該不相關文章:

再會了,無名

Welcome to Taiwan ! 推薦台灣住宿