phantom
phantom

Reputation: 57

Change variable with button in Android Studio?

I have one simple question: How can I change variables on picture below (INTERVAL and FASTEST_INTERVAL): enter image description here

using button? I tried with this: enter image description here

, and Toast message appears, but I don't think variable is really changed.

Actually, all I want is to change INTERVAL within this: enter image description here

with a simple click of a button.

Upvotes: 0

Views: 647

Answers (1)

Igor Pejic
Igor Pejic

Reputation: 3698

After you update the interval just call the requestLocationUpdates function again to refresh it.

Upvotes: 1

Related Questions