Exemplo n.º 1
0
 private void openBook(Book book) {
   startActivity(
       new Intent(getApplicationContext(), FBReader.class)
           .setAction(Intent.ACTION_VIEW)
           .putExtra(FBReader.BOOK_PATH_KEY, book.File.getPath())
           .addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP));
 }
Exemplo n.º 2
0
 protected void showBookInfo(Book book) {
   startActivityForResult(
       new Intent(getApplicationContext(), BookInfoActivity.class)
           .putExtra(BookInfoActivity.CURRENT_BOOK_PATH_KEY, book.File.getPath()),
       BOOK_INFO_REQUEST);
 }