ScreenWrite Erase
- By ndelay
- Ask a question
- 2 Replies
In the new update, they removed the erase tool. Just undo remains....is it just hidden, or is it coming back?
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.
public class MainActivity extends AppCompatActivity {
// var declarations
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
mTextBox = findViewById(R.id.textBox);
mLoadButton = findViewById(R.id.loadButton);
mLoadButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
loadHtml();
}
});
mProgressBar = findViewById(R.id.progressBar);
mProgressBar.setVisibility(View.INVISIBLE); // Also tried setting INVISIBLE and GONE in XML
}
private void loadHtml() {
mProgressBar.setVisibility(View.VISIBLE);
try {
Thread.sleep(2000);
}
catch (java.lang.InterruptedException interruptedException) {
// handle the exception
}
RequestQueue queue = Volley.newRequestQueue(this);
String url = "http://10.0.2.2";
StringRequest stringRequest = new StringRequest(Request.Method.GET, url,
new Response.Listener<String>() {
@Override
public void onResponse(String response) {
mTextBox.setText(response);
mProgressBar.setVisibility(View.GONE);
}
}, new Response.ErrorListener() {
@Override
public void onErrorResponse(VolleyError error) {
String err = error.toString();
mTextBox.setText(err);
mProgressBar.setVisibility(View.GONE);
}
});
queue.add(stringRequest);
}
}


ENHANCEMENTS
This update introduces changes including the following:
Stability improvements: Includes changes that fix bugs and improve the stability of your phone.
Metro Play App: Delivers tailored news feed in minus one screen
