[android] Add support for Samsung DeX mode #5777
No reviewers
Labels
No labels
Accessibility
Accessibility
Address
Address
Android
Android
Android Auto
Android Auto
Android Automotive (AAOS)
Android Automotive (AAOS)
API
API
AppGallery
AppGallery
AppStore
AppStore
Battery and Performance
Battery and Performance
Blocker
Blocker
Bookmarks and Tracks
Bookmarks and Tracks
Borders
Borders
Bug
Bug
Build
Build
CarPlay
CarPlay
Classificator
Classificator
Community
Community
Core
Core
CrashReports
CrashReports
Cycling
Cycling
Desktop
Desktop
DevEx
DevEx
DevOps
DevOps
dev_sandbox
dev_sandbox
Directions
Directions
Documentation
Documentation
Downloader
Downloader
Drape
Drape
Driving
Driving
Duplicate
Duplicate
Editor
Editor
Elevation
Elevation
Enhancement
Enhancement
Epic
Epic
External Map Datasets
External Map Datasets
F-Droid
F-Droid
Fonts
Fonts
Frequently User Reported
Frequently User Reported
Fund
Fund
Generator
Generator
Good first issue
Good first issue
Google Play
Google Play
GPS
GPS
GSoC
GSoC
iCloud
iCloud
Icons
Icons
iOS
iOS
Legal
Legal
Linux Desktop
Linux Desktop
Linux packaging
Linux packaging
Linux Phone
Linux Phone
Mac OS
Mac OS
Map Data
Map Data
Metro
Metro
Navigation
Navigation
Need Feedback
Need Feedback
Night Mode
Night Mode
NLnet 2024-06-281
NLnet 2024-06-281
No Feature Parity
No Feature Parity
Opening Hours
Opening Hours
Outdoors
Outdoors
POI Info
POI Info
Privacy
Privacy
Public Transport
Public Transport
Raw Idea
Raw Idea
Refactoring
Refactoring
Regional
Regional
Regression
Regression
Releases
Releases
RoboTest
RoboTest
Route Planning
Route Planning
Routing
Routing
Ruler
Ruler
Search
Search
Security
Security
Styles
Styles
Tests
Tests
Track Recording
Track Recording
Translations
Translations
TTS
TTS
UI
UI
UX
UX
Walk Navigation
Walk Navigation
Watches
Watches
Web
Web
Wikipedia
Wikipedia
Windows
Windows
Won't fix
Won't fix
World Map
World Map
No milestone
No project
No assignees
2 participants
Due date
No due date set.
Dependencies
No dependencies set.
Reference: organicmaps/organicmaps-tmp#5777
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "samsung-dex"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Signed-off-by: meenbeese meenbeese@tutanota.com
Resolves organicmaps/organicmaps#2218 by adding basic but working support for DeX mode.
Remove only required=true?
This is an important change that may require adding support for non-touchscreen input (remote controls, joysticks, etc.).
What is the impact of it for normal phones?
Isn't it a dangerous change? All these events may not be handled in the code. Why is it needed for the SplashActivity?
Are there some docs about this key? It would be great to insert a link into a comment. And maybe to add necessary comments to other changes too.
Setting this attribute to "true", allows the user to launch the activity in split-screen and free-form modes. If you set the attribute to ”false”, the app can't be tested or optimized for a multi-window environment. It shouldn't negatively affect standard full-screen usage on normal phones.
I can set it to
android:required="false"
because requiring this breaks DeX mode according to the documentation.I do not see how this forces us to add support for external accessories explicitly as it only allows for non-touchscreen devices. We can officially only maintain touch support while deleting this for DeX mode purposes.
No this is not dangerous. It just tells the system to not restart the activity, but to receive a call to the
onConfigurationChanged(Configuration)
method along with the new configuration. It saves us from writing a bunch of code to let the processes live when the orientation expectedly changes.I got it from the documentation here. I will now be adding all the necessary comments for the rest of the code too.
Are there any additional effects from enabling it? How OpenGL/Vulkan windows behave after it is enabled? Are there any additional callbacks or other changes in the system behavior?
Why is it needed in the first place in the SplashActivity? This activity's role is to properly pass data to other activities and to finish the startup ASAP.
The official documentation suggests adding this to the main activity of the application. I assumed that the SplashActivity is the correct one for OM, but I can correct this if I am wrong here.
We are just trying to guarantee that unexpected configuration changes don't crash the app.
I couldn't find any additional side effects from enabling it. Everything should behave as the same given that this only allows optional resizing and does not change anything else. Theoretically, it could cause the startup time to be higher if launched on two, three, four etc. displays on the same time but the user must explicitly trigger this.
There are the new methods created (optional to use):
✅ Samsung Galaxy Tab S6 Lite - Android 13 (Mode Dex)
✅ Pixel 6 - Android 14
Now OM claims that the touch input is required to use the app. Removing that claim allows users to install OM on non-touch devices. Where users can not use OM, because there is no touch support.
Did you test this resizing on real devices?
Note that your changes are related to every OM user, not just a few DeX users. That's why it is critically important to test it properly with and without DeX mode.