What
What

Reputation: 73

Detecting Location on Android Wear Error

I'm following this guide: https://developer.android.com/training/articles/wear-location-detection.html, and got up to the part "Request Location Updates." I created the class that they gave, and took care of all but one error.

This is where my error is. It is associated with performing setResultCallback().

Error

The caption reads: Class 'Anonymous class derived from ResultCallback' must either be declared abstract or implement abstract method 'onResult(R)' in 'ResultCallback.'

I'm wondering why I get it. Maybe I'm missing something?

Upvotes: 0

Views: 232

Answers (1)

gruszczy
gruszczy

Reputation: 42208

The example is missing :

        .setResultCallback(new ResultCallback<Status>() {

Upvotes: 1

Related Questions