Drawing large image on canvas while preserving quality for zooming
<p>I´m woriking on an android project and want to create an interactive worldmap.<br>
<strong>Desired result</strong>: Beeing able to zoom in and out on a map and the ability to "swipe to move". The map will be just one image, posibly set as a background, or drawn first on a canvas. On the map peoples locations will be drawn (The app will keep track of people in games, movies, books), so the peoples locations will often change and the picture redrawn. The result will then be displayed.<br>
My first problem is when I try to load my image and draw it on my canvas. My image is about 5000x5000 pixels, and i get</p>

<pre><code>06-25 10:40:28.053: E/AndroidRuntime(1217): java.lang.OutOfMemoryError: bitmap size exceeds VM budget
</code></pre>

<p>I have read <a href="http://stackoverflow.com/questions/10651881/decode-a-part-of-bitmap-from-file-in-android">Decode a part of Bitmap from file in Android</a> hoping that something like that would be a solution, but when reading the responses it didn´t seem to work...<br>
Q1: Is there any way to load a big image, draw on it, and then display the result in android?<br>
Q2: If so, how?<br>
Q3: If this doesn´t work, or is just to hard, can you recomend an alternative?<br>
Thanks in advance for any help!</p>
