android - making the app unresponsive for a minute -


i need on how make app unresponsive minute. have 2 classes,the first class start activity results while second class respond intent request.what want second class not give results if request made within 1 mintute.i have no control of first class because request coming odk(opendatakit). have tried using following code in my-second class:

            intent intent = new intent();             intent.putextra("value","user_id" );             setresult(result_ok, intent);              finish();                 try {         thread.sleep(6000);     } catch (interruptedexception e) {         // todo auto-generated catch block         e.printstacktrace();       } 

you can create asynctask second class. sleep inside doinbackground(), , return results in onpostexecute()


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -