actually i am developing one application...in my application i am trying to develop screen-lock n unlock application functionality.. So please help me to develop it...
Thanks in Advance--
you can use Handler.postDelayed() method in order to perform this. Just call the handler on click of that button. See the following code:
mHandler.postDelayed(new Runnable() { // mHandler is the instance of the Handler class
@Override
public void run() {
// TODO Auto-generated method stub
//Perform your action //here
}
},1000L); //time in milisecond here
Hope this will help you.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.