Fixed panning bug, when using RUN_ON_DEMAND, that resulted in the camera being thrown off towards infinity.  

The solution for to refactor the way that events are checked so I add a bool return type to checkEvents() method across osgViewer::GraphcisWindow, osgGA::Devive and osgViewer::Viewer/CompositeViewer classes
Removed redudent code
From Jordi Torres, "We must use JNI_FALSE instead of false in JNI code. Otherwise the examples will not compile. This patch should be applied to osgAndroidExampleGLES1/jni and osgAndroidExampleGLES2/jni. the osgNativeLib.cpp is the same. "
Resrtuctured the use of static's in the Uniform::getNameID() method to avoid problems under Android.
From Farshid Lashkari, " small update to TangentSpaceGenerator to support QUAD_STRIP primitive types."
Merge branch 'master' of https://github.com/openscenegraph/osg into dev