Is there a way to programmatically take a screenshot by code? I couldn't find any recent example that works.
I tried that but it doesn't include the title bar.Right Here,
View attachment 79381
Your question is not clear. We cannot guess the problem...Is there a way to programmatically take a screenshot by code? I couldn't find any recent example that works.
This only captures the Activity screenshot , I want to know if I can capture the screenshot of the whole device.Your question is not clear. We cannot guess the problem...
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.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