Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

5
LINES

< > BotCompany Repo | #1014914 // aPortraitMode - lock device into portrait mode

JavaX fragment (include)

import android.content.pm.ActivityInfo;

svoid aPortraitMode() {
  aActivity().setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1014914
Snippet name: aPortraitMode - lock device into portrait mode
Eternal ID of this version: #1014914/2
Text MD5: 01dab5b7be4c27c2ecf7b1d2d7c86564
Author: stefan
Category: javax / android
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-06 12:38:17
Source code size: 151 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 426 / 458
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)