本文整理汇总了Java中org.mapsforge.map.android.graphics.AndroidGraphicFactory.clearResourceMemoryCache方法的典型用法代码示例。如果您正苦于以下问题:Java AndroidGraphicFactory.clearResourceMemoryCache方法的具体用法?Java AndroidGraphicFactory.clearResourceMemoryCache怎么用?Java AndroidGraphicFactory.clearResourceMemoryCache使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.mapsforge.map.android.graphics.AndroidGraphicFactory
的用法示例。
在下文中一共展示了AndroidGraphicFactory.clearResourceMemoryCache方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onCreateView
import org.mapsforge.map.android.graphics.AndroidGraphicFactory; //导入方法依赖的package包/类
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.fragment_map, container, false);
// 配置 mapView
mMapView = (MapView)view.findViewById(R.id.mapView);
initMapView(mMapView, getActivity());
AndroidGraphicFactory.clearResourceMemoryCache();
AndroidGraphicFactory.clearResourceFileCache();
// 接收方位感應器和 GPS 訊號
mSensorMgr = (SensorManager)getActivity().getSystemService(Context.SENSOR_SERVICE);
mSensorMgr.registerListener(mAzimuthListener, mSensorMgr.getDefaultSensor(Sensor.TYPE_ROTATION_VECTOR), SensorManager.SENSOR_DELAY_UI);
mLocMgr = (LocationManager)getActivity().getSystemService(Context.LOCATION_SERVICE);
mLocMgr.requestLocationUpdates(LocationManager.GPS_PROVIDER, 1000, 10.0f, mLocListener);
// 配置訊號消化工具
mHandler = new Handler();
return view;
}
示例2: removeLayers
import org.mapsforge.map.android.graphics.AndroidGraphicFactory; //导入方法依赖的package包/类
private void removeLayers() {
this.mMyLocationOverlay = null;
this.goalLocationOverlay = null;
this.mapView.destroyAll();
this.mapView = null;
AndroidGraphicFactory.clearResourceMemoryCache();
}
示例3: onDestroy
import org.mapsforge.map.android.graphics.AndroidGraphicFactory; //导入方法依赖的package包/类
@Override public void onDestroy() {
super.onDestroy();
if (DEBUG) { Log.d(TAG, "Map.onDestroy"); }
tileCache.destroy();
mapView.getModel().mapViewPosition.destroy();
mapView.destroy();
AndroidGraphicFactory.clearResourceMemoryCache();
}
示例4: onDestroy
import org.mapsforge.map.android.graphics.AndroidGraphicFactory; //导入方法依赖的package包/类
@Override public void onDestroy() {
super.onDestroy();
if (DEBUG) { Log.d(TAG, "Map.onDestroy"); }
for (TileLayer tileLayer: tileLayers)
tileLayer.onDestroy();
for (TileCache tileCache: tileCaches)
tileCache.destroy();
mapView.getModel().mapViewPosition.destroy();
mapView.destroy();
AndroidGraphicFactory.clearResourceMemoryCache();
}
示例5: onDestroy
import org.mapsforge.map.android.graphics.AndroidGraphicFactory; //导入方法依赖的package包/类
@Override public void onDestroy() {
super.onDestroy();
if (DEBUG) Log.d(TAG, "Map.onDestroy");
tileCache.destroy();
mapView.getModel().mapViewPosition.destroy();
mapView.destroy();
AndroidGraphicFactory.clearResourceMemoryCache();
}
示例6: onDestroy
import org.mapsforge.map.android.graphics.AndroidGraphicFactory; //导入方法依赖的package包/类
@Override public void onDestroy() {
super.onDestroy();
if (DEBUG) { Log.d(TAG, "Map.onDestroy"); }
tileLayer.onDestroy();
tileCache.destroy();
mapView.getModel().mapViewPosition.destroy();
mapView.destroy();
AndroidGraphicFactory.clearResourceMemoryCache();
}
示例7: onDestroy
import org.mapsforge.map.android.graphics.AndroidGraphicFactory; //导入方法依赖的package包/类
@Override
public void onDestroy() {
super.onDestroy();
if (this.mapView != null) {
this.mapView.destroy();
}
if (this.tileCache != null) {
this.tileCache.destroy();
}
AndroidGraphicFactory.clearResourceMemoryCache();
}
示例8: onDestroy
import org.mapsforge.map.android.graphics.AndroidGraphicFactory; //导入方法依赖的package包/类
@Override protected void onDestroy() {
super.onDestroy();
if (DEBUG) Log.d(TAG, "onDestroy");
tileCache.destroy();
mapView.getModel().mapViewPosition.destroy();
mapView.destroy();
AndroidGraphicFactory.clearResourceMemoryCache();
}
示例9: onDestroy
import org.mapsforge.map.android.graphics.AndroidGraphicFactory; //导入方法依赖的package包/类
@Override
public void onDestroy() {
super.onDestroy();
if (alertDialog != null) {
alertDialog.hide();
alertDialog.dismiss();
alertDialog = null;
}
if (fromFiles != null)
fromFiles.dispose();
if (forge != null)
forge.detach();
AndroidGraphicFactory.clearResourceMemoryCache();
}
示例10: onDestroyView
import org.mapsforge.map.android.graphics.AndroidGraphicFactory; //导入方法依赖的package包/类
@Override
public void onDestroyView() {
destroyLayers(true);
if (mainActivity.mapSectionFragment == this)
mainActivity.mapSectionFragment = null;
if (mapMap != null)
mapMap.destroyAll();
AndroidGraphicFactory.clearResourceMemoryCache();
super.onDestroyView();
}
示例11: onDestroy
import org.mapsforge.map.android.graphics.AndroidGraphicFactory; //导入方法依赖的package包/类
@Override
protected void onDestroy() {
mapView.destroyAll();
AndroidGraphicFactory.clearResourceMemoryCache();
super.onDestroy();
}
示例12: onDestroy
import org.mapsforge.map.android.graphics.AndroidGraphicFactory; //导入方法依赖的package包/类
@Override
protected void onDestroy() {
super.onDestroy();
if (DEBUG) Log.d(TAG, "Tabulae.onDestroy");
AndroidGraphicFactory.clearResourceMemoryCache();
}
示例13: clearRessources
import org.mapsforge.map.android.graphics.AndroidGraphicFactory; //导入方法依赖的package包/类
public static void clearRessources() {
AndroidResourceBitmap.clearResourceBitmaps();
AndroidGraphicFactory.clearResourceMemoryCache();
}