The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Engineering Portal / Digital / Android SDK API Reference  /  getDeviceId() 
Call this API to get a string defining the Device ID number of the current Android device. Device ID is the Google Ad-Id, if there is a Google Play Service installed and updated, or the ANDROID_ID, if there is no Google Play installed and updated.
Syntax
public String getDeviceId()
 
Input Parameters
| Parameter | 
Description
 | 
| None | 
 | 
Output Parameters
| Output Parameters (Return value) | 
Description
 | 
| DeviceID | 
The current device ID number for the device.
 |