Created
June 8, 2016 07:12
-
-
Save s0h4m/eb3efe57d36c2892ebfba2c8433555cc to your computer and use it in GitHub Desktop.
Generates an anonymous analytics ID for non play-services powered devices
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.content.Context; | |
/** | |
* A basic implementation of {@link Id} to be used in non play-services environments | |
*/ | |
public class BasicId extends Id { | |
/** | |
* Get an analytics ID for non play-services powered devices, uses UUID to get the id | |
* @param context | |
* @return | |
*/ | |
@Override | |
public String getId(final Context context) { | |
return getUUIDPoweredId(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment