Discussion Forums  >  Uncategorized

Replies: 1    Views: 188

aBeginner
Lost but trying
Profile
Posts: 16
Reg: Mar 29, 2011
Singapore
460
01/09/12 10:05 PM (14 years ago)

Driving Directions End Point Problem

I have a problem here. I actually have another post, but I realise only recent posts get attention. So I truly apologise for this re-post. 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 =)
 
aBeginner
Lost but trying
Profile
Posts: 16
Reg: Mar 29, 2011
Singapore
460
like
01/14/12 11:24 PM (14 years ago)
Does anyone know how to solve this?
 

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.