Code example for IOException

Methods: toString

0
            mEntry.setFromTemplate(false);
 
            // When the user chooses a new photo mark it as super primary 
            mEntry.put(Photo.IS_SUPER_PRIMARY, 1);
        } catch (IOException e) {
            Log.w(TAG, "Unable to serialize photo: " + e.toString());
        } 
    } 
 
    /** 
     * Set the super primary bit on the photo. 
     */ 
    public void setSuperPrimary(boolean superPrimary) {
        mEntry.put(Photo.IS_SUPER_PRIMARY, superPrimary ? 1 : 0);
    } 
 
    protected void resetDefault() { 
        // Invalid photo, show default "add photo" place-holder 
        setScaleType(ImageView.ScaleType.CENTER);
        if (mReadOnly) {
            setImageResource(R.drawable.ic_contact_picture);