<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hey Emux,<br>
<br>
yes graph and locationIndex don't get null but they are
lightweight and no longer usable. But I'll check if proper
exceptions are thrown if they are still used. Maybe a better
solution for Android can be:<br>
<br>
onDestroy(...) { // as you suggested<br>
hopper.close()<br>
// include the following, so that a new instance has to be
created for a new onCreate call:<br>
hopper=null<br>
System.gc()<br>
}<br>
<br>
Regards,<br>
Peter.<br>
<br>
</div>
<blockquote cite="mid:535BFFD6.7070207@gmail.com" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
Peter is there a way to check if GH has a graph loaded?<br>
<br>
I see methods like getGraphHopperLocation, getGraph,
getLocationIndex<br>
but I think that their values do not get null with GH.close().<br>
e.g. the 'fullyLoaded' variable is hidden<br>
<br>
<div class="moz-signature">-- <br>
<font color="#000000">Emux</font><br>
<a moz-do-not-send="true"
href="http://wiki.openstreetmap.org/wiki/Cruiser">Cruiser</a>
- <a moz-do-not-send="true"
href="http://wiki.openstreetmap.org/wiki/Atlas_%28navigation_application%29">Atlas</a></div>
<br>
</blockquote>
<br>
</body>
</html>