會開新分頁
- Jun 11 Wed 2014 23:59
人生的選擇
- Jun 08 Sun 2014 19:55
Android asynctask
- May 28 Wed 2014 21:37
Widget 設計
通过修改<appwidget-provider> 中的minWidth 和minHeight值,
- <appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android"
- android:minWidth= "250dip"
- android:minHeight= "40dip"
- android:updatePeriodMillis= "86400000"
- android:initialLayout= "@layout/test_widget"
- >
- </appwidget-provider>
dp大小对应的cell 数如下表所示,4x1的widget的 android:minWidth= "250dip和 android:minHeight= "40dip"
本文出自 “whithin's” 博客,请务必保留此出处http://whithin.blog.51cto.com/690417/1184661
- May 20 Tue 2014 00:58
經YQL由經緯度找woeid的方法
感謝底下作者找到yahoo api 找woeid的方法
ref:http://wcn2002.pixnet.net/blog/post/115070251-ios-app%E9%96%8B%E7%99%BC(2)
經由經緯度可得到相對應的地點的woeid值
http://query.yahooapis.com/v1/public/yql?q=select woeid from geo.placefinder where text="37.416275,-122.025092" and gflags="R"
節錄:
"Lat/Lon可以藉由LBS取得,
- May 18 Sun 2014 01:59
解析XML前下載檔案
參考Mars的方式為了要下載檔案,獨立寫了一個類別HttpDownloader.java 方便以後的引用
避免不必要的重複代碼
HttpDownloader.java
------------------------------------------------
public class HttpDownloader {
private URL myurl=null;
public String download(String urlstr){
- May 18 Sun 2014 00:54
使用DOM解析XML
此處示範基本解析XML單項解析方式
當然接下來可以用自己的方式來遍歷解析
yahoo weather api
https://weather.yahooapis.com/forecastrss?w=2306179
<item>
- May 01 Wed 2013 19:09
cocos2dx 設定
- Feb 16 Sat 2013 18:48
[Cafe shop][Taichung]ALLO art Gallery Cafe(20130214)
This place is my friend Ansel recommend me, and he found it in internet.
He is always has full of good restaurant list,and I always can got some good place to go.
Tonight is still during of the Chinese new year time,and we drive fool around the Taichung city,try to seize the last vaction of tail.
We follow the google map's instruction and arrive in the alley.
It's quite a relax place
Stuff on the manu is not expensive nor cheap. (About NT150/ 1 cup)
- Feb 04 Mon 2013 22:27
[桃園][食記]大方蘭州拉麵館-有點感動的手工麵(20130204)
今天一夥四人無聊殺到Ikea殺時間,到了晚餐時間google了一下,
挑了一間網路上名店"大方蘭州拉麵館"
到現場跟我想像的拉麵店有落差,就是傳統小吃店的店鋪
反正就是殺進去吃,老板規定看電視只能看卡通台,老闆人很熱情解釋為什麼只看卡通台
不過結論是食物算是很好吃,而且麵條是現做,實在很有誠意,而且吃起來算是Q中帶硬的感覺
- Feb 04 Mon 2013 00:15
[韓國首爾][五天四夜]土俗村+仁寺洞+龍山商場+黎泰院+陳玉華 -Day4-20120507