B4X FEED Wait For (Job) JobDone(Job as HttpJob) - stop user from pressing back key

اطلاعات موضوع

درباره موضوع در تاریخ, در دسته b4xfeed ایجاد شده و آغاز کننده آن practicalsoftمی باشد و موضوع آن: Wait For (Job) JobDone(Job as HttpJob) - stop user from pressing back key است. این موضوع تا کنون 41 بازدید کننده و, 0 پاسخ داشته و 0 بار پسندیده شده...
نام دسته b4xfeed
نام موضوع Wait For (Job) JobDone(Job as HttpJob) - stop user from pressing back key
آغاز کننده موضوع practicalsoft
تاریخ شروع
پاسخ‌ها
0
بازدیدها
41
پسندها
0
آخرین ارسال توسط PracticalSoft
Jun 6, 2020
11,559
4,422
I have a login screen, that obviously, the user logins in to.
A successful login takes them to the 1st screen where JSON data is downloaded from an HttpJob and added to a CustomListView. This takes about 2-3 seconds to complete.
From there, the user can touch a row in the CLV and it then takes them to the 2nd screen, showing them data related to the 1st screen.

If they press the back button 2 times from the 2nd screen, it takes them back to the Login screen, but it then it takes them back to the 1st screen where the JSON download has to complete. (this HttpJob call is made from the 1st screen Activity_Resume handler)
Not what the user expected.

I show a ProgressBar Indeterminate on the 1st screen, but they can ignore that and press the back button again anyway.
Either way, the 1st screen's download has to be completed with the JSON data, and populate the CLV.

This doesn't seem like a nice User Experience.

What can be done to have the HttpJob to complete before any user...



 

عقب
بالا