Closed GzxdH closed 3 years ago
What should I do to save the page position?
+1
I am also facing the same issue. Please help here. The same method is working in Android 9 but not in Android 5.1.1
03-16 10:57:40.016 16497-16497/com.folioreader.android.sample E/WebViewConsole: Uncaught ReferenceError: DOMRect is not defined [file:///android_asset/js/Bridge.js:858]
Above error is coming, due to which it is unable to calculate CFI
ReadLocatorListener worked for me. I am receiving the ReadLocator object which needs to locate the last reading position.
i am facing same issue . can anybody have any solution ?
same problem too :(
Issue / Feature - The ReadLocatorListener is not working - Can not save last read position FolioReader version - 0.5.4 FolioReader Stock / Modified - Modified Android SDK - Android SDK API 21-28 Mobile / Tablet / Emulator Info - Genymotion Custom Phone 5.0 Crash / Error - it look like no work.
Steps to reproduce / Describe in detail -
package com.example.administrator.nreader;
import androidx.appcompat.app.AppCompatActivity; import androidx.core.app.ActivityCompat; import androidx.core.content.ContextCompat; import cn.finalteam.filedownloaderfinal.DownloaderManager; import cn.finalteam.filedownloaderfinal.DownloaderManagerConfiguration; import cn.finalteam.filedownloaderfinal.FileDownloaderCallback; import cn.finalteam.filedownloaderfinal.SimpleFileDownloader; import cn.finalteam.toolsfinal.StorageUtils;
import android.Manifest; import android.content.Context; import android.content.pm.PackageManager; import android.os.Build; import android.os.Bundle; import android.os.Environment; import android.util.Log; import android.view.View; import android.widget.Button; import android.widget.ProgressBar; import android.widget.TextView; import android.widget.Toast;
import com.folioreader.Config; import com.folioreader.Constants; import com.folioreader.FolioReader; import com.folioreader.model.locators.ReadLocator; import com.folioreader.util.ReadLocatorListener; import com.liulishuo.filedownloader.BaseDownloadTask; import com.liulishuo.filedownloader.FileDownloadConnectListener; import com.liulishuo.filedownloader.FileDownloadListener; import com.liulishuo.filedownloader.FileDownloadSampleListener; import com.liulishuo.filedownloader.FileDownloader;
import java.io.BufferedReader; import java.io.File; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.OutputStream; import java.lang.ref.WeakReference; import java.net.MalformedURLException; import java.net.URL; import java.net.URLConnection; import java.util.regex.Matcher; import java.util.regex.Pattern;
public class MainActivity extends AppCompatActivity implements ReadLocatorListener {
// Environment.getExternalStorageDirectory().getPath() save_path = "/mnt/sdcard/Signature/";
}
this funcation is not working,because the logs are not printed @Override public void saveReadLocator(ReadLocator readLocator) { Log.i("info:::","---here---"); }
plz,help~~