I want to take a screenshot in my android application and I\'m required to use api 29 for my app so can\'t use any solutions with functions like View.setDrawingCacheEn
View.setDrawingCacheEn