问题描述:

A member helped me with a few things about this but I need to change the "Marker" to a small picture I have ..

 String DESTINATION_LOCATION = "My location name";

String latit = "37.925942";

String longit = "23.938683";

Intent intent = new Intent(android.content.Intent.ACTION_VIEW,

Uri.parse("geo:<"+latit+">,<"+longit+">?q=<"+latit+">,<"+longit+">("+DESTINATION_LOCATION+")")); //name the label

startActivity(intent);

How can I do that?


Edited

location.setOnClickListener(new OnClickListener() {

@Override

public void onClick(View arg0) {

userMap.addMarker(new MarkerOptions()

.position(new LatLng(37.925942, 23.938683))

.title("You are Here")

.icon(BitmapDescriptorFactory

.fromResource(R.drawable.lin)));

startActivity(intent);

}

});

相关阅读:
Top