(BookInfo bookInfo, String text)
| 2063 | } |
| 2064 | |
| 2065 | public void sendBookFragment(BookInfo bookInfo, String text) { |
| 2066 | final Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND); |
| 2067 | emailIntent.setType("text/plain"); |
| 2068 | emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, bookInfo.getFileInfo().getAuthors() + " " + bookInfo.getFileInfo().getTitle()); |
| 2069 | emailIntent.putExtra(android.content.Intent.EXTRA_TEXT, text); |
| 2070 | startActivity(Intent.createChooser(emailIntent, null)); |
| 2071 | } |
| 2072 | |
| 2073 | public void askConfirmation(int questionResourceId, final Runnable action) { |
| 2074 | AlertDialog.Builder dlg = new AlertDialog.Builder(this); |
no test coverage detected