Create Android Digital Clock App in Sketchware

To create a simple Digital Clock android app in sketchware, or to display time in your android app, follow the instructions given below.

1. Create a new android project in Sketchware.

2. In VIEW area add a LinearV linear1. For linear1 set gravity to center_vertical.
Inside linear1, add a LinearH linear2.

3. In LOGIC area, open onCreate event. Insert an add source directly block from operator section. In this add source directly block put codes provided below.
TextClock clock = new TextClock(this);
clock.setFormat24Hour("dd MMM yyyy hh:mm:ss cccc");

This code creates a new TextClock clock. Then sets the text size and text color for the TextClock, sets the format for the TextClock, and adds the TextClock to linear2.

For symbols which can be used in clock format visit 

4. Save and run the project. Install the app generated. The app will display the current date, current time, and day as shown in image below.

The video below illustrates the same.


  1. Maybe, you already heard about lucky patcher app...

    I want to make a app like this one. Can I do it with my android phone by using this Sketchware. Please, let me know the answer as soon as possible...

  2. For 24std

    TextClock clock = new TextClock(this);
    clock.setFormat24Hour("dd MMM yyyy HH:mm:ss cccc");

    1. Thamk you!! This worked first time
      All I had to do was change the linear.


Post a Comment

Popular posts from this blog

A Flash Light App in Sketchware

Simple car racing android game in Sketchware

Firebase auth in Sketchware for Login Activity

In Sketchware: How to create a calculator for any simple formula?

Create a PDF reader android App in Sketchware