detect first run on

Hello,

is there a simple way to detect the first time an app is launched? I need to display a message on first run but want to make sure it doesn’t appear every time the app is loaded.

thanks [import]uid: 8629 topic_id: 34583 reply_id: 334583[/import]

Check if a file you create exists, if it doesn’t then this must be the first run so create the file. [import]uid: 119420 topic_id: 34583 reply_id: 137512[/import]

Thanks,

Thats what I will do, didn’t know if there was something like nsuserdefaults. So is system.DocumentsDirectory valid for Android? Just want to make sure its the correct place to put the file?
Jeff [import]uid: 8629 topic_id: 34583 reply_id: 137513[/import]

We use the Docs directory on Android yea so it should be fine. [import]uid: 119420 topic_id: 34583 reply_id: 137719[/import]

Thanks,

I implemented what you suggested and it seems to work just fine.

thanks again

jeff [import]uid: 8629 topic_id: 34583 reply_id: 137733[/import]

Awesome! [import]uid: 119420 topic_id: 34583 reply_id: 137842[/import]

Check if a file you create exists, if it doesn’t then this must be the first run so create the file. [import]uid: 119420 topic_id: 34583 reply_id: 137512[/import]

Thanks,

Thats what I will do, didn’t know if there was something like nsuserdefaults. So is system.DocumentsDirectory valid for Android? Just want to make sure its the correct place to put the file?
Jeff [import]uid: 8629 topic_id: 34583 reply_id: 137513[/import]

We use the Docs directory on Android yea so it should be fine. [import]uid: 119420 topic_id: 34583 reply_id: 137719[/import]

Thanks,

I implemented what you suggested and it seems to work just fine.

thanks again

jeff [import]uid: 8629 topic_id: 34583 reply_id: 137733[/import]

Awesome! [import]uid: 119420 topic_id: 34583 reply_id: 137842[/import]