连接到数据库时的 Android 进度对话框
我有一个 Android 应用程序,需要用户登录。登录后,他们可以从在线存储的数据库中检查之前输入过的数据。
当应用程序发出请求并等待 SQL 查询的结果时,我想使用 Android 进度轮之一说“正在加载...”或其他一些消息,但是我无法理解如何在任何地方执行此操作看。
该代码基本上发出 HTTP 请求,然后等待响应。一旦返回响应(登录详细信息“接受”或“拒绝”),应用程序就会知道该人是否输入了正确的详细信息。如果有,它将带他们进入主菜单,否则它会说它的用户名或密码无效。
当这种情况发生时,我将如何添加进度轮?
谢谢 汤姆
I have an android app which requires the user to login. Once logged in, they can check their data they have inputted once before from a database stored on an online.
When the app is making the request and waiting for the results of the SQL query I want to use one of the android progress wheels saying "loading..." or some other message, however I have failed to understand how to do this wherever I look.
The code basically makes a HTTP request and then waits for a response. Once the response has been returned ("accepted" or "declined" for login details) the app then knows if the person inputted correct details or not. If they have, it takes them to the main menu, else it says its an invalid username or password.
How would I go about adding a progress wheel while this is happening?
Thanks
Tom
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论