android - App crashes on galaxy s3 with outofmemory error -
my app works fine on 480*800 phones. crashes on 720p phones . tested on galaxy s3 , xperia sl. here logcat error
and code causing error according judgment this
mapview = new mapview(this) { @override public boolean ontouchevent(motionevent event) { if (gesturedetector.ontouchevent(event)) { return true; } return super.ontouchevent(event); } }; mapview.setclickable(true); mapview.setcenter(new geopoint(33.698351,73.063889)); mapview.zoom((byte) 12, 5); mapview.setbuiltinzoomcontrols(true); mapview.setmapfile(new file(environment.getexternalstoragedirectory()+"/pakistan.map"));
Comments
Post a Comment