# CallStaticByteMethod(IntPtr, IntPtr, jvalue[])

> Invokes the specified \<tt\>methodID\</tt\> static method on a Java object, optionally passing in an array of arguments (\<tt\>args\</tt\>).

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.AndroidJNIModule

> **Warning:**
>
> **Deprecated.** AndroidJNI.CallStaticByteMethod is obsolete. Use AndroidJNI.CallStaticSByteMethod method instead

```csharp
public static byte CallStaticByteMethod(IntPtr clazz, IntPtr methodID, jvalue[] args)
```

### Parameters

**** (\[IntPtr]\(https\://learn.microsoft.com/dotnet/api/system.intptr)): **** (\[IntPtr]\(https\://learn.microsoft.com/dotnet/api/system.intptr)): **** (jvalue\[]):&#x20;

### Returns

| Type                                                       | Description |
| ---------------------------------------------------------- | ----------- |
| [byte](https://learn.microsoft.com/dotnet/api/system.byte) |             |

### Remarks

[AndroidJNI.CallStaticByteMethod](/engine/6000.0/script-reference/unityengine/androidjni/callstaticbytemethod.md) is obsolete. Use [AndroidJNI.CallStaticSByteMethod](/engine/6000.0/script-reference/unityengine/androidjni/callstaticsbytemethod.md) instead.

Additional Resources: [Java Native Interface Specification (Oracle)](http://download.oracle.com/javase/1.5.0/docs/guide/jni/spec/jniTOC.html)
