Will time lock a build and stop the user running it if its too old, useful for releasing dev builds.
Include the source or include as a library project.
Call in your application onCreate method:
//Application.onCreate()
TimeLock.get(this).setEnabled(..).set...;
Set any params you need, these are stored between instances. Sorted! One Week after the app expires it will fail to open.
Then in your BaseActivity call:
// Activity.onCreate(Bundle bdl) { ...
TimeLock.get(this).check();
This remembers any settings setup in your application onCreate call.
- 1.2 added getExpiresDate() to TimeLock.java
- 1.1 fixes + can set custom dialog text
- 1.0 initial version - very basic only supports dialog