当前位置: 首页>>代码示例>>Java>>正文


Java AndroidGraphicFactory.clearResourceMemoryCache方法代码示例

本文整理汇总了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;
}
 
开发者ID:OsmHackTW,项目名称:AndroidMapExample,代码行数:22,代码来源:MainActivityFragment.java

示例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();
}
 
开发者ID:marunjar,项目名称:anewjkuapp,代码行数:10,代码来源:MapFragment.java

示例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();
}
 
开发者ID:emdete,项目名称:Simplicissimus,代码行数:9,代码来源:Map.java

示例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();
}
 
开发者ID:emdete,项目名称:Simplicissimus,代码行数:12,代码来源:Map.java

示例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();
}
 
开发者ID:emdete,项目名称:Simplicissimus,代码行数:9,代码来源:Map.java

示例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();
}
 
开发者ID:emdete,项目名称:Simplicissimus,代码行数:10,代码来源:Map.java

示例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();
}
 
开发者ID:emdete,项目名称:Simplicissimus,代码行数:12,代码来源:ItemDetailFragment.java

示例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();
}
 
开发者ID:emdete,项目名称:Simplicissimus,代码行数:9,代码来源:Sample.java

示例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();
  }
 
开发者ID:osmdroid,项目名称:osmdroid,代码行数:15,代码来源:MapsforgeTileProviderSample.java

示例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();
}
 
开发者ID:mvglasow,项目名称:satstat,代码行数:13,代码来源:MapSectionFragment.java

示例11: onDestroy

import org.mapsforge.map.android.graphics.AndroidGraphicFactory; //导入方法依赖的package包/类
@Override
protected void onDestroy() {
    mapView.destroyAll();
    AndroidGraphicFactory.clearResourceMemoryCache();
    super.onDestroy();
}
 
开发者ID:MaxSmile,项目名称:EasyVPN-Free,代码行数:7,代码来源:HomeActivity.java

示例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();
}
 
开发者ID:emdete,项目名称:tabulae,代码行数:7,代码来源:Tabulae.java

示例13: clearRessources

import org.mapsforge.map.android.graphics.AndroidGraphicFactory; //导入方法依赖的package包/类
public static void clearRessources() {
    AndroidResourceBitmap.clearResourceBitmaps();
    AndroidGraphicFactory.clearResourceMemoryCache();
}
 
开发者ID:openbmap,项目名称:radiocells-scanner-android,代码行数:5,代码来源:MapUtils.java


注:本文中的org.mapsforge.map.android.graphics.AndroidGraphicFactory.clearResourceMemoryCache方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。