Don't show this screen again

gordon

Member
Licensed User
Longtime User
I want to have a screen with instructions on it and a checkbox, with the state of the checkbox being saved. If the checkbox is not checked then each time the app is started the instruction screen is displayed as the first screen the user sees, if the saved state of the checkbox is checked then the instruction screen will not automatically be shown. (the user will be able to access the instruction screen via a button on other screens should they wish)

I was looking at CreatePreferenceScreen and was wondering if that was the way to go or have I misunderstood CreatePreferenceScreen?

Could anyone point me in the right direction please?
 

susu

Well-Known Member
Licensed User
Longtime User
I did it by this way:
- If user don't want to show the screen, you write a file name "1.abc" to DirInternal.
- When your app run just check file "1.abc" exist or not, if there's "1.abc" -> don't show the screen, if not -> show the screen.
- If user want to be asked everytime he runs your app, just delete the file.
 
Upvote 0
Top