I\'ve been working with RenderScript recently with the intent of creating an API that a programmer can use with ease, similar to the way that Microsoft Accelerator works.
I had the same problem. The problem with your program is that doesn't know when the add function in rs file should run ,try this it should work
public void setNewValues(Script script, int A, int B) { mScript.set_numberA(A); mScript.set_numberB(B); mscript.invoke_intAdd(); }