• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps 3 locations shows 1

SamoZain

Newbie
I'm trying to make a 3 locations markers on the google map (maybe more) but the problem is it shows only the first thing that I put (Place 1) .. how can I make the button shows me the 3 markers?

Code:
zero.setOnClickListener(new OnClickListener() {
 @Override
 public void onClick(View arg0) {
                String DESTINATION_LOCATION1 = "Place 1"; 
                String latit1 = "40.054958"; 
                String longit1 = "18.420317"; 
                String DESTINATION_LOCATION2 = "Place 2"; 
                String latit2 = "39.735692"; 
                String longit2 = "19.689583"; 
                String DESTINATION_LOCATION3 = "Place 3"; 
                String latit3 = "39.567350"; 
                String longit3 = "19.854964"; 

                Intent intent1 = new Intent(android.content.Intent.ACTION_VIEW, 
                        Uri.parse("geo:<" + latit1 + ">,<" + longit1 + ">?q=<" 
                                + latit1 + ">,<" + longit1 + ">(" 
                                + DESTINATION_LOCATION1 + ")")); 
                startActivity(intent1); 
            }        
        });
It gives a warning under DESTINATION_LOCATION2, latit2, longit2, DESTINATION_LOCATION3, latit3 and longit3 p.s. no GPS
 
Back
Top Bottom