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

Method openURL

android/src/org/coolreader/CoolReader.java:2054–2063  ·  view source on GitHub ↗
(String url)

Source from the content-addressed store, hash-verified

2052 }
2053
2054 public void openURL(String url) {
2055 try {
2056 Intent i = new Intent(Intent.ACTION_VIEW);
2057 i.setData(Uri.parse(url));
2058 startActivity(i);
2059 } catch (Exception e) {
2060 log.e("Exception " + e + " while trying to open URL " + url);
2061 showToast("Cannot open URL " + url);
2062 }
2063 }
2064
2065 public void sendBookFragment(BookInfo bookInfo, String text) {
2066 final Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND);

Callers 1

doneMethod · 0.80

Calls 4

showToastMethod · 0.95
eMethod · 0.65
setDataMethod · 0.45
parseMethod · 0.45

Tested by

no test coverage detected