Tools - Print

java.lang.System.setOut(new java.io.PrintStream(new java.io.OutputStream() {

java.io.ByteArrayOutputStream outputStream = new java.io.ByteArrayOutputStream();
@Override
public void write(int oneByte) throws java.io.IOException {
outputStream.write(oneByte);
textview1.setText(new String(outputStream.toByteArray()));
}
}));
//Testing the System.out stream
java.lang.System.out.println("Test");
java.lang.System.out.println("Test 2");

Komentar

Cara pembuatan Apps paling Populer

Create Stopwatch App in Android using Sketchware

TextInputLayout in Sketchware

How to find and​ highlight a word in a text field in Sketchware?

A Flash Light App in Sketchware

How to enable download in webview in Sketchware apps?

Intent - Open File By Type

Code for implementing Notifications in Sketchware

How to share an image from Drawable folder?

ActionBar back button

Animation Transtition Animation