PomepuyN / discreet-app-rate

A lightweight non intrusive app rate reminder for Android
http://nicolaspomepuy.fr/non-intrusive-app-rate
Apache License 2.0
464 stars 51 forks source link

"firstInstallTime" not available in Froyo #22

Open bartek-mindojo opened 10 years ago

bartek-mindojo commented 10 years ago

According to this StackOverflow thread: http://stackoverflow.com/questions/2831333/how-to-get-app-install-time-from-android the "firstInstallTime" field is available from API level 9 (Gingerbread). Inside the AppRate class (line 323), however, there's a check for Froyo (API level 8), which I think is wrong. if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.FROYO) In fact, my crash reporting system has just sent me a report of NullPointerException at this line: if (now.getTime() - installDate.getTime() < installedSince) { My guess is that installDate is null at this point...

alexeyvasilyev commented 10 years ago

Have the same problem on Android 2.2.

PomepuyN commented 10 years ago

This will be fixed in the upcoming version.