blob: 1cc863103941c525926922251e32d153b76d2a44 [file] [log] [blame]
package test.pkg;
import android.content.pm.ActivityInfo;
import android.app.Activity;
import android.os.Bundle;
public class TestActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
<warning descr="You should not lock orientation of your activities, so that you can support a good user experience for any device or orientation"><caret>setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT)</warning>;
}
}