T trueboss323 Active Member Licensed User Longtime User Apr 15, 2019 #1 Is there a way to programmatically take a screenshot by code? I couldn't find any recent example that works.
Is there a way to programmatically take a screenshot by code? I couldn't find any recent example that works.
Erel B4X founder Staff member Licensed User Longtime User Apr 15, 2019 #3 Code: Copy Dim x As B4XView = Activity 'XUI library Dim bmp As Bitmap = x.Snapshot Upvote 0
T trueboss323 Active Member Licensed User Longtime User Apr 15, 2019 #4 BillMeyer said: Right Here, View attachment 79381 Click to expand... I tried that but it doesn't include the title bar. Upvote 0
BillMeyer said: Right Here, View attachment 79381 Click to expand... I tried that but it doesn't include the title bar.
Erel B4X founder Staff member Licensed User Longtime User Apr 15, 2019 #5 trueboss323 said: Is there a way to programmatically take a screenshot by code? I couldn't find any recent example that works. Click to expand... Your question is not clear. We cannot guess the problem... Upvote 0
trueboss323 said: Is there a way to programmatically take a screenshot by code? I couldn't find any recent example that works. Click to expand... Your question is not clear. We cannot guess the problem...
T trueboss323 Active Member Licensed User Longtime User Apr 15, 2019 #6 Erel said: Your question is not clear. We cannot guess the problem... Click to expand... This only captures the Activity screenshot , I want to know if I can capture the screenshot of the whole device. Upvote 0
Erel said: Your question is not clear. We cannot guess the problem... Click to expand... This only captures the Activity screenshot , I want to know if I can capture the screenshot of the whole device.
DonManfred Expert Licensed User Longtime User Apr 15, 2019 #7 trueboss323 said: This only captures the Activity screenshot Click to expand... 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: Apr 15, 2019 Upvote 0
trueboss323 said: This only captures the Activity screenshot Click to expand... 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
T trueboss323 Active Member Licensed User Longtime User Apr 16, 2019 #8 DonManfred said: 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 Click to expand... 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
DonManfred said: 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 Click to expand... 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.
moster67 Expert Licensed User Longtime User Apr 16, 2019 #9 Yes, you can. https://www.b4x.com/android/forum/threads/b4a-screenrecorder-screenshots.71348/ Upvote 0