# CallByteMethod(nint, nint, jvalue[])

> Calls a Java instance method defined by \<tt\>methodID\</tt\>, optionally passing an array of arguments (\<tt\>args\</tt\>) to the method.

## Definition

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

## CallByteMethod(IntPtr, IntPtr, jvalue\[])

> **Warning:**
>
> **Deprecated.** AndroidJNI.CallByteMethod is obsolete. Use AndroidJNI.CallSByteMethod method instead

```csharp
public static byte CallByteMethod(nint obj, nint 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.CallByteMethod](/engine/6000.6/script-reference/unityengine/androidjni/callbytemethod.md) is obsolete. Use [AndroidJNI.CallSByteMethod](/engine/6000.6/script-reference/unityengine/androidjni/callsbytemethod.md) instead.

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