![]() ![]() In our code, we have view with id as container. Here, view is the layout view which we want to take screenshot. ![]() Now, select the version of Android and select the target Android devices. If you wish to use C++ for coding the project, mark the 'Include C++ support', and click the 'Next' button. ![]() Step 2 You can choose your application name and choose where your project is stored on the location. The hard way - use the Camera API to embed the. In this blog, we will learn to take screenshot of any view particular view or any layout programmaticaly.īut first we will create a layout which we want to take screenshot of, Īnd in the activity, we will create a function called getScreenShot(/** your view **/) Step 1 Open Android Studio and start a new Android Studio Project. The easy way - launch the camera with an intent, designating a file path, and handle the onActivityResult. ![]()
0 Comments
Leave a Reply. |