Saturday, May 21, 2011

[android-developers] Re: Context LocationManager

Thanks for that.
I don't know how to trigger events here?
Any suggestions?

----------------------------------------------
SpeedlimitListener speedlimitListener;

speedlimitListener = new SpeedlimitListener() {
public void onSpeedLimitChanged(String speedlimit) {
}
};

LocationManager lm=
(LocationManager)getSystemService(Context.LOCATION_SERVICE);

SpeedlimitManager slm= new SpeedlimitManager(lm);

slm.requestSpeedlimitChanges( speedlimitListener );


---------------SpeedlimitListener.java------------

public class SpeedlimitListener {

}

--------------SpeedlimitManager.java-----------------------------

public class SpeedlimitManager {

public SpeedlimitManager(LocationManager lm) { }

public void requestSpeedlimitChanges(SpeedlimitListener
speedlimitListener) { }
}

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate