Android 10 developer FAQs (summary)

Q 1: specify 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 above the application; SYstem_ UI_ FLAG_ LAYOUT_ Stable: keep the view stable and use the most extreme layout. Setsystemuivisibility() takes effect only when the specified view is visible. More specifically, the specified view must remain visible for the navigation bar to remain hidden.

Q 2: are there detailed documents on the optimization of reinforcement and thermal repair?

A: These may not be the special functions that most developers need to contact, and different reinforcement and thermal repair schemes have different design and implementation methods. We have worked directly with most common reinforcement and thermal repair suppliers to ensure that their solutions ensure maximum compatibility and performance. If you have more specific questions, please contact your reinforcement or thermal repair solution supplier.

Q 3: after the MAC address is random, if the router sets the MAC address white list, the mobile phone cannot connect to the router. How to solve this problem?

A: The system knows the real MAC address, but it will not report it to the application. You can view the real MAC address in the system setting interface and add it to the router's white list.

Q 4: the security features of Android 10 have changed greatly. Is there a technical document that can guide developers to upgrade and adapt?

A: Please refer to the official Android Developer website (especially the privacy enhancement, behavior change and Migration Guide), as well as general best practices.

Q 5: how to track users when the (non login) application is reinstalled after the system is upgraded from Android p to Android 10?

A: Use ssaid (secured settings Android ID). This ID is consistent between applications signed by the same developer's signature key under the same system user. However, it will be changed after restoring the factory settings.

Q 6: what is the SAF access scope 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 major version of Android, specific directories will not be accessible. If this will cause problems in your application, please tell us the specific use case.

Q 7: non SDK interface restrictions: will changes to this restriction in multiple Android versions in the future make it difficult for developers to maintain? Will the static scanning tool 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 scanning tool only needs one line of command to run. You can add a postbuild command to the compilation process.

Q 8: device ID: can Android ID ensure that all devices do not duplicate each other? According to the statistics of other departments of the company, Android ID has some duplication.

A: Statistically, the repetition probability of Android ID is very low. If you find that two devices have the same ID, please tell us the equipment manufacturer and model.

Q 9: sandbox storage: path access to media resources is allowed on Android 10, which means 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 a path to access media resources, you can use the Java. Io. File class. You can use it to access media files belonging to the application itself, or media files that the application is authorized to access.

Q 10: is single / temporary authorization supported at present?

A: Not yet, but we are considering providing support.

Q 11: Permission: do you provide authorization logs / records?

A: Under what circumstances does it need to be used? In terms of privacy protection, applications should not obtain permission request records of 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 refers to the application accessing its own drawing cache, no special permission is required.

Q 13: how can activity discovery and screen recording be compatible with older devices? Is the limitation on Android 10 for applications with targetapi 29, or 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 targetsdkversion of the application.

Q 14: does the preview of the next version mentioned in the file storage speech refer to the next small version of Android 10?

A: This refers to the next major version.

Q 15: does the foldable device have a callback to know whether it is currently in folding mode or unfolding mode?

A: No, we hope the application's support for different screen resolutions is more general. Please use onconfigurationchanged or tell us more specific requirements.

The above is the whole content of this article. I hope it will help you in your study, and I hope you will support us a lot.

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>