Example usage for java.io InvalidClassException printStackTrace

List of usage examples for java.io InvalidClassException printStackTrace

Introduction

In this page you can find the example usage for java.io InvalidClassException printStackTrace.

Prototype

public void printStackTrace() 

Source Link

Document

Prints this throwable and its backtrace to the standard error stream.

Usage

From source file:com.kaichaohulian.baocms.ecdemo.ui.chatting.ChattingFragment.java

/**
 * ?????????//  w  w  w.  jav a2 s. c  o  m
 */
private void setChattingContactId(String contactid) {
    try {
        ECPreferences.savePreference(ECPreferenceSettings.SETTING_CHATTING_CONTACTID, contactid, true);
    } catch (InvalidClassException e) {
        e.printStackTrace();
    }
}

From source file:com.kaichaohulian.baocms.ecdemo.ui.chatting.ChattingFragment.java

/**
 * ???//from   www  .  j a v  a2  s .  c  o m
 */
private void checkPreviewImage() {
    if (TextUtils.isEmpty(mFilePath)) {
        return;
    }
    boolean previewImage = ECPreferences.getSharedPreferences().getBoolean(
            ECPreferenceSettings.SETTINGS_PREVIEW_SELECTED.getId(),
            (Boolean) ECPreferenceSettings.SETTINGS_PREVIEW_SELECTED.getDefaultValue());
    if (previewImage) {
        try {
            ECPreferences.savePreference(ECPreferenceSettings.SETTINGS_PREVIEW_SELECTED, Boolean.FALSE, true);
            new ChattingAsyncTask(getChattingActivity()).execute(mFilePath);
            mFilePath = null;
        } catch (InvalidClassException e) {
            e.printStackTrace();
        }
    }
}