Code example for OrientationEventListener

Methods: enable

0
				last = v;
				android.util.Log.d("Orientation ","v: "+v );
				view.loadUrl("javascript:droid.Orientation.onChange("+v+");");
			} 
		}; 
		l.enable();
	} 
	 
	public final void unlisten() { 
		if( l == null )
			return; 
		l.disable();
		l = null;
	} 
	 
}