Is it possible to add DiplayManager and Display class implementation in Android API level 16 or below?

StackOverflow https://stackoverflow.com/questions/17562718

  •  02-06-2022
  •  | 
  •  

Question

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

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top