NewObject take the constructor as parameter, so

jobject obj = env-&gt;NewObject(cls, mid);


This will invoke the first StartApp(), but note that since it's not a proper constructor, this will cause you trouble.

For the constructor, according to the manual, This ID must be obtained by calling GetMethodID() with &lt; init > as the method name and void (V) as the return type.

Java method called twice from C++ JNI NDK function
I tried to close off the water valve (a multi-twist globe-valve) leading to my back-yard water supply (the shutoff valve is inside the house) but it will not twist fully shut.  Is it safe to give the screw a shot of WD-40 to loosen up the valve?  Will that help?

Note: the valve is not leaking so I don't want to replace it.  I am just trying to shut off the water supply for the winter.
