How i can display progress/indicator dialog in Blackberry?

对着背影说爱祢 提交于 2019-12-29 09:17:11

问题


i am developing app in 5.0 version. in my app there is database so when data is coming from db it is taking time so i have to put progress dialog in between. i want to open dialog when data is coming when it fill in all fields then it would be dismiss. does any body have idea for this please send me.

Thanx in advance.


回答1:


Check this article http://supportforums.blackberry.com/t5/Java-Development/Sample-quot-Please-Wait-quot-screen-part-1/ta-p/493808

This article is intended provide a fully functioning "Please Wait" sample Popup Screen. It consist of 3 Parts, each part with its own sample code. The most relevant sample to you is PleaseWait3.zip which is located in the part 3 (last parT) since it contains progress bar sample code.

When running it, make sure you change the address of the file to be downloaded in the "Test that gives percentage updates" to a valid one since the existing one is invalid (you can use this one for example http://docs.blackberry.com/en/developers/deliverables/18095/BlackBerry_Java_SDK-Development_Guide--1239696-0730090812-001-6.0-US.pdf).




回答2:


Use a GaugeField as described here: http://docs.blackberry.com/en/developers/deliverables/18125/Gauge_field_1303006_11.jsp



来源:https://stackoverflow.com/questions/9373778/how-i-can-display-progress-indicator-dialog-in-blackberry

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!