David
David

Reputation: 1026

Show Popup only once when an activity in started the second time in a row

I want a popup to be shown only when a activity in launching the second time. Once the popup is shown, it should never appear again. Can anyone give a sample on how to do this?

Thanks.

Upvotes: 0

Views: 273

Answers (1)

Divyang Panchal
Divyang Panchal

Reputation: 1909

when user run application first time Store some value in SharedPreference, Get that value every time if it is present then show your pop up and delete shared preference value.

Upvotes: 1

Related Questions