Witam, mam problem z przypisanie szerokości i długości geograficznej do zmiennej typu Location, proszę o pomoc.
Błąd wyrzuca w pierwszej linijce z przypisaniem.
Fragment kodu z przypisaniem:
private Location Aleja_1 ;
private Location Aleja_2 ;
TextView t;
Vibrator wibrator;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_najblizszy);
View przyciskDodaj = findViewById(R.id.dodaj);
przyciskDodaj.setOnClickListener(this);
Aleja_1.setLatitude(Double.parseDouble("52.024412"));
Aleja_1.setLongitude(Double.parseDouble("23.129991"));
Aleja_2.setLatitude(Double.parseDouble("52.025178"));
Aleja_2.setLongitude(Double.parseDouble("23.130157"));
Błąd z loga:
E/Trace(27882): error opening trace file: No such file or directory (2)
Bardzo proszę o pomoc. Pozdrawiam