device-config

command
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 16, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Example: query device configuration properties.

Creates an AConfiguration, reads every available property (language, country, density, orientation, screen size, screen dimensions, and SDK version), and prints them. Language and Country are two-character ISO codes written through an out-parameter.

On a real device the values reflect the current system locale and display settings. When run with a freshly created (empty) config, most fields return zero or blank, which is the expected default behavior.

This program must run on an Android device.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL