2010年4月29日星期四

multi-text in a list row

it is surpisely easy, from the notepad example,

private void fillData() {
// Create an array to specify the fields we want to display in the list (only TITLE)
- String[] from = new String[]{NotesDbAdapter.KEY_TITLE};
-//NotesDbAdapter.KEY_TITLE,

+ String[] from = new String[]{NotesDbAdapter.KEY_TITLE,NotesDbAdapter.KEY_BODY};
// and an array of the fields we want to bind those fields to (in this case just text1)
- int[] to = new int[]{R.id.text1};
+ int[] to = new int[]{R.id.text1,R.id.text2};
+
-
}
Then, in the row xml, add one more Textview which id is text2, so now we have price in the list. This same feature should be included in the first release of IStockDroid, anyway..now is not too late!

2010年4月21日星期三

2628 派息..



最近很少出文..因為小弟..見識有限..可以寫都寫得七七八八..看了2628的業績..因為改了會計準則,純利因而大升...其實並不是很滿意,尤其是內含值的增長..似乎比較慢了,如果而這個速度,2012年..2628.很難去到100蚊=___=

唯一感到安慰的是2628的派息是0.7 人民幣,比2007年是還要高! 不知是否管理層把前景看得非常樂觀,哈..反正現金到手..上年接近5千的股息..2009年小弟繼續儲股..所以今年股息接近2萬,希望下年會再多一點吧。

最近的下跌碓實是買貨好時機..大家好好把握吧!

2010年4月11日星期日

IStockDroid



It is my first andriod application which
-fetch the stock data from web(only yahoo)
-plot the graph in detail
-highlight some technical anlaysis

There may be still a lot of bug...let's see...I will fix it one by one.

setup
1.enter "finance.yahoo.com" in [data source url]
2.Select the default TA such as period, volume..
3.back to main sreen, press [menu] to add new stock to watch
4.type the stock name such in yahoo syntax, such as 2628.hk or goog
5.press the stcok name in main screen, it will download the data and plot graph