Android Question Take a screenshot

trueboss323

Active Member
Licensed User
Is there a way to programmatically take a screenshot by code? I couldn't find any recent example that works.
 

BillMeyer

Well-Known Member
Licensed User
Right Here,
upload_2019-4-15_10-12-3.png
 

DonManfred

Expert
Licensed User
This only captures the Activity screenshot
It captures the active activity.
The Topbar is not part of your app so you can not capture it.
You can use the android screenshot function. swipe over the hole screen from left to right to do a capture
like this one

WhatsApp Image 2019-04-15 at 18.35.00.jpeg
 
Last edited:

trueboss323

Active Member
Licensed User
It captures the active activity.
The Topbar is not part of your app so you can not capture it.
You can use the android screenshot function. swipe over the hole screen from left to right to do a capture
like this one

View attachment 79391
Is there a way to programmatically take a screenshot of the entire screen like you showed? If not , I guess i am Ok with Erel's code. It's a better improvement than the 10+ lines of code we had.
 
Top