SyntaxFix
Write A Post
Hire A Developer
Questions
I know this question is old but it can be done in one line of code
String deviceID = Build.SERIAL;