Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"firstInstallTime" not available in Froyo #22

Open
bartek-mindojo opened this issue May 30, 2014 · 2 comments
Open

"firstInstallTime" not available in Froyo #22

bartek-mindojo opened this issue May 30, 2014 · 2 comments

Comments

@bartek-mindojo
Copy link

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
Copy link

Have the same problem on Android 2.2.

@PomepuyN
Copy link
Owner

PomepuyN commented Jun 8, 2014

This will be fixed in the upcoming version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants