Git Product home page Git Product logo

android-screenshot-library's People

Contributors

drecom-jenkins avatar xion avatar

android-screenshot-library's Issues

screen shots can be successful, but, asl-native service is stopped,It "shows Native service not found", after the start of each service only successful of one time

What steps will reproduce the problem?
1.  I run in cmd “adb shell "/ data / local / asl-native"” , when i press 
the "Take screenshot"in my phone, screen shots can be successful, but, 
asl-native service is stopped,It "shows Native service not found", after the 
start of each service only successful of one time
2.  When I start asl-native service in android code:
   java.lang.Process process = Runtime.getRuntime().exec("su");
    DataOutputStream os = new DataOutputStream(process.getOutputStream());
   os.writeBytes("chmod 0777 /data/local/asl-native" + "\n");
   os.writeBytes("/data/local/asl-native" + "\n");
   os.writeBytes("exit\n");
   os.flush();
   os.close();
when i press the "Take screenshot"in my phone,it still  ,asl-native service is 
stopped and "shows Native service not found".
3.Each screenshot, the height of the image is fixed, and can only display a 
little picture of the head


What is the expected output? What do you see instead?
Please tell me how to solve...

What version of the product are you using? On what operating system?
I'm using asl-native1.2 ,OS:windows7

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 15 Oct 2012 at 3:56

takescreen

What steps will reproduce the problem?
1.  I run in cmd “adb shell "/ data / local / asl-native"” , when i press 
the "Take screenshot"in my phone, screen shots can be successful, but, 
asl-native service is stopped,It "shows Native service not found", after the 
start of each service only successful of one time
2.  When I start asl-native service in android code:
   java.lang.Process process = Runtime.getRuntime().exec("su");
    DataOutputStream os = new DataOutputStream(process.getOutputStream());
   os.writeBytes("chmod 0777 /data/local/asl-native" + "\n");
   os.writeBytes("/data/local/asl-native" + "\n");
   os.writeBytes("exit\n");
   os.flush();
   os.close();
when i press the "Take screenshot"in my phone,it still  ,asl-native service is 
stopped and "shows Native service not found".
3.Each screenshot, the height of the image is fixed, and can only display a 
little picture of the head


What is the expected output? What do you see instead?
Please tell me how to solve...

What version of the product are you using? On what operating system?
I'm using asl-native1.2 ,OS:windows7

Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 15 Oct 2012 at 3:54

Nexus 7 produces "fuzzy" image screenshot

What steps will reproduce the problem?
1. Install the native service using instructions or the comment by gregm
2. Run Demo Application 
3. Click "take Screenshot"

What is the expected output? What do you see instead?
- I expect a screenshot, Instead I got a "fuzzy" yellowish image. (see attached)

What version of the product are you using? On what operating system?
- Nexus 7, using asl 1.2

Please provide any additional information below.
- The same code works fine on the Nexus S. I assume it is Nexus 7 specific.

Original issue reported on code.google.com by [email protected] on 21 Jan 2013 at 11:26

Attachments:

Some problem after taking picture

What steps will reproduce the problem?
1.Install apk via eclipse
2.Press toggle to take the picture
3.Show the error message on the tablet
4.Save picture fail

What is the expected output? What do you see instead?
1.It should output the pictures at floder "screens"
2.The floder is created, but the pictures aren't found.

What version of the product are you using? On what operating system?
1.Product: Acer tablet
2.Android 3.2

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 19 Dec 2011 at 9:14

Attachments:

FBIOGET_FSCREENINFO Bad file descriptor

What steps will reproduce the problem?
1. Launch native binary from /data/data/app/binary using ProcessBuilder

What is the expected output? What do you see instead?
A screenshot is made. Binary exits.

What version of the product are you using? On what operating system?

Android 2.3.6, Nexus One; not rooted.

Here's a logdump:

