Discussion Forums  >  Maps, Device Location, Tracking

Replies: 3    Views: 114

Lars1
I hate code!
Profile
Posts: 44
Reg: Dec 26, 2011
Stenungsund
440
04/05/12 01:14 PM (13 years ago)

BT! Isn't there a solution to device not showing its location

BT 1,5 Android Can´t get map to show icon for the device location. Sure this must be possible? Earlier described in http://www.buzztouch.com/forum/thread.php?tid=6B8343FDA412170AD9481F3&sortColumn=FT.id&sortUpDown=DESC&currentPage=1
 
Warren Evans
Apple Fan
Profile
Posts: 277
Reg: Jan 28, 2012
Effingham IL
17,400
like
04/05/12 07:01 PM (13 years ago)
I got this from Fred's blog, and it cured what I think is the same problem you are describing. Enable “Get Driving Directions”: Modify one line (#593) in the BT_screen_map.java file. App’s Source Code > src > com.yourappsname > BT_screen_map.java Line 593 prior to modificaton: Uri uri = Uri.parse(“http://maps.google.com/maps?saddr=”; + tmpLatitude + “,” + tmpLongitude + “&daddr=”+ tmpLatitude + “,” + tmpLongitude +); Line 593 after Modification: Uri uri = Uri.parse(“http://maps.google.com/maps?saddr=”; + tmpLatitude + “,” + tmpLongitude + “&daddr=”+ tappedLocation.getLatitude() + “,” + tappedLocation.getLongitude()); I was getting very erratic behavior (blank maps, no current location, etc); now they work fine. Hope it helps - Warren
 
Lars1
I hate code!
Profile
Posts: 44
Reg: Dec 26, 2011
Stenungsund
440
like
04/06/12 02:56 AM (13 years ago)
Thanks Warren. But I got new errors in Eclipse; Syntax error, insert ";" to complete LocalVariableDeclarationStatement Syntax error, insert ")" to complete MethodInvocation The method parse(String) in the type Uri is not applicable for the arguments () And as before; MyLocationOverlay cannot be resolved to a type Line 593 now is; Uri uri = Uri.parse(“http://maps.google.com/maps?saddr=”; + tmpLatitude + “,” + tmpLongitude + “&daddr=”+ tappedLocation.getLatitude() + “,” + tappedLocation.getLongitude());
 
Lars1
I hate code!
Profile
Posts: 44
Reg: Dec 26, 2011
Stenungsund
440
like
04/08/12 03:32 AM (13 years ago)
I understand that this can be a problem with Buzztouch now and then, for some but not for others. Whould it be better to move to BT 1,4 or 2.0? Will one of these versions handle device locations better?
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.