Skip to content
KnowledgeCity

Intermediate Java for Android Programming

Learn for mobile functionality with this Intermediate Java for Android Programming course.
Preview the first lesson free — get full access to all 45 lessons.
Course: On-Demand
Intermediate Provider Shad Sluiter  6 chapters ·  45 Lessons ·  3h 1m  in Arabic, German, English, Spanish, French, Portuguese, Chinese 

Course Description

In this tutorial, you will create a game that demonstrates several features of Android including, background tasks, timers, a progress bar and a game state class. The application shows two buttons that the user clicks as many times as possible in a 30-second time frame. The timer uses a runnable task. The progress bar displays the remaining time. The buttons are enabled and disabled to make the game work properly. The game state class is designed to encapsulate all the properties of the game including the remaining time and score.

What You'll Learn

  • Demonstrate the use of background tasks in an Android application
  • Set a timer and display the remaining time in a progress bar
  • Design a game state class to encapsulate multiple properties such as remaining time and score
  • Programmatically enable and disable buttons to control game flow
  • Create and manage string resources, button IDs, and arrays of button objects in Android Studio
  • Add click listeners, including a shared click listener handling multiple buttons

Key Takeaways

  • The course builds a game in which the user clicks two buttons as many times as possible within a 30-second time frame.
  • The timer is implemented using a runnable task, and the progress bar displays the remaining time.
  • Buttons are enabled and disabled to make the game work properly.
  • The game state class encapsulates all the properties of the game, including the remaining time and score.
  • The project is created and developed within Android Studio.

Frequently Asked Questions

What will I build in this course?

You will create a game that shows two buttons the user clicks as many times as possible in a 30-second time frame, demonstrating Android features including background tasks, timers, a progress bar, and a game state class.

How does the game keep track of time and score?

The timer uses a runnable task, the progress bar displays the remaining time, and a game state class encapsulates all properties of the game including the remaining time and score.

What Android skills does this course cover?

It covers Android development, Android software development, Android Studio, Android UI, the Java Development Kit, and Java GUIs.

What specific techniques are taught?

You will learn to use background tasks, set a timer and display results in a progress bar, design a class to encapsulate multiple application properties, and programmatically enable and disable a button.

What tool is used to develop the application?

The application is built in Android Studio, where you create the project, manage string resources, set button properties, and create background threads.