0

how to addfirst time app install code to this code link ? How to add a ShowcaseView that pops up only for the first time to show how to use our app?

Community
  • 1
  • 1
  • possible duplicate of [Determine if android app is the first time used](http://stackoverflow.com/questions/4636141/determine-if-android-app-is-the-first-time-used) – Nabin Jul 12 '15 at 09:39
  • Nobody is going to tell exact code. please provide me by editing that mainActivity.class file – Prabin Bhusal Jul 12 '15 at 09:41
  • 1
    don`t asking code..we are not write project for you..only we give ideas & links. – Ranjithkumar Jul 12 '15 at 09:54
  • I tried it bruh using your links and stuffs. I want to fit with that mainAvtivity class. if you dont know dont help. Thankss – Prabin Bhusal Jul 12 '15 at 09:56

2 Answers2

1

Two ways...

► Create a database (SQLite for example) and put on it a boolean value to know if first time or not.

► Or use shared preferences like a database

Guihgo
  • 632
  • 10
  • 13
0

I do this in my own app by storing a flag in the preferences. Others have up-voted this approach too:

Determine if android app is the first time used

Community
  • 1
  • 1
Nitesh Patel
  • 631
  • 3
  • 10