Android Question Take a screenshot

trueboss323

Active Member
Licensed User
Longtime 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
Longtime User
Right Here,
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime 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

 
Last edited:
Upvote 0

trueboss323

Active Member
Licensed User
Longtime 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.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…