Comment Comment by Nemisis7654 Some things I would note:* Do not use getBaseContext() like he does when he created the new Activity. Use getApplicationContext for most things (unless an Activity is required) as this is guaranteed to be the same throughout the lifetime of your application.* For log alternatives, checkout Timber by Jake Wharton (https://github.com/JakeWharton/timber)* I would suggest using the Build.VERSION_CODES when making the check against which version of android the device is (http://developer.android.com/reference/android/os/Build.VERS...) parent Nemisis7654 12 years ago
* Do not use getBaseContext() like he does when he created the new Activity. Use getApplicationContext for most things (unless an Activity is required) as this is guaranteed to be the same throughout the lifetime of your application.
* For log alternatives, checkout Timber by Jake Wharton (https://github.com/JakeWharton/timber)
* I would suggest using the Build.VERSION_CODES when making the check against which version of android the device is (http://developer.android.com/reference/android/os/Build.VERS...)