screenshott
screenshott copied to clipboard
I can not use library
hi I can not use library
my code error
i make option menu
case R.id.shot: Bitmap bitmap_hiddenview = ScreenShott.getInstance().takeScreenShotOfJustView(view); File file = ScreenShott.getInstance().saveScreenshotToPicturesFolder(context, bitmap, "my_screenshot_filename"); String bitmapFilePath = file.getAbsolutePath(); break;
my error = (view) & (context, bitmap,
@nisrulz
please help me
Thanks
Looks like you copied the sample code as it is. The red context
you have in your screenshot should be replaced by this
keyword. For view
you need to get a reference to whatever view you want to take the screenshot of. I am guessing you want to take the screenshot of your MainActivity screen. IN that case simply assign an id to your root layout and then reference it as
View view = findViewById(R.id.rootViewId);
and then pass that reference as the argument.