如何在黑莓中显示加载屏幕
我的黑莓手机有问题。
// Stream connection
streamConnection = (StreamConnection) Connector
.open(_url);
// Document Builder Factory
DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory
.newInstance();
DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
docBuilder.isValidating();
// Parsing inputStream
doc = docBuilder.parse(streamConnection.openInputStream());
doc.getDocumentElement().normalize();
NodeList list = doc.getElementsByTagName("*");
我想显示加载对话框,直到上面的任务解析器完成。因为在完成任务 XML 解析器之后,我必须使用它在屏幕上显示。
那么,如何显示加载对话框直到解析器 XML 完成? 请帮我 ! 非常感谢你!!!!!!!!!!!!!!!
I have a problem with Blackberry.
// Stream connection
streamConnection = (StreamConnection) Connector
.open(_url);
// Document Builder Factory
DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory
.newInstance();
DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
docBuilder.isValidating();
// Parsing inputStream
doc = docBuilder.parse(streamConnection.openInputStream());
doc.getDocumentElement().normalize();
NodeList list = doc.getElementsByTagName("*");
I want to display Loading Dialog until above the task parser is complete. Because after finished task XML parser, i have to use it for display on screen.
So, how to display Loading dialog until Parser XML is complete?
Please help me !
Thanks you very much!!!!!!!!!!!!!!!!!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您好,这是非常简单的任务,
以下链接将重定向您如何实施请等待屏幕
http ://supportforums.blackberry.com/t5/Java-Development/Sample-quot-Please-Wait-quot-screen-part-1/ta-p/493808
下载该 .zip 文件
接下来将小逻辑放入您的应用程序中,首先将所有解析概念放入 Thread 中,
例如我正在使用 xml 解析器演示,我将根据我们的要求进行转换,
您可以从任何地方调用它在哪里
hi this is pretty much easy task
following link redirect you how to implement Please wait screen
http://supportforums.blackberry.com/t5/Java-Development/Sample-quot-Please-Wait-quot-screen-part-1/ta-p/493808
download that .zip file
Next take small logic into your application firs take all your parsing concept into a Thread
for example i am taking xml parser demo and i will convert according to our requirement
you can call this from any where
在开始处理“XML 解析”模块之前,将
Screen
实例 (PopupScreen
) 放在显示堆栈上,并在完成后从显示堆栈中删除该屏幕。您可能需要覆盖该屏幕上的某些按键事件以满足您的需要,例如按下后退按钮时不执行任何操作。并在该屏幕上添加您的自定义对话框文本/动画。Put a
Screen
instance (PopupScreen
) on the display stack before start processing 'XML Parsing' module, and upon completion remove that screen from display stack. You may need to override some key press event on that screen that satisfy your need, e.g. do nothing on back button press. And add your customize dialog text / animation on that screen.在下面的链接中找到应用程序 (PleaseWait.zip) 以显示请稍候。
http://supportforums.blackberry .com/t5/Java-Development/problem-in-gaugfield-show-urgent/td-p/964925
find the application (PleaseWait.zip) in below link to show the please wait.
http://supportforums.blackberry.com/t5/Java-Development/problem-in-gaugfield-show-urgent/td-p/964925