title: 2 buttons in front page, each button get different function to another page
body: <p>I was watching and tried to do the tutorial for the generator QR Code in <a href="https://www.youtube.com/watch?v=e5pI6CSxAX8" rel="nofollow noreferrer">this video</a>.</p>
  
  <p>And then like in the end of it when he want to try the generator works, he shows some kind a 2 buttons, 1 for the scanner and 1 for the generator. </p>
  
  <p>But in the video he didn't explain how he do it. I already tried his video about the scanner but still no clue. Can someone help me?</p>
  
  <p>UPDATE:
  Now here's my new problem regarding with gradle version:</p>
  
  <p>Error:Could not find com.android.tools.build:gradle:2.10.
  Searched in the following locations:
      file:/C:/Users/User/Downloads/android-studio-ide-171.4443003-windows32/android-studio/gradle/m2repository/com/android/tools/build/gradle/2.10/gradle-2.10.pom
      file:/C:/Users/User/Downloads/android-studio-ide-171.4443003-windows32/android-studio/gradle/m2repository/com/android/tools/build/gradle/2.10/gradle-2.10.jar
      <a href="https://jcenter.bintray.com/com/android/tools/build/gradle/2.10/gradle-2.10.pom" rel="nofollow noreferrer">https://jcenter.bintray.com/com/android/tools/build/gradle/2.10/gradle-2.10.pom</a>
      <a href="https://jcenter.bintray.com/com/android/tools/build/gradle/2.10/gradle-2.10.jar" rel="nofollow noreferrer">https://jcenter.bintray.com/com/android/tools/build/gradle/2.10/gradle-2.10.jar</a>
      <a href="https://maven.google.com/com/android/tools/build/gradle/2.10/gradle-2.10.pom" rel="nofollow noreferrer">https://maven.google.com/com/android/tools/build/gradle/2.10/gradle-2.10.pom</a>
      <a href="https://maven.google.com/com/android/tools/build/gradle/2.10/gradle-2.10.jar" rel="nofollow noreferrer">https://maven.google.com/com/android/tools/build/gradle/2.10/gradle-2.10.jar</a>
  Required by:
      :QRCode:unspecified
  Open File</p>
  
  <p>Anybody can help me fix this?</p>