Sketchware-Pro / Sketchware-Pro

Sketchware Pro's sources in Java. Now anyone can contribute to Sketchware Pro.
https://sketchware.pro
Other
863 stars 254 forks source link

Changing screen orientation of project doesn't work #275

Closed PranavPurwar closed 2 years ago

PranavPurwar commented 2 years ago

i set the orientation to "both" and when checked in manifest, it was still portrait Fix this until next beta or big nub

khaled-0 commented 2 years ago

Check your AndroidManifest injections Idk ketchware injects portrait automatically

PranavPurwar commented 2 years ago

Screenshot_2021-11-25-13-21-20 Screenshot_2021-11-25-13-22-08 there is no screenOrientation attribute in my android manifest injection

JavkhlanK commented 2 years ago

With what method did you set the Activity's orientation to both?

PranavPurwar commented 2 years ago

here Screenshot_2021-11-25-13-25-29

JavkhlanK commented 2 years ago

Fix this until next beta or big nub

Also, please note that rule 4 from the Discord server also applies here.

PranavPurwar commented 2 years ago

but im not on discord server, so how do i know that ?

JavkhlanK commented 2 years ago

Whoops, sorry for not leaving this issue left unanswered. Back to the issue. Looking at vanilla Sketchware's behavior, it's doing the same thing. Also, looking the official documentation for the <activity> tag inside an AndroidManifest.xml file, you'll find out that the attribute not being set or having the value of "unspecified" will match what "both" means in Sketchware's context, so this is the expected behavior.

JavkhlanK commented 2 years ago

but im not on discord server, so how do i know that ?

There's a code of conduct that must be followed by everyone collaborating here. Please make sure to read it thoroughly.

PranavPurwar commented 2 years ago

I DIDN'T SET THAT TO BOTH, I SET THAT TO ONLY LANDSCAPE. YOU N**

JavkhlanK commented 2 years ago

Are you sure about that? The issue's description and your latest screenshot both show "both" as chosen option. Also as last warning, please keep this place friendly and free of inappropriate language, or else, there will be some consequences.

PranavPurwar commented 2 years ago

i added "both" later

PranavPurwar commented 2 years ago

because landscape was not working

JavkhlanK commented 2 years ago

Unfortunately, I can't reproduce your issue. For me, all options set in the Activity's properties work. Could you please tell what Sketchware Pro version you used when you got that issue?

PranavPurwar commented 2 years ago

6.4.0 beta 6

JavkhlanK commented 2 years ago

I unfortunately couldn't reproduce your issue with that version either.

khaled-0 commented 2 years ago

It happens randomly sometimes

PranavPurwar commented 2 years ago

then fix it

PranavPurwar commented 2 years ago

ix it or else re-open thid issue