I have an activity in in my app which I have kept as
android:enabled=\"false\"
now I want that when a button is clicked it should get chan
In case you're using productFlavors, you can have separate AndroidManifest files for each flavor. In those you can easily override properties from the main Manifest file. When building a particular flavor manifest merger merges the Manifest based on the selected flavor.
In the flavor's manifest where you want to disable a particular activit you can do it like this