lihuazhang / android-scripting

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

Taken photo hasn't been saved. #710

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What device(s) are you experiencing the problem on?
Sony Ericsson Arc S

What firmware version are you running on the device?
Android 4.4.4

What steps will reproduce the problem?
My code:
# -*- coding: utf-8 -*-
import android

droid = android.Android()
droid.cameraInteractiveCapturePicture('/storage/sdcard0/Download/foo.jpg')
exit()

What is the expected output? What do you see instead?
Expected:
User take a photo and after click the tick, the photo is saved and can be seen 
at the specified path(/storage/sdcard0/Download/) with the specified 
name(foo.jpg)

Instead of it:
After put the tick, the camera quit and the script is running, doesn't reach 
exit()

What version of the product are you using? On what operating system?
The newest one: r6x03
OS: Windows 8.1 Enterprise

Please provide any additional information below.
I tried with other pathes(windows Download folder and android sl4's script 
folder) and emulator(Android virtual device).

Original issue reported on code.google.com by roland.n...@gmail.com on 3 Nov 2014 at 11:02

Attachments:

GoogleCodeExporter commented 9 years ago
I solved the problem. I connect my phone in MTP mode and then some files are 
not visible for the computer. If I choose UMS I can acces the files but i 
needed a kitkat widget: running a system wide media scan. Normal apps can't do 
this anymore as of KitKat so you need root unfortunately. I used this app:

https://play.google.com/store/apps/details?id=com.logika.rescan&hl=en 

Original comment by roland.n...@gmail.com on 5 Nov 2014 at 11:40