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月29日星期四
2010年4月21日星期三
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
訂閱:
文章 (Atom)