Code example for SynchronousQueue

Methods: put

0
                mFilePickerResult.put("");
                return; 
            } 
 
            File file = new File(Environment.getExternalStorageDirectory(), sImageName);
            sImageName = "";
            mFilePickerResult.put(file.getAbsolutePath());
        } catch (InterruptedException e) {
            Log.i(LOGTAG, "error returning file picker result", e);
        } 
    } 
 
    // this code is really hacky and doesn't belong anywhere so I'm putting it here for now 
    // until I can come up with a better solution. 
 
    private static String sImageName = "";
 
    static String generateImageName() {
        Time now = new Time();
        now.setToNow();
        sImageName = now.format("%Y-%m-%d %H.%M.%S") + ".jpg";