0
我嘗試使用我的RSS閱讀器應用程序進行自動更新功能,因此它會在每次設置時發送請求,而無需執行任何操作,如單擊任何按鈕。Blackberry - 使用ListField自動更新新聞內容
我做了使用單場這樣的饋送聚合:
int i=0;
while (i<vec.size()){
row = new TableRowManager();
prov = new LabelField(((BinNews)vec.elementAt(i)).getProv(),DrawStyle.ELLIPSIS){
protected void paint(Graphics g) {
g.setColor(Color.ORANGERED);
super.paint(g);
}
};
title = new LabelField(((BinNews)vec.elementAt(i)).getTitle(),DrawStyle.ELLIPSIS){
protected void paint(Graphics g) {
g.setColor(Color.BLUE);
super.paint(g);
}
};
desc = new LabelField(((BinNews)vec.elementAt(i)).getDesc(),DrawStyle.ELLIPSIS){
protected void paint(Graphics g) {
g.setColor(Color.BLACK);
super.paint(g);
}
};
date = new LabelField(((BinNews)vec.elementAt(i)).getDate(),DrawStyle.ELLIPSIS){
protected void paint(Graphics g) {
g.setColor(Color.ORANGERED);
super.paint(g);
}
};
link = new LabelField(((BinNews)vec.elementAt(i)).getLink(),DrawStyle.ELLIPSIS){
protected void paint(Graphics g) {
g.setColor(Color.BLACK);
super.paint(g);
}
};
rows.addElement(row);
setSize(rows.size());
row.add(prov);
row.add(date);
row.add(title);
row.add(desc);
i++;
}
請指教我應該怎麼做,使之自動更新。謝謝!
嘗試看看在推送通知 – alishaik786
的是,任何參考? – grcnatalia
在我們的黑莓樣品 – alishaik786