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
Post a Comment