How to have an activity that will run once only? [duplicate]
问题 This question already has an answer here : Closed 8 years ago . Possible Duplicate: How do I show an alert dialog only on the first run of my application? In my app there will be a Terms and Conditions activity which shows some conditions along with ok and cancel buttons, and when the user presses 'ok' button the app continue and go on running. Next time when the user starts this app the Terms and Conditions activity must not run as its already accepted before. How to get such a functionality