Disable landscape orientation | How to stop activity from rotating in android studio

  Рет қаралды 25,497

Practical Coding

Practical Coding

Күн бұрын

Пікірлер: 46
@Monkeydluffy-we2fk
@Monkeydluffy-we2fk 3 жыл бұрын
Straight to the point Perfect
@someone-3499
@someone-3499 3 жыл бұрын
I spend many days to find solution for my captured image rotation. Solve my problem after watching ur video. Thanks a lot bro ... Have a nice day !
@PracticalCoding
@PracticalCoding 3 жыл бұрын
Glad the video was halpful!
@ethiomusic3158
@ethiomusic3158 3 жыл бұрын
I did as the same as you did on mainfest but there is no change on my real phone Samsung S8+ (not on emulator). Can I get your help?
@2bendigo
@2bendigo Жыл бұрын
I need to export to larger screen in portrait mode. This works on old android but not on updated. Batteries are getting old on old android tablets. I would like to update tablet, but the.n I can't export portrait. Any help?
@someshsahu4638
@someshsahu4638 2 жыл бұрын
Very nice explanation thankyou 🙏🏼🙏🏼🙏🏼
@mikodi5147
@mikodi5147 2 жыл бұрын
thanks a lot! straight to the point
@paulcooper7978
@paulcooper7978 7 күн бұрын
thanks, i have struggled 3 days now to try and make my app go from portrait to landscape but each rotation the app restarts, how do i stop it from restarting please?
@priyamganguly
@priyamganguly Жыл бұрын
This is specifically helpful in preventing recyclerviews from reloading when device orientation is changed.
@duhankazanci
@duhankazanci Жыл бұрын
Same for mutable lists in Compose
@javlontursunov6527
@javlontursunov6527 2 жыл бұрын
I want only landscape mode in during the whole app. How can I do that ?
@ShirleydeOliveira
@ShirleydeOliveira Жыл бұрын
Instead of using portrait use landscape... something like this:
@omezah3425
@omezah3425 10 ай бұрын
Love the video, please can you do a video on how to enable copy and paste on my mobile app, (platform android studio)
@VladMcMerlin
@VladMcMerlin Жыл бұрын
Thanks man, I had in the Manifest but in the wrong place!) No wonder it wasn't working))
@pamungkas_
@pamungkas_ 2 жыл бұрын
I don't recommend locking orientation via manifest, because that will recreate the activity. Lock orientation on java is the good one
@raihanghifari226
@raihanghifari226 3 жыл бұрын
PERFECT, THANK YOU SO MUCH
@marcgodhoff1439
@marcgodhoff1439 2 жыл бұрын
Thank you so much! Made my Day;-)
@Oxino-h4d
@Oxino-h4d Жыл бұрын
thanks
@worldmobileschool5243
@worldmobileschool5243 Жыл бұрын
Great ,sir
@LukeAiwuyuse
@LukeAiwuyuse 2 жыл бұрын
Thank you very much, I'm grateful. 🙏
@swapnilsaindane2697
@swapnilsaindane2697 3 жыл бұрын
Not working in mainfest file. still its rotatng
@RicardoEP
@RicardoEP 2 жыл бұрын
So clear and so handsome bro.
@berwincardozo3349
@berwincardozo3349 3 жыл бұрын
is there a way to lock orientation to portrait for the full app
@PracticalCoding
@PracticalCoding 3 жыл бұрын
Yeah you should be able to do that by going into the manifest file and adding in the following code android:screenOrientation="sensorPortrait" place that in the application tag
@RicardoEP
@RicardoEP 2 жыл бұрын
@@PracticalCoding how is that different from what the video just showed?
@matter509
@matter509 2 жыл бұрын
@@RicardoEP application tag, sensorPortrait
@drmousaabbahlouli8936
@drmousaabbahlouli8936 4 жыл бұрын
I HAVE Android Screen orientation landscape error? CAN i help me bro
@PracticalCoding
@PracticalCoding 4 жыл бұрын
Can you paste the exact error message you're getting in a comment so I can take a look at it?
@ahlamh8070
@ahlamh8070 Жыл бұрын
Thank you heaps!
@SameerAslam-MSA
@SameerAslam-MSA Жыл бұрын
Awesome
@javlontursunov6527
@javlontursunov6527 2 жыл бұрын
Thanks
@waseemwassu7857
@waseemwassu7857 3 жыл бұрын
I have locked my app in portrait mode and I only need landscape for videos, it's working fine on android but on iOS it's crashing
@PracticalCoding
@PracticalCoding 3 жыл бұрын
I don't know anything about making apps on IOS. I just got a MAC so I'll probably start teaching myself some time in the future but for now, I would probably go to google and see if there's a better way to do it on IOS
@waseemwassu7857
@waseemwassu7857 3 жыл бұрын
@@PracticalCoding I have tried different things but it's not working,the problem is I don't have my personal iOS system (mac) so I tried in our office with all the possible methods on stack over flow and other stuff but still I didn't gt the solution ,if u find any please let me know bro
@waseemwassu7857
@waseemwassu7857 3 жыл бұрын
Sorry for the late reply I have gt my solution, actually the problem is with react native modal, as we were rotating the modal along with the video, by default android supports both landscape and portrait mode in the modal but on iOS by default it's only portrait so in order to make the modal support in both orientations we need to specify the modal property supportedOrientations and choose both portrait and landscape inside this property
@PracticalCoding
@PracticalCoding 3 жыл бұрын
@@waseemwassu7857 Oh I gotcha. Well I'm glad you got it working
@ZulKadry
@ZulKadry Жыл бұрын
How to disable popup view android studios
@the_asteroid
@the_asteroid 2 жыл бұрын
thank you very much
@vkkumar7146
@vkkumar7146 2 жыл бұрын
Thank you somach brader
@kennethpacatang1177
@kennethpacatang1177 2 жыл бұрын
Appreciated
@Scar4m0uch1
@Scar4m0uch1 3 жыл бұрын
THANK YOU SO MUCH IVE HAD A PROBLEM TODAY AFTER I DELETED MI ACC
@orbit4971
@orbit4971 3 жыл бұрын
working bro.
@pushpdantpurigoswami
@pushpdantpurigoswami 3 жыл бұрын
Thank bro
@sravstudios
@sravstudios Жыл бұрын
code: this.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
@JsonLzDev
@JsonLzDev Жыл бұрын
Thank you so much
RecyclerView | Everything You Need to Know
25:07
Practical Coding
Рет қаралды 150 М.
Маусымашар-2023 / Гала-концерт / АТУ қоштасу
1:27:35
Jaidarman OFFICIAL / JCI
Рет қаралды 390 М.
24 Часа в БОУЛИНГЕ !
27:03
A4
Рет қаралды 7 МЛН
FRAGMENTS - Android Fundamentals
17:29
Philipp Lackner
Рет қаралды 341 М.
Custom Buttons Design - Android Studio Tutorial
8:03
Stevdza-San
Рет қаралды 402 М.
How to Support ALL Screen Sizes on Android - Full Guide
19:10
Philipp Lackner
Рет қаралды 116 М.
How to upload an android studio project to GitHub
5:40
Practical Coding
Рет қаралды 132 М.
I Made an Android App in MINUTES with This AI Tool
10:21
Creator Magic
Рет қаралды 245 М.
RecyclerView Item Click | Best Practice Way
8:06
Practical Coding
Рет қаралды 98 М.
SOLVING EVERY ERROR IN ANDROID STUDIO - Android Fundamentals
12:53
Philipp Lackner
Рет қаралды 68 М.
How to add sound to a button in android studio | Android studio tutorial
6:04
Маусымашар-2023 / Гала-концерт / АТУ қоштасу
1:27:35
Jaidarman OFFICIAL / JCI
Рет қаралды 390 М.