MCPcopy Create free account
hub / github.com/buggins/coolreader / sendBookFragment

Method sendBookFragment

android/src/org/coolreader/CoolReader.java:2065–2071  ·  view source on GitHub ↗
(BookInfo bookInfo, String text)

Source from the content-addressed store, hash-verified

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);

Callers 2

onContextItemSelectedMethod · 0.80
sendQuotationInEmailMethod · 0.80

Calls 4

getFileInfoMethod · 0.80
setTypeMethod · 0.45
getAuthorsMethod · 0.45
getTitleMethod · 0.45

Tested by

no test coverage detected