GithubHelp home page GithubHelp logo

xmmdream / android-passcodelock Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wordpress-mobile/passcodelock-android

0.0 2.0 0.0 396 KB

Android Library that provides passcode lock to your app

License: GNU General Public License v2.0

android-passcodelock's Introduction

#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.1

Installation

  • 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.

android-passcodelock's People

Contributors

daniloercoli avatar roundhill avatar beaucollins avatar

Watchers

James Cloos avatar xmmdream avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.