geometer / FBReaderJ

Official FBReaderJ project repository
http://www.fbreader.org/FBReaderJ/
1.83k stars 802 forks source link

Add Bookmark failed. #459

Closed damengzai closed 6 years ago

damengzai commented 6 years ago

I open a book like this: FBReader.openBookActivity(getActivity(),fbBook,null); But when I long press and press add bookmark,it failed with no error,and the text did not highlight and no bookmark added. Did I used the wrong method to open the book or something else Book fbBook = new Book(id,localpath,bookName,null,null); Intent intent = new Intent(getActivity().getApplicationContext(), BookInfoActivity.class); FBReaderIntents.putBookExtra(intent, fbBook); OrientationUtil.startActivity(getActivity(), intent);. This method has tried,the same result.

damengzai commented 6 years ago

Intent i = new Intent(getActivity(),FBReader.class); i.setAction(Intent.ACTION_VIEW); i.setData(Uri.parse(localpath)); startActivity(i);

Open a book like this is works.