Taking screenshot of entire screen from service

Multi tool use
up vote
0
down vote
favorite
am having a service which run almost everything for my app. I want it to have a button that can take screenshot of the phone (not screenshot of my app).
I searched on many source but they alway use getRootView(), which cant be done in a service.
Is there another way to take screenshot, or some how way to use getRootView() in a service?

add a comment |
up vote
0
down vote
favorite
am having a service which run almost everything for my app. I want it to have a button that can take screenshot of the phone (not screenshot of my app).
I searched on many source but they alway use getRootView(), which cant be done in a service.
Is there another way to take screenshot, or some how way to use getRootView() in a service?

try to bind the service with activity then you can achieve what you want!
– Waleed Asim
Nov 13 at 7:25
Possible duplicate of Taking a Screenshot in Android from a Service
– hossam scott
Nov 13 at 9:28
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
am having a service which run almost everything for my app. I want it to have a button that can take screenshot of the phone (not screenshot of my app).
I searched on many source but they alway use getRootView(), which cant be done in a service.
Is there another way to take screenshot, or some how way to use getRootView() in a service?

am having a service which run almost everything for my app. I want it to have a button that can take screenshot of the phone (not screenshot of my app).
I searched on many source but they alway use getRootView(), which cant be done in a service.
Is there another way to take screenshot, or some how way to use getRootView() in a service?


asked Nov 13 at 7:04


Euphoria Celestial
189
189
try to bind the service with activity then you can achieve what you want!
– Waleed Asim
Nov 13 at 7:25
Possible duplicate of Taking a Screenshot in Android from a Service
– hossam scott
Nov 13 at 9:28
add a comment |
try to bind the service with activity then you can achieve what you want!
– Waleed Asim
Nov 13 at 7:25
Possible duplicate of Taking a Screenshot in Android from a Service
– hossam scott
Nov 13 at 9:28
try to bind the service with activity then you can achieve what you want!
– Waleed Asim
Nov 13 at 7:25
try to bind the service with activity then you can achieve what you want!
– Waleed Asim
Nov 13 at 7:25
Possible duplicate of Taking a Screenshot in Android from a Service
– hossam scott
Nov 13 at 9:28
Possible duplicate of Taking a Screenshot in Android from a Service
– hossam scott
Nov 13 at 9:28
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53275545%2ftaking-screenshot-of-entire-screen-from-service%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
KWuakTkoEmv5y0hXLal4EXtB1sDUkiMwenAVjHc v,5ATNG bFlKwd7xZ,72cEdItBsZT9hr1,Kpigu w Mruze Si D2Wo0bfJzTIfiT
try to bind the service with activity then you can achieve what you want!
– Waleed Asim
Nov 13 at 7:25
Possible duplicate of Taking a Screenshot in Android from a Service
– hossam scott
Nov 13 at 9:28