I/LogThread(21851): Program initialized
I/LogThread(21851): Starting server...
I/LogThread(21851): - Socket creation
I/LogThread(21851): - Socket binding
I/LogThread(21851): - Socket in listening mode
I/LogThread(21851): Server started.
I/LogThread(21851): Listening on 0.0.0.0:42380
I/LogThread(21851): Signal handling setup
I/LogThread(21851): Starting main loop.
I/LogThread(21851): << select() on sockets... >>
I/LogThread(21851): Incoming client connection
I/LogThread(21851): - Connection accepted
I/LogThread(21851): << select() on sockets... >>
I/ScreenshotService(21851): Error writeImageFile: null
I/LogThread(21851): Client socket signaled for input
I/LogThread(21851): - Retreiving data
I/LogThread(21851): - Command identified as SCREEN
I/LogThread(21851): - Taking screenshot
I/LogThread(21851): An error occured: ioctl FBIOGET_FSCREENINFO Bad file 
descriptor
I/LogThread(21851): Exiting now...


Original issue reported on code.google.com by [email protected] on 21 Mar 2012 at 8:18

Performance Implications

What steps will reproduce the problem?
1. Start the native service
2. Deploy and start the demo app
3. Taking quite a few screenshots
4. Returning to the home screen

What is the expected output? What do you see instead?
The phone becomes quite unresponsive back on the homescreen (i.e. it completely 
refreshes all the icons and widgets; it doesn't start the launcher or does that 
very slowly).
I also see a few "low memory" warnings from the ActivitiyManager in the logcat.

What are the performance implications of (a) running the asl-native service in 
the background? And (b) taking screenshots?

What version of the product are you using? On what operating system?
asl-1.2 demo
Android 2.2.1 on Google Nexus One

Please provide any additional information below.

Thanks

Original issue reported on code.google.com by [email protected] on 5 Jan 2011 at 2:32

Native service not found

how i solve this problem 
i have installed Android ndk service but no luck to capture the screen shot 

Original issue reported on code.google.com by [email protected] on 25 Apr 2012 at 8:31

takescreen

What steps will reproduce the problem?
1.  I run in cmd “adb shell "/ data / local / asl-native"” , when i press 
the "Take screenshot"in my phone, screen shots can be successful, but, 
asl-native service is stopped,It "shows Native service not found", after the 
start of each service only successful of one time
2.  When I start asl-native service in android code:
   java.lang.Process process = Runtime.getRuntime().exec("su");
    DataOutputStream os = new DataOutputStream(process.getOutputStream());
   os.writeBytes("chmod 0777 /data/local/asl-native" + "\n");
   os.writeBytes("/data/local/asl-native" + "\n");
   os.writeBytes("exit\n");
   os.flush();
   os.close();
when i press the "Take screenshot"in my phone,it still  ,asl-native service is 
stopped and "shows Native service not found".
3.Each screenshot, the height of the image is fixed, and can only display a 
little picture of the head


What is the expected output? What do you see instead?
Please tell me how to solve...

What version of the product are you using? On what operating system?
I'm using asl-native1.2 ,OS:windows7

Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 15 Oct 2012 at 3:54

For some devices No screenshot will be taken

What steps will reproduce the problem?

I just installed native service and I tried taking screen shot on Samsung 
Galaxy S4 but I got FBIOGET_FSCREENINFO Bad file descriptor error.

I tried on Galaxy Y also but its not giving any screenshot it just gets stuck 
in read function.


What is the expected output? What do you see instead?
Screenshot should be taken.


What version of the product are you using? On what operating system?
I am using asl 1.2 android 4.3 on Galaxy S4 and its 2.3.6 on Galaxy Y

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 2 Dec 2013 at 7:21

Getting black screen on ANdroid 2.2 emulator

What steps will reproduce the problem?
1.Clicking on Take Screenshot button in android emulator 2.2
2.Used adb pull command to pull the .png file into local directory
3.Only black screen is coming

What is the expected output? What do you see instead?
Expected-screen with android icon but getting black screen.

What version of the product are you using? On what operating system?
Emulator android 2.2

Please provide any additional information below.

Have already implemented root user etc.

Original issue reported on code.google.com by [email protected] on 28 Dec 2012 at 7:56

Attachments:

Can anyone send me fix asl 1.2?

What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?


What version of the product are you using? On what operating system?


Please provide any additional information below.


Original issue reported on code.google.com by uttaram03 on 17 Apr 2013 at 2:31

android screenshot library is not working in Android 4.4.4

What steps will reproduce the problem?
1. Start the Service

What is the expected output? What do you see instead?
Service should start successfully but it failed. 

This is what I have when I start the service

Android Screenshot Library -- Initializing...
Waiting for device to be connected...
- Installing native service...
Unable to chmod /data/local/asl-native: No such file or directory

