device-year-class
device-year-class copied to clipboard
A library that analyzes an Android device's specifications and calculates which year the device would be considered "high end”.
Three quick commits here (please let me know if you prefer separate PRs). ### Commit 1 Fix test method names: #36 accidentally added two duplicate method names, resulting in the...
👋 We are actively using this library(and thanks!) and would love to see profiles after 2016. Will there be an update in the near future? -Jingwei
This is pull request was created automatically because we noticed your project was missing a Code of Conduct file. Code of Conduct files facilitate respectful and constructive communities by establishing...
``` 4 Caused by: 5 java.lang.IllegalStateException:System services not available to Activities before onCreate() 6 android.app.Activity.getSystemService(Activity.java:5027) 7 com.facebook.device.yearclass.DeviceInfo.getTotalMemory(SourceFile:183) 8 com.facebook.device.yearclass.YearClass.categorizeByYear2016Method(SourceFile:65) 9 com.facebook.device.yearclass.YearClass.get(SourceFile:45) 10 cn.jingzhuan.stock.ui.BaseActivity.attachBaseContext(SourceFile:37) 11 android.app.Activity.attach(Activity.java:5910) 12 android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2402) 13 android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2530) 14 ...
`memInfo` is created two lines above, the code should check for memInfo.totalMem (defaults to 0)
2.0.0 was published in Dec 2016: https://mvnrepository.com/artifact/com.facebook.device.yearclass/yearclass but that release was not tagged: https://github.com/facebook/device-year-class/releases Looks like the 2.0.0 version bump landed in Master last October (27f3fee5025b541572a102e5185c5a12c9ae5ea7), but I don't know...
I recently spoke to someone at DroidconSF about whether this library was stale or not and they indicated it wasn't. They had mentioned that it had been updated internally for...
The content of the license file matches with 3-BSD. Regards, David