question

ajay avatar image
ajay asked Jeffrey Blattman commented

How to get current device or logged device Additional Details Programmatically for android? (Using java Lang.)

How to get current device or logged device Additional Details Programmatically for android? (Using java Lang.)
Clover Android SDK
1 comment
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Jeffrey Blattman avatar image Jeffrey Blattman ♦♦ commented ·

What additional details do you need?

0 Likes 0 ·

1 Answer

zgreathouse avatar image
zgreathouse Deactivated answered Jeffrey Blattman commented
One way to determining which device you are on is by getting the serial number. To get the serial number for your device programmatically you can use.
android.os.Build.SERIAL
1 comment
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Jeffrey Blattman avatar image Jeffrey Blattman ♦♦ commented ·

Keep in mind the details here will change if you target SDK 26+. In short, you need to use `Build.getSerial()` and hold the PHONE permission. You can read more about it here: https://android-developers.googleblog.com/2017/04/changes-to-device-identifiers-in.html

1 Like 1 ·

Welcome to the
Clover Developer Community