We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
private static Application getApplication() { Application application = null; Method method; try { method = Class.forName("android.app.AppGlobals").getDeclaredMethod("getInitialApplication"); method.setAccessible(true); application = (Application) method.invoke(null); } catch (Exception e) { try { method = Class.forName("android.app.ActivityThread").getDeclaredMethod("currentApplication"); method.setAccessible(true); application = (Application) method.invoke(null); } catch (Exception ex) { ex.printStackTrace(); } } return application; }
这段代码在android Q P上存在适配问题
The text was updated successfully, but these errors were encountered:
@pinguo-sunjianfei OK~
Sorry, something went wrong.
No branches or pull requests
这段代码在android Q P上存在适配问题
The text was updated successfully, but these errors were encountered: