I'm developing a app, which works pretty well on the Android Studio Emulator, but when I built a APK and installed on my phone, it closes and crashes. So I decided to run it on my phone, debugging with ADB.
Looks like the problem is in line 67 of that Java code (https://pastebin.com/y8c5yMYj)
for (int i = 0; i < itemlist.size();i++){
Points item = itemlist.get(i);
googleMap.addMarker(new MarkerOptions()
.position(new LatLng(Double.valueOf(item.getPosx()), Double.valueOf(item.getPosy())))
.snippet(item.getDescription())
.icon(BitmapDescriptorFactory.fromResource(MarkerChange(item.getType())))
.title(item.getName()));
}
.. But I wasn't able to fix that, someone can give me some help with this issue?
Thanks... and sorry for any posting mistake: I am a newbie here in StackOverflow and English isn't my native language.