@@ -60,11 +60,15 @@ public static void installApp(@NonNull final Context context, final String packa
60
60
61
61
/**
62
62
* Open the url with the system default browser. If no browser is set as default, falls back to
63
- * {@link #openAppChooser(Context, Intent, boolean)}. This function selects the package to open
64
- * based on which apps respond to the {@code http://} schema alone, which should exclude special
65
- * non-browser apps that are can handle the url (e.g. the official YouTube app). Therefore
66
- * please <b>prefer {@link #openUrlInApp(Context, String)}</b>, that handles package resolution
67
- * in a standard way, unless this is the action of an explicit "Open in browser" button.
63
+ * {@link #openAppChooser(Context, Intent, boolean)}.
64
+ * <p>
65
+ * This function selects the package to open based on which apps respond to the {@code http://}
66
+ * schema alone, which should exclude special non-browser apps that are can handle the url (e.g.
67
+ * the official YouTube app).
68
+ * <p>
69
+ * Therefore <b>please prefer {@link #openUrlInApp(Context, String)}</b>, that handles package
70
+ * resolution in a standard way, unless this is the action of an explicit "Open in browser"
71
+ * button.
68
72
*
69
73
* @param context the context to use
70
74
* @param url the url to browse
@@ -120,8 +124,9 @@ public static void openUrlInApp(@NonNull final Context context, final String url
120
124
}
121
125
122
126
/**
123
- * Open an intent with the system default app. Use {@link #openIntentInApp(Context, Intent)} to
124
- * show a toast in case of failure.
127
+ * Open an intent with the system default app.
128
+ * <p>
129
+ * Use {@link #openIntentInApp(Context, Intent)} to show a toast in case of failure.
125
130
*
126
131
* @param context the context to use
127
132
* @param intent the intent to open
@@ -138,8 +143,9 @@ public static boolean tryOpenIntentInApp(@NonNull final Context context,
138
143
}
139
144
140
145
/**
141
- * Open an intent with the system default app, showing a toast in case of failure. Use {@link
142
- * #tryOpenIntentInApp(Context, Intent)} if you don't want the toast. Use {@link
146
+ * Open an intent with the system default app, showing a toast in case of failure.
147
+ * <p>
148
+ * Use {@link #tryOpenIntentInApp(Context, Intent)} if you don't want the toast. Use {@link
143
149
* #openUrlInApp(Context, String)} as a shorthand for {@link Intent#ACTION_VIEW} with urls.
144
150
*
145
151
* @param context the context to use
0 commit comments