There are two little problems in that tutorial.
One is about the ListView logList.
At the instruction 3.4 there is the definition private ListView mLogList;
At 3.7 mLogList=(ListView) findViewById(R.id.logList);
But there isn't a instruction about creating that ListView in the associated .xml file
The other one is about a warning.
At 6 there is this instruction logLines.add(0,String.format("%s %s",new Date().getSeconds(),s));Date().getSeconds() is Deprecated and is suggested to use Calendar.get(Calendar.SECOND)https://developer.android.com/reference/java/util/Date.html
There are two little problems in that tutorial. One is about the ListView logList. At the instruction 3.4 there is the definition
private ListView mLogList;
At 3.7mLogList=(ListView) findViewById(R.id.logList);
But there isn't a instruction about creating that ListView in the associated .xml fileThe other one is about a warning. At 6 there is this instruction
logLines.add(0,String.format("%s %s",new Date().getSeconds(),s));
Date().getSeconds()
is Deprecated and is suggested to useCalendar.get(Calendar.SECOND)
https://developer.android.com/reference/java/util/Date.html