title: How can I install and run Android Screenshot Library (ASL) from my Android App?
body: <p>I need to take screenshots from a background service to follow the user experience with not rooted devices.</p>
  <p>I thought in Android Screenshot Library (ASL) <a href="http://code.google.com/p/android-screenshot-library/" rel="nofollow noreferrer">http://code.google.com/p/android-screenshot-library/</a> to take the screenshot but I don't know how I can install ASL and start it from the device without ADB.</p>
  <p>I tried to use this code to install and run ASL:</p>
  <pre><code>// Install ASL
  String filename = Environment.getExternalStorageDirectory().toString()+File.separator+&quot;asl-native&quot;;
  Process process = Runtime .getRuntime().exec(&quot;/system/bin/mv &quot; +f + &quot; /data/local/asl-native&quot;);
  process = Runtime .getRuntime().exec(&quot;/system/bin/chmod 0777 /data/local/asl-native&quot;);
  
  // Run ASL
  Process process = Runtime .getRuntime().exec(&quot;/data/local/asl-native /data/local/asl-native.log&quot; );
  </code></pre>
  <p>But it doesn't work.</p>
  <p>Thanks in advance</p>