Android Open Source - InfoSecProj Lock Success Screen






From Project

Back to project page InfoSecProj.

License

The source code is released under:

MIT License

If you think the Android project InfoSecProj 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 com.infosec.gesturelock;
/*from   w w w  .j  a  v a2  s  . c o  m*/
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.NavUtils;
import android.view.View;
import android.widget.ImageView;

public class LockSuccessScreen extends Activity {
  private boolean isTaco = false;

  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_unlock_success);
    
  }

  @Override
  public void onBackPressed() {
        NavUtils.navigateUpFromSameTask(this);
        this.finish();
        
      super.onBackPressed();
  }
  public void returnToLock(View view) {
    Intent lockIntent = new Intent(this, StartTestActivity.class);
    this.startActivity(lockIntent);
    
    this.finish();
  }

  public void goHome(View view) {
        NavUtils.navigateUpFromSameTask(this);
        this.finish();
  }
  
  public void tacocatRelease(View view){
    ImageView lockView = (ImageView) findViewById(R.id.imageDisplayView);
    if(!isTaco){
      lockView.setImageResource(R.drawable.tacocat);
      isTaco = true;
    }else{
      lockView.setImageResource(R.drawable.welldone);
      isTaco = false;
    }
  }
}




Java Source Code List

com.infosec.gesturedata.AccelEvent.java
com.infosec.gesturedata.GestureData.java
com.infosec.gesturedata.Point.java
com.infosec.gesturelock.HomeActivity.java
com.infosec.gesturelock.LockActivity.java
com.infosec.gesturelock.LockSuccessScreen.java
com.infosec.gesturelock.SetPasswordActivity.java
com.infosec.gesturelock.StartTestActivity.java
com.infosec.gesturelock.TutActivityFrag.java
com.infosec.gesturelock.TutActivity.java
com.infosec.gesturelock.util.SystemUiHiderBase.java
com.infosec.gesturelock.util.SystemUiHiderHoneycomb.java
com.infosec.gesturelock.util.SystemUiHider.java