Skip to content Skip to sidebar Skip to footer

Phone Only Portrait, Tablet All Orientations: Cannot Resolve Symbol 'activityinfo'

I have an Android app build with the newest version of Android Studio. I want to allow only portrait mode on phone but all orientations on tablets. I followed this answer and also

Solution 1:

You need to add the following line at the top of your file below package name to import ActivityInfo: import android.content.pm.ActivityInfo;


Post a Comment for "Phone Only Portrait, Tablet All Orientations: Cannot Resolve Symbol 'activityinfo'"