2009/06/11
The long way to port my onlinedic on Android platform
Cannes.France
坎城除了大家比較熟悉的海邊的星光大道外,
其實在車站的另一個方向有個舊城區。
跟海邊的人潮比起來,
這兒顯得寧靜許多(不過沒有上空美女就是了。
看著清一色的橘紅色屋頂和遠方的山水,晒著不會太炙熱的陽光,
這兒真的很適合度假。
難怪在Bienvenue chez les Chi'tis裡的那個老婆,那麼想要搬到法國南部;
而在南法,特地搬來這兒住的英國人也是屬一屬二多的。
****
After glancing through the basic documents of Android SDK, I still have a lot of work to do before porting my onlinedic to this platform:
1. Find the UI components that I need:
1.1 EditControl
1.2 Button (for start searching)
1.3 HTML viewer
2. How to create and use its menu
3. Find the component to open http requests
4. Find the component to post-process the received html file
As for item 1, it's not so difficult because the UI components I need are few.
Except for the 1.3 HTML viewer, I spent some time to make it work.
First of all, the component to display html content on android is
android.webkit.WebView
You can create this component in the resource and find it by id in the java source code.
Secondly, you need to add a permission line in the Manifest xml file in order to have the access to load URLs.
<uses-permission android:name="android.permission.INTERNET" />
Since I will only use this component to display the processed results of the html, I don't have to study too much about what actions it supports.
As for 2, 3, and 4, I will update later once I know how to accomplish them.
voila, here's the result of today's work:
****
好久沒到韓風饌吃東西了。
久久吃一次也是不錯的。
新拿到的傢伙太大隻了。
拍起照來手會不穩。
不過,看電子書應該很過癮吧。
訂閱:
張貼留言 (Atom)
中國 App 商業模式 -- 王泌
很有系統地介紹了中國近幾年比較大的幾十個 app,包含他們主要的商業模式,投資者,和特色在哪裡。對於想要了解中國 App (網路服務) 市場的人來說,會是個很好的入門書。雖然已經是兩三年前的資料了,這兩三年又有了很大的變化,但依然是個很好的起點。
-
Sushi.Taipei le passe simple(簡單過去式),唯一一個還沒學到怎麼動詞變化的時態,所以趁還有力氣時,先把它寫一遍。這是一個主要用於書寫的時態。一般會話時,對於過去的事情,不是用l'imparfait就是用le passe compose在描述。了...
-
(山寺.日本) 幾乎快忘了當初有拍這張照片。記憶力真的愈來愈差了。 幾年前的藏王行,途中有在山寺稍做停留。 山寺是個小鎮,鎮上最有名的(或是目前我還記得的…),就是它建在山上的寺廟。 上山的路很陡,想必當初寺廟蓋得也很辛苦吧。 到了山腰或是山頂,就可以放眼往山谷和另...
-
(Jellyfish.Osaka.Japan) 去水族館看水母,已經成了到各地水族館既定的行程。在微光下,要拍攝出動人的水母照片,難度頗高。若是能拍攝到,當天的心情一定會特別好。 **** 新版的教育廣播電台網站,把原先可以直接下載的連結全變成了網頁。有些課程只能線上...
沒有留言:
張貼留言