¡@

Home 

2014/10/16 ¤W¤È 08:27:27

android Programming Glossary: waiter

Application idle time

http://stackoverflow.com/questions/4075180/application-idle-time

class ControlApplication extends Application private static final String TAG ControlApplication.class.getName private Waiter waiter Thread which controls idle time only lazy initializations here @Override public void onCreate super.onCreate Log.d.. here @Override public void onCreate super.onCreate Log.d TAG Starting application this.toString waiter new Waiter 15 60 1000 15 mins waiter.start public void touch waiter.touch Class which will be parent for all of your activities public.. getApp .touch Log.d TAG User interaction to this.toString And finally Thread itself public class Waiter extends Thread private static final String TAG Waiter.class.getName private long lastUsed private long period private boolean..