The callback method:

22.05.2011 17:58, cellurl ?????:

 public void onSpeedLimitChanged(String speedlimit) {}


Need to be moved up to the interface:

public *interface *SpeedlimitListener {
*    public void onSpeedLimitChanged(String speedlimit) {}*
 }

So it can be called from your "manager" through the interface:

public void requestChanges(SpeedlimitListener speedlimitListener) {
*speedlimitListener.onSpeedLimitChanged("300 km/h");*
 }


and overriden in the actual anonymous callback so the call invocation goes here:

speedlimitListener = new SpeedlimitListener() {
*    @Override *
    public void onSpeedLimitChanged(String speedlimit) {
        Log.i(TAG, "Isn't that a bit too fast?");
    }
};

--
Kostya Vasilyev -- http://kmansoft.wordpress.com

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to