是否可以在Android API 16级或更低级别添加DiplayManager和Display类实现?(Is it possible to add DiplayManager and Display

编程入门 行业动态 更新时间:2024-10-15 06:18:02
是否可以在Android API 16级或更低级别添加DiplayManager和Display类实现?(Is it possible to add DiplayManager and Display class implementation in Android API level 16 or below?)

Android API级别在API级别17中添加了少量API,如DisplayManager,Presentation等。 是否可以使用API​​级别16开发应用程序,该应用程序使用Presentation API实现与API级别17相同的功能?

或者我有没有办法在我的Android应用程序中使用API​​级别16或更低级别实现Presentation类?

谢谢, Smitha

Android API level has added few APIs like DisplayManager, Presentation etc in API level17. Is it possible to develop an app using API level 16 which achieves the same functionality as we do in API level 17 using Presentation APIs?

Or Is there any way I can implement Presentation class myself in my Android App with API level 16 or below??

Thanks, Smitha

最满意答案

从代码(ttps://github.com/android/platform_frameworks_base/blob/master/core/java/android/app/Presentation.java),我会说你可以很容易地在你的应用程序中包含演示文稿,但你'我必须删除与DisplayManager相关的功能。 (这可能有点挫败了目的)

DisplayManager可能要复杂得多,因为它依赖于其他类,其中一些是隐藏的。

From the code (ttps://github.com/android/platform_frameworks_base/blob/master/core/java/android/app/Presentation.java), i'd say you can include Presentation pretty easily in your app, but you'll have to remove the DisplayManager-related functionnalities. (which probably kind of defeats the purpose)

DisplayManager is probably much more complex to integrate, as it depends on other classes, some of which are hidden.

更多推荐

本文发布于:2023-07-07 21:27:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1068439.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:更低   级别   API   Android   DiplayManager

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!