In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article introduces the knowledge of "what are the common problems of Android10 developers". Many people will encounter this dilemma in the operation of actual cases, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
Q 1: specifying SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION doesn't seem to hide the navigation bar and status bar?
A: you need to tell the system how you want the layout. SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN: full screen, status bar floating on top of the application; SYSTEM_UI_FLAG_LAYOUT_STABLE: keep the view stable, using the most extreme layout. SetSystemUiVisibility () takes effect only if the specified view is visible. More specifically, the specified view must remain visible to keep the navigation bar hidden.
Q2: is there any detailed documentation for the optimization of reinforcement and thermal repair?
A: these may not be the special features that most developers need to come into contact with, and different hardening and hotfix solutions have different designs and implementations. We have worked directly with most commonly used reinforcement and thermal repair suppliers to ensure maximum compatibility and performance of their solutions. If you have more specific questions, please contact your supplier of reinforcement or thermal repair solutions.
Q3: after the MAC address is random, if the router sets a whitelist of MAC addresses, the phone will not be able to connect to the router. How to solve this problem?
A: the system knows the real MAC address, but it won't report it to the application. You can view the real MAC address in the system settings interface and add it to the whitelist of the router.
Q 4: the security features of Android 10 vary greatly. Is there any technical documentation that can guide developers to upgrade and adapt?
A: please refer to the official website of Android developers (especially privacy enhancement, behavior change and migration guides), as well as general best practices.
Q 5: how to track users when the system is reinstalled after upgrading from Android P to Android 10 (non-login) applications?
A: use SSAID (Secured Settings Android Id). Under the same system user, this ID is consistent between applications signed by the same developer's signature key. But it will be changed after the factory settings are restored.
Q 6: what is the scope of SAF access for an application?
A: in Android 10 and previous versions, the application can access any specified directory when the user agrees. As we mentioned earlier, in the next large version of Android, certain directories will not be accessible. If this will cause problems with your application, please tell us the specific use cases.
Q 7: non-SDK interface restrictions: will future changes to this limitation in multiple Android versions make it difficult for developers to maintain? Will static scanning tools be added to the compilation process in the future?
A: we will continue to provide documentation and technical support for non-SDK interface changes. The static scan tool only needs one command to run, and you can add a postbuild command to the compilation process yourself.
Q 8: equipment ID: whether Android ID can ensure that each device does not repeat each other? according to other departments of the company, Android ID has some repetition.
A: statistically, the repetition probability of Android ID is very low. If you find that the two devices have the same ID, please tell us the equipment manufacturer and model.
Q 9: sandboxed storage: paths are allowed to access media resources on Android 10. Does this mean that the DATA column in the media resource information queried through ContentResolver can be used?
A: DATA has been deprecated and you should not use it. If you want to use paths to access media resources, you can use the class java.io.File. You can use it to access media files that belong to the application itself, or to apply media files that are authorized to access.
Q 10: is single / temporary authorization currently supported?
A: not at the moment, but we are considering providing support.
Q 11: permissions: do you provide authorization logs / records?
A: under what circumstances do you need to use it? From the perspective of privacy protection, applications should not obtain permission request records from other applications.
Q 12: access to screen content is restricted. Does the screenshot function belong to "screen content access"?
A: screen content access protection means that one application accesses the screen content of another application. If this means that the application accesses its own drawing cache (DrawingCache), no special permissions are required.
Q 13: activity detection and screencap, how to be compatible with older devices? Is the limitation on Android 10 for applications with targetApi 29 or for all applications running on Android 10?
A: please refer to this document to understand the relationship between the permissions related to activity discovery and the applied targetSdkVersion.
Q 14: does the preview of the next version mentioned in the file storage presentation refer to the next small version of Android 10?
A: this refers to the next major version.
Q 15: is there a callback for collapsible devices to know whether they are currently in fold mode or flat mode?
A: no, we want the application to be more general-purpose for different screen resolutions. Please use onConfigurationChanged, or tell us more specific requirements.
That's all for "what are the common questions for Android10 developers?" Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.