How do you launch an activity only once for the first time?

Tam ca

New member
How do you launch an activity only once for the first time?
Answer
It is important to check that the first activity which opens when the app is launched is
MainActivity.java (The activity which we want to appear only once). For this, open the AndroidManifest. xml file and ensure that we have the intent-filter tag inside the activity tag that should appear just once.
 

Tìm kiếm

Back
Top