Taking screenshot of entire screen from service
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?
android
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?
android
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?
android
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?
android
android
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
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