+ 1

How to get object of activity in background service

I create an app and this app have a service and I want to take screenshot in the background service but my code need an object of activity , please help me

2nd Jul 2018, 4:11 PM
Ali Banai
Ali Banai - avatar
2 ответов
+ 3
Hello, Ali Banai ! This can be done with the canvas for you were selected sites https://m.habr.com/post/138331/ https://html2canvas.hertzen.com/
2nd Jul 2018, 4:13 PM
Alexander Sokolov
Alexander Sokolov - avatar
0
thank you but i want to take screenshot in Android and this is in web
2nd Jul 2018, 4:28 PM
Ali Banai
Ali Banai - avatar