# Android原生混合开发

## 自定义Activity

在开发中总会有一些需要对Activity修改的部分.此时我们应当将adapter.aar拷贝到自己的android工程中并让主activity（启动activity）继承

* 旧版sdk继承：com.tcl.unity.unityadapter.UnityXRSupportActivity.class
* 新版sdk继承：com.rayneo.openxradapter.UnityOpenXrActivity<br>

{% columns %}
{% column width="50%" %}

<figure><img src="/files/otSlg03YqetQkAvvPZ4d" alt=""><figcaption></figcaption></figure>

旧版SDK
{% endcolumn %}

{% column width="50%" %}

<figure><img src="/files/pvGIH70awqa1JVCRYYK6" alt=""><figcaption></figcaption></figure>

新版SDK
{% endcolumn %}
{% endcolumns %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://rayneo.gitbook.io/rayneo-devdoc/x-xi-lie/unity-kai-fa/kuai-su-kai-shi/android-yuan-sheng-hun-he-kai-fa.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
