Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I have used this python script:</p> <pre><code>import android import time droid = android.Android() for i in range(5): temp = str(i) path = '/sdcard/picscript/' path += time.strftime("%B-%_e-%_I-%M-") path += temp path += '.png' droid.cameraCapturePicture(path, True) </code></pre> <p>in conjunction with <a href="http://code.google.com/p/android-scripting/" rel="nofollow">SL4A</a> To loop taking pictures. As it is now it will take 5 images and save them to a folder on the SDcard named picscript, the filenames will be a timestamp of the time that the photo was taken. Once they are saved you could upload them from there, If you are feeling adventurous you could probably even figure out how to upload them from the python script itself.</p> <p>You could alter the script to make it an infinite(ish) loop and add a time delay inbetween each photo if you wanted. </p> <p>If you are ok with needing sl4a installed on the device you can run it from the python file. If you'd rather not have sl4a installed you can instead wrap it in an android <a href="http://code.google.com/p/android-scripting/downloads/detail?name=Pro_Android_Python_with_SL4A_Ch10_Packaging_and_Distributing.pdf&amp;can=2&amp;q=" rel="nofollow">apk as detailed in this pdf.</a> No matter which route you take you will have to have <a href="http://code.google.com/p/android-scripting/downloads/detail?name=python_for_android_r1.apk&amp;can=2&amp;q=" rel="nofollow">python installed</a> on your device though. </p> <p>Note: I have no idea about battery usage with this script but I suspect it'd be rather draining. In more recent versions of sl4a the APIs have changed a bit and the camera preview is now shown on the screen. I don't think it used to show the preview so if you went back and grabbed an older version you might be able to get better battery performance out of it. <code>droid.cameraTakePicture(path,True)</code> is what the method used to be called in the older versions.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload