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...
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...