Code example for PolylineOptions

Methods: color

0
    /** GoogleMap polyline stuff */ 
    private final PolylineOptions polylineOptions = new PolylineOptions();
    private Polyline polyline;
 
    /** Previously known user positions. */ 
    private final List<Coordinate> positions = new ArrayList<Coordinate>();
 
 
    public User(String macAddr, String screenName, int icon){
        this.macAddr = macAddr;
        this.screenName = screenName;
        this.icon = icon;
        //TODO: Make unique colors for every user. 
        polylineOptions.color(Color.GREEN);
    } 
 
    public User(JSONObject json) throws JSONException {
        macAddr = json.getString("macAddr");
        screenName = json.getString("screenName");
        icon = json.getInt("icon");
    } 
 
    public String getMacAddr(){