The DeviceInforming
service lets you access critical pieces of information related to the user's device, such as carrier name, device name, locale, and more. The DeviceInforming
service can be accessed directly from the ServiceProvider
.
The following code snippet shows how to read the SystemInfoService
and how to invoke the API to retrieve the user's active locale.
Locale local = ServiceProvider.getInstance().getDeviceInfoService().getActiveLocale();
val local = ServiceProvider.getInstance().deviceInfoService.activeLocale
For a full list of APIs provided by the DeviceInforming
service, see DeviceInforming.java
.