Code example for Time

Methods: format2445, setToNow

0
            if (! textStorageDir.mkdirs()){
                return null; 
            } 
        } 
        // Creating file 
        Time today = new Time(Time.getCurrentTimezone());
        today.setToNow();
        String dateTime = today.format2445();
        File mediaFile = new File(mediaStorageDir.getPath() + File.separator +
                "asciirific_"+ dateTime + ".jpg");
         
        textfile = new File(textStorageDir.getPath() + File.separator +
                "asciirific_"+ dateTime + ".txt");
        
        return mediaFile;
    } 
    /** 
     * saves the image on canvas as a jpeg and text vile 
     */ 
    public void savePicture() { 
        setDrawingCacheEnabled(true);