-1

i am working on an application which has more then 10000 markers on google map , i am using google map v2 ,and as library android-maps-extensions https://code.google.com/p/android-maps-extensions/. but when i load markers on map it make application slower and 10\5 times force close beacause of java.lang.OutOfMemoryError Exception.
all the markers have its own images , images loads form url, condition in which image is not loading , defult image will be displat

is there any way to handle this kind of condition..?

4

2 に答える 2

0

Android の仮想マシンからより多くのメモリを要求するために使用できますandroid:largeHeap="true"AndroidManifest.xml

于 2013-09-23T07:47:11.443 に答える
-1

画像の読み込みには以下のコードを使用してください。

ここから jar をダウンロードします: http://code.google.com/p/android-query/

   private AQuery androidAQuery;
        androidAQuery=new AQuery(this);

    androidAQuery.id(YOUR IMAGEVIEW).image(YOUR IMAGE URL, true, true,default icon(optional));
于 2013-09-23T07:12:34.690 に答える