WorldMap is a simple Android app that displays a map of the world taken from Wikimedia (http://upload.wikimedia.org/wikipedia/commons/3/33/Physical_Political_World_Map.jpg), and allows the user to scroll around on it.
The map itself is quite large (6480,3888), so it's way too big to fit in memory all at once (6480 x 3888 x 32 / 8) = 100,776,960 -- over 96 megs. The VM heap size Android supports is eith 16 or 24 megs, so we can't fit the whole thing in memory at once.
So WorldMap uses the BitmapRegionDecoder API (available as of API 10) to decode just what it needs to display.
WorldMap is open source, and the source code is here:https://github.com/johnnylambada/WorldMap세계지도는 위키 미디어 (http://upload.wikimedia.org/wikipedia/commons/3/33/Physical_Political_World_Map.jpg)에서가져온 세계의지도를 표시하는 간단한 안드로이드 응용 프로그램입니다, 사용자가 그것을 주위에 스크롤 할 수 있습니다.
맵 자체가 (6480,3888) 매우 큰이므로 전체 (6480 X 3888 X 8분의 32) = 100,776,960 번에 메모리에 맞게 너무 큰 방법 - 96 이상 메가. VM 힙 사이즈 안드로이드 지원은 eith 16 또는 24 메가, 그래서 우리는 한 번에 메모리에 전체를 맞지 않을 수 있습니다.
그래서 세계지도는 표시해야 그냥 뭐 디코딩 BitmapRegionDecoder API를 (API 10로 제공)를 사용합니다.
세계지도는 오픈 소스이며, 소스 코드는 여기에 있습니다 :https://github.com/johnnylambada/WorldMap