Android how to get important information programatically

How to get Android App Version Name and Code

How to get App package name

How to get Android OS Version Name and Code


How to get device model name and manufacturer

How to get Country Code

How to get IMEI

Add READ_PHONE_STATE permission in AndroidManifest.xml

How to get screen height and width


How to get Android Advertising ID

Add play services ads dependency in app’s gradle file.

Function to get advertising id. Since AdvertisingIdClient.getAdvertisingIdInfo cannot be called on the main UI thread, we need to create a background thread to call the function.


Leave a Reply