MCPcopy Create free account
hub / github.com/afkT/DevUtils / getApplicationExtended

Method getApplicationExtended

lib/DevApp/src/main/java/dev/DevUtils.java:212–216  ·  view source on GitHub ↗

获取全局 Application;若尚未持有则尝试反射获取并初始化 必要时通过反射获取并调用 #init(Context)。 @return Application

()

Source from the content-addressed store, hash-verified

210 * @return {@link Application}
211 */
212 public static Application getApplicationExtended() {
213 Application application = getApplication();
214 if (application != null) return application;
215 return getApplicationByReflectAndInit();
216 }
217
218 // =
219

Callers

nothing calls this directly

Calls 2

getApplicationMethod · 0.95

Tested by

no test coverage detected