Starting...
/system/bin/sh: kill: /data/local/asl-native: arguments must be jobs or process 
IDs
/system/bin/sh: /data/local/asl-native: not found

What version of the product are you using? On what operating system?

Android 4.4.4, this can be other other Android OS also.

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 18 Aug 2014 at 2:43

How to copy asl-native file in android and run?

I  got screen shot use android screen shot lib but when i copy my apk file and 
run on android phone diffrent. It show service not found. How can i copy 
asl-native file and run on android and don't run file .bat or file .sh


Original issue reported on code.google.com by [email protected] on 26 Mar 2015 at 10:17

takeScreenshot() in ScreenshotService.java (almost) always returns null

In the latest source code revision (as of May 22, 2012), there's a bug that 
will likely make takeScreenshot() in ScreenshotService.java return null.


The line in question is the following:

   if (!screensPath.mkdirs())      return null;

mkdirs() only returns true IF the directory in question DID NOT EXIST BEFORE 
and HAS BEEN CREATED BY THIS CALL. If the directory already existed before, 
mkdirs() will return false, which means that on a brand new sdcard the 
Screenshot Service will only work once.

I suggest the following change:

   screensPath.mkdirs()
   if (!screensPath.isDirectory())     return null;

This should work as intended.
This should 

Original issue reported on code.google.com by [email protected] on 22 May 2012 at 3:40

takescreen

What steps will reproduce the problem?
1.  I run in cmd “adb shell "/ data / local / asl-native"” , when i press 
the "Take screenshot"in my phone, screen shots can be successful, but, 
asl-native service is stopped,It "shows Native service not found", after the 
start of each service only successful of one time
2.  When I start asl-native service in android code:
   java.lang.Process process = Runtime.getRuntime().exec("su");
    DataOutputStream os = new DataOutputStream(process.getOutputStream());
   os.writeBytes("chmod 0777 /data/local/asl-native" + "\n");
   os.writeBytes("/data/local/asl-native" + "\n");
   os.writeBytes("exit\n");
   os.flush();
   os.close();
when i press the "Take screenshot"in my phone,it still  ,asl-native service is 
stopped and "shows Native service not found".
3.Each screenshot, the height of the image is fixed, and can only display a 
little picture of the head


What is the expected output? What do you see instead?
Please tell me how to solve...

What version of the product are you using? On what operating system?
I'm using asl-native1.2 ,OS:windows7

Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 15 Oct 2012 at 3:50

Nicer portable solution for installing the native component

What feature is requested?
Use SDK 2.3s monkeyrunner and python for cross-platform single solution to 
install the native component
* Most likely Python UI libraries can be used to trigger the installation.
* We might also think about having an add-on to Android's SDK to integrate well 
with SDK?
* Maybe even extending ADT would be an option?

Which version it applies to ?
1.2

What will be the benefits from having the feature?
Easier installation for the users.

Original issue reported on code.google.com by [email protected] on 6 Jan 2011 at 3:24

magic 7F45

Has anybody made it work?
while trying to execute the run.ps1 file via windows PowerShell, i got the 
"magic 7F45" error.. I made some researches, apparently the library works only 
for ARM, so we need to cross-compile it to x86 (for eg); and i'm having hard 
time doing that.
Did anybody encounter this problem? If so, Please tell us, what did you do? 
what toolchain did you use.. ? 

Original issue reported on code.google.com by [email protected] on 11 May 2014 at 9:40

asl 1.2 bug fix - black screen bug

What steps will reproduce the problem?

1.nativ code bug fix

  main.c/handle_client_input():

        /* content */
        int length = pict.xres * pict.yres * pict.bps / 8;
        int seek, len;

        for(seek=0; seek<length; seek+=len) {
            len = Send(cfd, &pict.buffer[seek], length-seek, 0);
            if (len < 0)
                return -1;
        }
        Log ("- Screenshot sent");

2. Service bug fix

  ScreenshotService.java/retreiveRawScreenshot():

                ByteBuffer bytes = ByteBuffer.allocate (ss.width * ss.height * ss.bpp / 8);
                is = new BufferedInputStream(is);   // buffering is very important apparently

                int size, length=0, len;

                size = ss.width * ss.height * ss.bpp / 8;
                while((len=is.read(bytes.array(), length, size-length)) > 0)
                    length += len;

