extinguish / android-screenshot-library

Automatically exported from code.google.com/p/android-screenshot-library
Other
0 stars 0 forks source link

Run it from Java #10

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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 freemonh...@gmail.com on 13 Dec 2011 at 7:34

GoogleCodeExporter commented 9 years ago
model of you phone.version.
have you run the script in your pc for try?
no image file in your screens file?

Original comment by cwlay90...@gmail.com on 13 Dec 2011 at 3:57

GoogleCodeExporter commented 9 years ago
I used adb to push and run the native script. It ok and works fine.

But I need to run it from my app not adb because adb is not comportable to 
users who is not an android developer.

Original comment by freemonh...@gmail.com on 14 Dec 2011 at 1:28

GoogleCodeExporter commented 9 years ago
Hello freemonh...@gmail.com.
I tried ways to do it like you.. but not success.. please let me know if you 
succeed..
my email is ccrroocc@gmail.com

Original comment by ccrro...@gmail.com on 27 Oct 2012 at 11:48

GoogleCodeExporter commented 9 years ago
hello freemonh...@gmail.com

    I tried the same ways as you, but not working....without rooting it not possible to push asl-native to devices file.can you please let me know how it will works with out rooting devices.

My mailid is karanam.braju@gmail.com

Original comment by karanam....@gmail.com on 4 Mar 2013 at 12:55