Tyler
Tyler

Reputation: 19848

How to programatically find Manifest options for the Activity?

How do you find options about an Activity programatically that we declared in the manifest? For example, I want to know if and what android:configChanges or android:screenOrientation was set to.

Upvotes: 1

Views: 90

Answers (1)

CommonsWare
CommonsWare

Reputation: 1006584

Use PackageManager to obtain the ApplicationInfo, ActivityInfo, etc. with the information that you are seeking. configChanges and screenOrientation are in ActivityInfo.

Upvotes: 3

Related Questions