Code example for BackupDataInputStream

Methods: getKey, size

0
    /** 
     * Restores one entity from the restore data stream to its proper shared 
     * preferences file store. 
     */ 
    public void restoreEntity(BackupDataInputStream data) {
        String key = data.getKey();
        Log.i(TAG, "-------------------------------------------------");
        Log.i(TAG, "--- restore Entity '" + key + "' size=" + data.size());
        super.restoreEntity(data);
        Log.i(TAG, "----- restoreEntity End");
        Log.i(TAG, "-------------------------------------------------");
    } 
 
}