Back to project page gps-lock-lock.
The source code is released under:
GNU General Public License
If you think the Android project gps-lock-lock listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.github.tdudziak.gps_lock_lock; /*from ww w . j av a 2s . c om*/ import java.lang.ref.WeakReference; public class LockApplication extends android.app.Application { WeakReference<LockService> mService; public void setLockService(LockService ca) { mService = new WeakReference<LockService>(ca); } public LockService getLockService() { if (mService != null) return mService.get(); return null; } }