[Code sample – How to lock the orientation] |
/** Called when the activity is first created. */ |
[Code sample – How to detect the current orientation] |
switch (this.getResources().getConfiguration().orientation) |
[Code sample – Locking rotation while performing an action] |
// Sets screen rotation as fixed to current rotation setting |
[Code sample – How to re-enable screen rotation] |
// allow screen rotations again |
ไม่มีความคิดเห็น:
แสดงความคิดเห็น