I have my application with about 15 activities. Now i know one way of preventing activity from rotation i.e. overriding onConfigurationChanged() method and defining it in xml.
Since i have about 15-20 activities overriding each of them is not the best practice I think. So is there any other way to do this.
You could add this in your manifest:
for each activity you want to limit. Also works for “landscape”.