Implemented get, set and clear preferences as Android instrumentation so they
can be called before or after an application or activity starts or finishes.

This is decided internally in operation based on whether the app is running already
or not.