waleedAhmad1 / google-glass-api

Automatically exported from code.google.com/p/google-glass-api
0 stars 0 forks source link

Camera Intent picture file not observable first try #617

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
steps to reproduce the problem:
1. Use the Camera Intent to capture a picture
2. Setup a FileObserver to observe the successful writing of the final picture 
file
3. Witness the FileObserver wait ad infinitum the first try
4. Try again, it works

What I see:
FileObserver will never observe the written final picture file on the first 
try. User must try again, will work for all subsequent attempts.

What I expect:
Expect it to work every time.

Glass OS version:
XE21.3

Original issue reported on code.google.com by coreform on 14 Oct 2014 at 10:25

GoogleCodeExporter commented 9 years ago
Hello,

Thanks for the report! Could you share the snippet of code that does the 
observing so we can try to reproduce?

Best,
Alain

Original comment by ala...@google.com on 14 Oct 2014 at 3:28

GoogleCodeExporter commented 9 years ago
I am using code extremely similar to that which you posted as a solution on 
StackOverflow on May 19th 2014.

I am, however, setting up the FileObserver in a Service and using Otto to issue 
an event when ready to process. Works the second time onwards per session of 
app, never the first time.

code snippet attached.

Original comment by coreform on 14 Oct 2014 at 4:41

Attachments:

GoogleCodeExporter commented 9 years ago
This may be related to 
https://code.google.com/p/google-glass-api/issues/detail?id=308

Original comment by coreform on 18 Oct 2014 at 11:52