Requesting Permission To Rotate The Phone


See the video. In the video, when the Screen goes in Portrait Mode, then it ruined the whole layout. So please tell me how the app did not go in Portrait Mode even for milliseconds? And also when I minimize the app, then also the background sound of the app is coming but the sound go when I fully close the app. So, please tell me how can I remove the background sound when the app minimize?

You video is not helpful. Sorry.

So how can I make it helpful?

The video cannot be used to diagnose the problems. Someone needs an example in an aia to solve the problems you are bothered with. The video shows the problem. No one can test the code you use. Sorry.

Okay but what is the guarantee that the app will not leak?

See

1 Like

2 posts were split to a new topic: How can I pause or stop background sound when I minimize the app?

Now, also I am unable to ask the permission or unable to rotate the screen directly in landscape when it open. The problem is still the same.

How can I post .aia to you personally.

It is very difficult for me to put all the existing layouts under Horizontal Layout on the screen.

Sorry, not possible to post to me personally. You may post here in the community your Project or an excerpt from your main Project that illustrates the rotation issue you experience. That is, make an example you feel comfortable sharing.

Did you try @dora_paz advice?

Here is my .aia KiDi.aia (955.1 KB)

You can get around this problem by using arrangements instead of physical screens.

How can I use physical screen to solve the problem?

No, no. Make the extension for Auto-Rotate Feature like you made for Location Feature. When Auto-Rotate Feature is off, then it directly goes to Auto-Rotate Feature in Settings.

This is the only solution to this problem I can provide.

KiDi (2).aia (1.0 MB)

I still have a different solution that you can test. In "Screen1" blocks, there is the "ScreenOrientation" property. It allows you to set different types of orientation.

orient

1 Like

Hello there.
I have corresponded with numerous people about this issue. I've tried countless. I think I'm sharing one of the best solutions with you. I hope it will be a solid guide for all friends. Kind regards.

Screen1:


Screen2:
blocks (28)

New.aia (5.3 KB)

Apk:

The first solution works properly but I am unable to see the Screen2 and Screen3 in MIT App Inventor. So please @Patryk_F tell me that how can I see Screen2 and Screen3?

In the designer you have arrangements called "screen1", "screen2" and "screen3". Currently only "screen1" is discovered, the rest of the screens are hidden. You have to click on an arrangement and show it for editing, then hide it again.

Working with such screens requires practice. But once you get used to it, it's very convenient. You don't need any special actions to get data from screen to screen, you have no screen limit and many other pluses.

1 Like

Thank you for your help. But according to me, it is very difficult to change screens into arrangements. So please tell me there is any shortcut for that.