We will be looking at a Java tutorial in the next few sections, so here's a few important notes:

  • Many parts of the tutorial use an embedded Java editor to let you try out code. Feel free to use this, but do remember to also try this out in Android Studio. Remember: we're not trying to just learn Java, we're trying to learn to build an app. So it's important to use it in a practical context whenever you can. We've learnt how to add a button and hook it up to a method, so do that and try out code inside of that method.
  • Sometimes the tutorial will print to the console using a function called System.out.println. In Android, we need to use Log.d like we've seen in the last couple of lessons. So for example, if you see:
System.out.println("hello");

Instead type:

Log.d("MainActivity", "hello");

results matching ""

    No results matching ""