Something like that might work for you:
View v = view.getRootView();
v.setDrawingCacheEnabled(true);
Bitmap b = v.getDrawingCache();
More Related Contents:
- How to programmatically take a screenshot on Android?
- How to prevent Screen Capture in Android
- Take a screenshot of a whole View [duplicate]
- How to take a screenshot of a current Activity and then share it?
- Android take screen shot programmatically
- Take Screenshot of SurfaceView
- Screen Capture in android
- How to record screen and take screenshots, using Android API?
- Android take screenshot via code
- Taking screenshot programmatically doesnt capture the contents of surfaceVIew
- android taking screenshot of offscreen page
- Taking a “screenshot” of a specific layout in Android
- Android get screenshot of all ListView items
- VideoView getDrawingCache is returning black
- how to create and save a screenshot from a surfaceview?
- How can I programmatically take a screenshot of a webview, capturing the full page?
- How to take a screenshot and share it programmatically
- Disable Screen Capture/ScreenShot in React Native App
- view.getDrawingCache() is deprecated in Android API 28
- How to take emulator screenshots using Eclipse?
- How do you send a Firebase Notification to all devices via CURL?
- Android: I am using AChartEngine library for graphs, but not able to integrate achartengine’s graph view with android xml?
- No internet on Android emulator – why and how to fix? [closed]
- Disable default animation from Portrait to Landscape
- Not Able To Debug App In Android Studio
- Android: How to integrate a decoder to multimedia framework
- android.os.NetworkOnMainThreadException . Need to use async task?
- Google Maps v2 Marker zOrdering – Set to top
- Camera : setDisplayOrientation function is not working for Samsung Galaxy ACE with Android 2.3.6
- org.json.JSONException: End of input at character