Zre unlock oattern
- By ryanas1979
- Ask a question
- 2 Replies
Joe to break the pattern code on a ZTE phone without having to plug into a computer
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
, and I'm looking forward to learning it here.
package com.example.myapplication;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.text.SpannableStringBuilder;
import android.text.Spanned;
import android.text.style.RelativeSizeSpan;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
public class MainActivity extends AppCompatActivity {
boolean answer_ison;
Button button;
TextView textView;
SpannableStringBuilder str;
final RelativeSizeSpan title_span = new RelativeSizeSpan(1.6f);
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
answer_ison = true;
button = findViewById(R.id.button);
textView = findViewById(R.id.textView);
str = new SpannableStringBuilder();
button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
if (answer_ison) {
str.clear();
str.clearSpans();
str.append("Question:\n", title_span, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
str.append("The question goes here :)");
button.setText("Show Answer");
answer_ison = false;
}
else {
str.append("\n\nAnswer:\n", title_span, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
str.append("Aand the answer goes here");
button.setText("Next Question");
answer_ison = true;
}
textView.setText(str);
}
});
}
}


public void click(View view) {
new Thread(new Runnable() {
@Override
public void run() {
final TextView t = findViewById(R.id.textView);
t.setText("Wait...");
for(int i=0;i<999999;i++)
Log.e("test", ""+System.currentTimeMillis());
t.post(new Runnable() {
@Override
public void run() {
t.setText("Complete");
}
});
}
});
}