Monika
Monika

Reputation: 135

Take ScreenShot of a current Screen using a background service in android

I need to write a service that will take screenshots of the current screen at specific intervals.After studying I found that there are two ways to do so :

  1. By rooting the device and access system level privileges to read framebuffer and convert it into a bitmap

2.Use ASL library to take screenshots

Since I don't want to root the device,I decided to go with ASL but whenever I run the demo code,I get native service not found.Please suggest me the steps to implement ASL and make the code to work.

Upvotes: 1

Views: 1923

Answers (1)

FD_
FD_

Reputation: 12919

In order for ASL to work, you have to connect to a PC once after every boot, and start the native service via ADB.

I guess you missed that, thus the service is not found.

You can find more on that here: http://code.google.com/p/android-screenshot-library/wiki/UserGuide

Upvotes: 1

Related Questions