本文整理了Java中android.app.Activity.onLowMemory()
方法的一些代码示例,展示了Activity.onLowMemory()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Activity.onLowMemory()
方法的具体详情如下:
包路径:android.app.Activity
类名称:Activity
方法名:onLowMemory
暂无
代码示例来源:origin: jiangqqlmj/FastDev4Android
@Override
public void onLowMemory() {
super.onLowMemory();
Log.d(TAG, "BaseActivity onLowMemory Invoke...");
}
代码示例来源:origin: com.uphyca/android-junit4-robolectric
/**
*
* @see android.app.Activity#onLowMemory()
*/
public void onLowMemory() {
mActivity.onLowMemory();
}
代码示例来源:origin: iqiyi/Neptune
@Override
public void onLowMemory() {
mOriginActivity.onLowMemory();
}
代码示例来源:origin: VideoExpertsGroup/VXG.Media.SDK.Android
public void onLowMemory()
{
Log.e(TAG, "onLowMemory()");
super.onLowMemory();
//if (capturer != null)
// capturer.onLowMemory();
}
@Override
代码示例来源:origin: chengzichen/KrGallery
@Override
public void onLowMemory() {
super.onLowMemory();
actionBarLayout.onLowMemory();
}
代码示例来源:origin: com.google.android/support-v4
/**
* Dispatch onLowMemory() to all fragments.
*/
@Override
public void onLowMemory() {
super.onLowMemory();
mFragments.dispatchLowMemory();
}
代码示例来源:origin: kingargyle/adt-leanback-support
/**
* Dispatch onLowMemory() to all fragments.
*/
@Override
public void onLowMemory() {
super.onLowMemory();
mFragments.dispatchLowMemory();
}
代码示例来源:origin: DaylightingSociety/WhereAreTheEyes
@Override
public void onLowMemory() {
super.onLowMemory();
mapView.onLowMemory();
}
代码示例来源:origin: limboemu/limbo
@Override
public void onLowMemory() {
Log.v(TAG, "onLowMemory()");
super.onLowMemory();
if (SDLActivity.mBrokenLibraries) {
return;
}
SDLActivity.nativeLowMemory();
}
代码示例来源:origin: shazam/android-aspects
@Override
public void onLowMemory() {
super.onLowMemory();
dispatcher.dispatchOnLowMemory(this);
}
代码示例来源:origin: ELynx/pokemon-go-xposed-mitm
public void onLowMemory() {
if (ScriptLoader.isCalledFromJRuby()) {super.onLowMemory(); return;}
if (!JRubyAdapter.isInitialized()) {
Log.i("Method called before JRuby runtime was initialized: RubotoActivity#onLowMemory");
{super.onLowMemory(); return;}
}
String rubyClassName = scriptInfo.getRubyClassName();
if (rubyClassName == null) {super.onLowMemory(); return;}
if ((Boolean)JRubyAdapter.runScriptlet(rubyClassName + ".instance_methods(false).any?{|m| m.to_sym == :onLowMemory}")) {
JRubyAdapter.runRubyMethod(scriptInfo.getRubyInstance(), "onLowMemory");
} else {
if ((Boolean)JRubyAdapter.runScriptlet(rubyClassName + ".instance_methods(false).any?{|m| m.to_sym == :on_low_memory}")) {
JRubyAdapter.runRubyMethod(scriptInfo.getRubyInstance(), "on_low_memory");
} else {
if ((Boolean)JRubyAdapter.runScriptlet(rubyClassName + ".instance_methods(true).any?{|m| m.to_sym == :on_low_memory}")) {
JRubyAdapter.runRubyMethod(scriptInfo.getRubyInstance(), "on_low_memory");
} else {
JRubyAdapter.runRubyMethod(scriptInfo.getRubyInstance(), "onLowMemory");
}
}
}
}
内容来源于网络,如有侵权,请联系作者删除!