Last post Oct 05, 2017 12:46 PM by jimmy69
Sep 28, 2017 09:25 AM|jimmy69|LINK
i work since several month on an android project (xamarin - visual studio).
the project advanced that's the good news :)
I have a request to do and i think the solution who is propose it's not the correct way ...
I post this question here, because the forum xamarin when i post a question often i don't receive any reply :( ...
Imagine, employe has a smartphone and can scan a barcode, if this barcode is special i need to call a webservice .
follow the reponse of this web service i must to execute something WITHOUT USER INPUT ACTION !!!!
Ok nice job, but for me the problem will be the employe and the delay take by the webservice.
I explain, in the begining when the employe will receive the smartphone he scan very slow but for example after several month he can very fast ...
my fear, it's to develop this and when the user SCAN TO FAST the web service isn't return the response ...
What do you think about that ?
For me, the correct way will be :
user scan as fast as he wants, add a button when the job is finished (all product scanned) users click on button.
For each item scanned i call the web service with a progress dialog (android) that's all that's my solution
But if i implement the solution that my boss WANTS how i can WAIT the response to the webservice before to execute an other action ?
Any idea, links, experience are welcome :)
Thanks for you knowledge and your time
Sep 29, 2017 01:11 PM|Billy Liu|LINK
follow the reponse of this web service i must to execute something WITHOUT USER INPUT ACTION
According to your description, it feels like user can't do anything until the webservice done.
I'm not familiar with coding in android, but I think you try to do it with some thing like multiple threads.
Start a new thread when the user scan a barcode.
Oct 04, 2017 03:53 PM|jimmy69|LINK
hm yes ok but i'm not very familiar with thread ...
i will check that it's time i think to growth :) :)
Oct 05, 2017 12:46 PM|jimmy69|LINK
just for information if someone want to know how to make several call async await
here is it a good sample :