In the project I use Here map-android-sdk. It is necessary to photograph the screen with the map, I did not find the desired functionality in sdk. I know that for google map this solution works. When you try to take a picture of the parent view in which the map lies, instead of the map, the black area appears. Has anyone encountered a similar problem? Any ideas?
The code that I'm trying to make the screen below:
View screenView = getWindow().getDecorView().getRootView(); Bitmap bitmapFull = Bitmap.createBitmap(screenView.getWidth(), screenView.getHeight(), Bitmap.Config.ARGB_8888); bitmapFull = Bitmap.createBitmap(bitmapFull, 0, 0, screenView.getWidth(), screenView.getHeight()); Canvas canvas = new Canvas(bitmapFull); screenView.draw(canvas); screenView.setDrawingCacheEnabled(false);