Closing Application With Two Times Back Press

Hello Guys,

In This Guide I Will Tell You That How To Add Double Back Press To Close An Application

Components Required -

  • Clock Component

  • Notifier Component

Blocks -

blocks (19)

Note -

  • Set Clock Time Interval To 500ms
8 Likes

Add some more ways also

Very useful guide, I’m waiting for more guides :blush:

1 Like

Very useful guide, I’m waiting for more guides :blush:

2 Likes

Really nice guide :ok_hand:
before this i use TinyDb also.

Me also :star_struck:

We can usr index method too easily instead of clock component.

Initialize a global index variable to 0

On back pressed
Set index to get index  +1
If get index =1
Then Alert user to back press again to exit
Else close application
3 Likes

grafik

6 Likes