Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Android Library that provides passcode lock to your app

License

GPL-2.0, MIT licenses found

Licenses found

GPL-2.0
LICENSE-GPL
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

zichen-jiao/Android-PasscodeLock

Repository files navigation

#App passcode library for Android

An app passcode protection implementation, which allows user to protect the app with a four digit code.

Once enabled a four-digit passcode needs to be entered any time your mobile app is launched. This way your app is safe even if your smartphone or tablet falls into the wrong hands.

*Note: This library doesn't add any extra protection to your data. App data will not be encrypted, the library just adds a pin lock screen that makes the app safe even if your kids put their hands on the device :) *

Version

0.0.5

Installation

  • Copy file gradle.properties-example to gradle.properties in the library/ directory of the project.

  • Add a reference to the library in your project preferences file.

  • Open the file android.manifest and declare the following activities:

     <activity
     android:name="org.wordpress.passcodelock.PasscodeUnlockActivity"
     android:theme="@style/Theme.Sherlock.Light.NoActionBar"
     android:windowSoftInputMode="stateHidden" >
     </activity>
     <activity
     android:name="org.wordpress.passcodelock.PasscodePreferencesActivity"
     android:configChanges="orientation|keyboardHidden|screenSize"
     android:theme="@style/Theme.Sherlock.Light"
     android:windowSoftInputMode="stateHidden" >
     </activity>
     <activity
     android:name="org.wordpress.passcodelock.PasscodeManagePasswordActivity"
     android:theme="@style/Theme.Sherlock.Light.NoActionBar"
     android:windowSoftInputMode="stateHidden" >
     </activity>
    
  • Add the following line in onCreate of your App file AppLockManager.getInstance().enableDefaultAppLockIfAvailable(this);

  • In your project you need to call PasscodePreferencesActivity to lauch the passcode configuration screen.

###Customization If you want to customize the pinlock icon, the one available in the unlock screen, add a file named passcode_logo.png in res/drawable.

###Apps that use this library

###License Dual licensed under MIT, and GPL.

About

Android Library that provides passcode lock to your app

Resources

License

GPL-2.0, MIT licenses found

Licenses found

GPL-2.0
LICENSE-GPL
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /