TheGenius
(Nihar Sail)
May 30, 2020, 8:38pm
#1
I am using Custom Dialog (notifier) and a button to trigger the notifier, which is located in the custom dialog arrangement itself.
When I call screenshot.take screenshot, for fraction of seconds, custom dialog disappears and screenshot event provides me something else (earlier arrangement, from where I have activated the custom dialog) than the current screen i.e. custom dialog.
any suggestions?
Please share your Blocks so members can understand what mistake have you done
TheGenius:
custom dialog disappears
Let me check…
For quick fix use component to image extension …
Search for it
1 Like
If you just want to take screenshot of custom dialog then use the extension component to image
Extension ComponentToImage 1.About Using this extension you can convert any view/component to image and save it to storage. The image will be created as per the components same width and height. You can convert Layout, Buttons, Labels …etc Any...
Reading time: 1 mins 🕑
Likes: 33 ❤
1 Like
TheGenius
(Nihar Sail)
May 31, 2020, 2:22pm
#5
Extension CompnentToImage
It is working fine in the companion but not working in baked apk, when installed.
What can be the possibilities?
I tried in 4 different phones. All were on MIUI 11. (Redmi Note 5pro, 6pro, 7pro & 8pro)
Something is related to Read Write Permissions.
My app is not asking for any permission when installed.
TheGenius
(Nihar Sail)
May 31, 2020, 5:24pm
#6
Calling Write Permission solved my problem for now.
This allowed ComponentToImage to work properly on all devices.
Thank you @OfficialDjJohn for your suggestion and @Soham_Shah for your link to the extension.
Regards.
1 Like