Code example for Message

0
	public interface LocationListenerTimeout extends LocationListener {
		public void onTimeout(String provider);
	} 
 
	private static Message timeoutMsg(String provider) {
		Message msg = new Message();
		msg.obj = provider;
		return msg;
	} 
 
	public static class LocationTimer extends Timer {
		private LocationListenerTimeout listener;
		private LocationManager manager;
		private String provider;
		private Handler handler;
 
		public LocationTimer(LocationListenerTimeout listener, LocationManager manager, String provider, Handler handler) {
			this.listener = listener;
			this.manager = manager;
			this.provider = provider;
			this.handler = handler;