//              is.read(bytes.array());             // reading all at once for speed
//              Log.d("SERVICE", "Size=" + (ss.width * ss.height * ss.bpp / 8) + ", 
Length=" + length);
                bytes.position(0);                  // reset position to the beginning of ByteBuffer
                ss.pixels = bytes;


3. native win32 build fix

native/make.bat

@ set ADB=D:\Android\sdk\platform-tools\adb.exe

What is the expected output? What do you see instead?


What version of the product are you using? On what operating system?


Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 17 Apr 2012 at 3:49

Black screen on Samsung Galaxy Note (N7000)

What steps will reproduce the problem?
1.
Download the latest source using "hg clone 
https://code.google.com/p/android-screenshot-library/"
2.
Start the native service and the demo 
3.

What is the expected output? What do you see instead?
The first few screen shots were good, but after 3 to 5 screen shots, all I got 
is blank screen and sometime I got a partial screen shot.

What version of the product are you using? On what operating system?
I start the native service using a Win 7 desktop machine.

Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 12 Nov 2012 at 12:40

Black screen is capturing in emulator

What steps will reproduce the problem?
1.i expected current screen capture but it capturing black screen please tell 
me how to resolve it
2.iam using android 2.3.3. in emulator
3.please tell me how to resolve this issue i got black screen not capturing 
cureent screen

What is the expected output? What do you see instead?


What version of the product are you using? On what operating system?


Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 18 Jan 2013 at 6:49

Blank Image on Emulator

What steps will reproduce the problem?
1. Start emulator -> Start native service
2. Start Demo App or any other app that has uses screenshot API
3. Take screenshot

What is the expected output? What do you see instead?
Instead of a Screenshot it shows a blank image

What version of the product are you using? On what operating system?
1.2 ASL, Android 2.2 API Level 8

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 21 May 2011 at 8:24

screen shots can be successful, but, asl-native service is stopped,It "shows Native service not found", after the start of each service only successful of one time

What steps will reproduce the problem?
1.  I run in cmd “adb shell "/ data / local / asl-native"” , when i press 
the "Take screenshot"in my phone, screen shots can be successful, but, 
asl-native service is stopped,It "shows Native service not found", after the 
start of each service only successful of one time
2.  When I start asl-native service in android code:
   java.lang.Process process = Runtime.getRuntime().exec("su");
    DataOutputStream os = new DataOutputStream(process.getOutputStream());
   os.writeBytes("chmod 0777 /data/local/asl-native" + "\n");
   os.writeBytes("/data/local/asl-native" + "\n");
   os.writeBytes("exit\n");
   os.flush();
   os.close();
when i press the "Take screenshot"in my phone,it still  ,asl-native service is 
stopped and "shows Native service not found".
3.Each screenshot, the height of the image is fixed, and can only display a 
little picture of the head


What is the expected output? What do you see instead?
Please tell me how to solve...

What version of the product are you using? On what operating system?
I'm using asl-native1.2 ,OS:windows7

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 15 Oct 2012 at 3:56

Run it from Java

Hi guys.
I run it according to the official guide.

But I need to bundle asl-native script to my app.then I followed the few steps 
below.

1. copied the asl-native script to the assets folder of my app.
2. on start up of my app, it change the mode the script in the assets folder to 
777 to execute it from my app.

3. after it changed the mode of it, It tries to run it like below: 
Runtime.getRuntime().exec("/data/data/"+getPackageName()+"/files/asl_native &");

4. then I checked if it is started using "$ps" in adb terminal. It runs 
normally.

5. Finally I hit the button to capture the screen of the device.
  No image captured and the script started by my app is down unexpectedly.


Anyone do tested it like my steps.

What should i do to get it worked?

tnx in advance.

Original issue reported on code.google.com by [email protected] on 13 Dec 2011 at 7:34

Partial image captured on Nexus One using instrumentation test

What steps will reproduce the problem?
1. install & configure as pr manual
2. start the service through an instrumentation test
3. create screenshot

What is the expected output? What do you see instead?

a full screenshot. what i get is a partial image, resolution looks correct as 
well as colors. but perhaps 3/4 of the image is not filled with data 
(transparent apparently).

What version of the product are you using? On what operating system?

nexus one produces this result, a rooted desire hd produces correct and full 
images.

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 17 Jan 2011 at 1:46

Screenshots of Videos

What steps will reproduce the problem?
Whenever a video is played either in player or on youtube Screenshots of that 
video won't be captured, instead I get blank screen. PLease look into the issue 
I need this feature.

What is the expected output? What do you see instead?
Screenshots of video should be saved frame by frame.

What version of the product are you using? On what operating system?
I am using asl 1.2 and Android 2.3.6

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 3 Dec 2013 at 5:09

IScreenShotProvider is not generating in gen folder

What steps will reproduce the problem?
1.Done the general implementation of ASL i.e. creating service for 
the ScreenShot and done the entry in menifiest file.

What is the expected output? What do you see instead?
My code is not even in compilable form because it is unable to found 
the IScreenShotProvider in gen folder.

What version of the product are you using? On what operating system?
android 2.2
I am using asl1.2

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 28 May 2012 at 10:23

Colors are inverted on Motorola Droid


Colors are inverted on Motorola Droid.  Works perfectly on the Nexus One.  
Attached file shows 3 layers of screenshots.  The middle layer, which is a 
screenshot-of-a-screenshot, has correct colors.

What version of the product are you using? On what operating system?
ASL 1.1 on Motorola Droid running Android 2.2.1



Original issue reported on code.google.com by [email protected] on 14 Dec 2010 at 6:16

Attachments:

Wrong screenshots on HTC Sensation and Galaxy S plus

What steps will reproduce the problem?
1. Take screenshot using ASL on HTC sensation and Galaxy s plus

What is the expected output? What do you see instead?

On HTC snesation screenshot is twisted and repeated and on galaxy s plus 
screenshots is pinky. I tested asl on 3 device and only on Sony Erricson 
screenshots were proper.


What version of the product are you using? On what operating system?
Newest

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 5 Jun 2012 at 2:15

Toast shown: "Native service not found." - 6/30/2015

Hi, 
I use this lib, but without success, please help.
asl-1.2 
android 5.0


i> What steps will reproduce the problem?
_____________________________________________________________________________
1.run demo
2.run run.bat

Log:
----------------------------------------------------------------------------
C:\Users\...\asl-1.2>run.bat
Android Screenshot Library -- Initializing...
Waiting for device to be connected...
- Installing native service...
2237 KB/s (666905 bytes in 0.291s)
Starting...
/system/bin/sh: kill: /data/local/asl-native: arguments must be jobs or process 
IDs
Service started successfully.



ii> What is the expected output? 
_____________________________________________________________________________

taking screenshot as expected.


iii> What do you see instead?
_____________________________________________________________________________

Toast shown: "Native service not found."



iv> What version of the product are you using? 
_____________________________________________________________________________

asl-1.2 
android 5.0


v> On what operating system?
_____________________________________________________________________________

win7


vi> Please provide any additional information below.
_____________________________________________________________________________

please help.
thanks!





Original issue reported on code.google.com by [email protected] on 30 Jun 2015 at 10:16

Black screen on samsung galaxy r

What steps will reproduce the problem?
1. Install and run the service.
2. Take a screenshot through demo project.

What is the expected output? What do you see instead?


What version of the product are you using? On what operating system?


Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 13 May 2014 at 9:37

(patch) native part does not compile in release

What steps will reproduce the problem?
1. remove/comment-out C_FLAGS=-DDEBUG in makefile
2. make
3. you will see message as follows
{{{
main.c: In function 'sig_INT':
main.c:43:33: error: 'logFile' undeclared (first use in this function)
main.c:43:33: note: each undeclared identifier is reported only once for each 
function it appears in
}}}

What version of the product are you using? On what operating system?

HG revision 67

Please provide any additional information below.

Patch to fix that problem provided.
Also this patch fixes compilation under android-ndk toolchain.

Original issue reported on code.google.com by loentar on 26 Oct 2012 at 6:57

Attachments:

memory leak

What steps will reproduce the problem?
1. Start the native service
2. Deploy and start the demo app
3. Taking quite a few screenshots
4. Returning to the home screen

What is the expected output? What do you see instead?
screen can be captured. but the native service will continue to leak memory if 
continuing capture

What version of the product are you using? On what operating system?
asl-1.2 demo at android 2.3.2

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 21 Feb 2011 at 2:59

black

What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?


What version of the product are you using? On what operating system?


Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 9 Jul 2014 at 2:10

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.