Android Open Source - RoboLock Lock Activity






From Project

Back to project page RoboLock.

License

The source code is released under:

Apache License

If you think the Android project RoboLock listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package org.lucas.robolock;
//from w w  w  .j  a va  2 s  .c o  m
import android.app.Activity;
import android.os.Bundle;
import android.view.View;

/**
 * Show this activity to shade the actual activity so the user is asked to pass the authentication on this activity screen.
 */
public class LockActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.robolock_activity_lock);
        findViewById(R.id.unlock).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                unlock();
            }
        });
    }

    private void unlock() {
        finish();
    }
}




Java Source Code List

com.example.robolocksample.MainActivity.java
org.lucas.robolock.AppLaunchReceiver.java
org.lucas.robolock.LockActivity.java
org.lucas.robolock.PinFragment.java
org.lucas.robolock.RoboLock.java
org.lucas.robolock.SettingsActivity.java
org.lucas.robolock.example.MainActivity.java