When I program in JavaScript, I use alert() for easy debugging. In Delphi, I change the Caption of the Form. In Android, I'm trying to do something like:
textView.setText("0");
SystemClock.sleep(2000);
// some programming...
textView.setText("1");
SystemClock.sleep(2000);
but I can't see the "0", as it only refreshes the screen in the end of the function (that's inside a button's onClick). All I see is the "1" after I press the button. In the real program (with numbers from 0 to 9), I see no number at all, it just closes the program. I've read somewhere that the Invalidate function is called automatically by the setText (so no need to call it).
I tried Toast (instead of setText), it didn't work. And I want something simpler/faster than creating popups/dialogs. Also, I don't want to use adb, Log or LogCat, since I'm on Linux and having problems connecting the phone to the PC (I could have lost the cable, for instance). Any help, please?