Discussion Forums  >  Uncategorized

Replies: 1    Views: 159

aBeginner
Lost but trying
Profile
Posts: 16
Reg: Mar 29, 2011
Singapore
460
01/15/12 02:43 AM (14 years ago)

Problem with maps directions

I have a problem with the driving directions. Regardless of whether I use the native Maps app or the Internet app, the start and end point of the driving direction is always the current device location. I think I know where the problem is. Sorry, but I am not good with the codes. Here is the section I believe there is a problem. if(tmpLatitude.length() > 3){ try{ //currentDevice.location > Obj_MapLocation.location BT_item tappedLocation = (BT_item) childItems.get(selectedIndex); Uri uri = Uri.parse(http://maps.google.com/maps?saddr= + tmpLatitude + , + tmpLongitude + &daddr= + tmpLatitude + , + tmpLongitude); Intent intent = new Intent(android.content.Intent.ACTION_VIEW, uri); I believe the problem is that tmpLongtitude and tmpLatitude are the values used in &daddr=. I already have a few screens with values of the Latitude and Longtidues of the location. So what are the variables to use in daddr= ? Do I have to declare the values? Please advise. Thank you =)
 
RacinJason
Aspiring developer
Profile
Posts: 73
Reg: Jan 13, 2011
Hanover, PA
730
like
01/17/12 08:56 AM (14 years ago)
I have had this problem as well as others now too. Something is broken with the Maps portion of BT. Could be something changed on the Google Maps side and how it interacts with BT. Unfortunately I don't know how to fix it.
 

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.