连接到数据库时的 Android 进度对话框

发布于 2024-12-16 02:12:15 字数 304 浏览 4 评论 0原文

我有一个 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文