# Native Development

**URL:** https://forum.magicleap.cloud/c/native-development/140.md?page=1

[Latest](https://forum.magicleap.cloud/latest.md) · [Categories](https://forum.magicleap.cloud/categories.md) · [Tags](https://forum.magicleap.cloud/tags.md)

**Page:** 2

---

## [Different projection matrices on different devices](https://forum.magicleap.cloud/t/different-projection-matrices-on-different-devices/2874)

<div class="topic-metadata">

**Author:** [@rp1](https://forum.magicleap.cloud/u/rp1)\
**Replies:** 3\
**Last updated:** [December 4, 2023, 10:59pm UTC](https://forum.magicleap.cloud/t/different-projection-matrices-on-different-devices/2874 "2023-12-04T22:59:49Z")

</div>

Dear Magic Leap team, We encountered an issue with the projection matrix, for the virtual cameras, we receive from Magic Leap FrameInfo. On one device it looks OK (3D models stick to the ground), on another device the …

---

## [How to find dimenssions of a QR Code?](https://forum.magicleap.cloud/t/how-to-find-dimenssions-of-a-qr-code/2719)

<div class="topic-metadata">

**Author:** [@a.nourinia](https://forum.magicleap.cloud/u/a.nourinia)\
**Replies:** 11\
**Last updated:** [November 29, 2023, 10:02am UTC](https://forum.magicleap.cloud/t/how-to-find-dimenssions-of-a-qr-code/2719 "2023-11-29T10:02:19Z")

</div>

Hello. I am using the Marker Tracking capabilities of Magic Leap 2 through its C-APIs. However, in the C-APIs it has been mentioned that the physical length of the marker (QR Code) should be known prior to the detection…

---

## [Signing & mlpackageverifier: "signature not match"](https://forum.magicleap.cloud/t/signing-mlpackageverifier-signature-not-match/2703)

<div class="topic-metadata">

**Author:** [@kevincain](https://forum.magicleap.cloud/u/kevincain)\
**Replies:** 4\
**Last updated:** [October 11, 2023, 6:09pm UTC](https://forum.magicleap.cloud/t/signing-mlpackageverifier-signature-not-match/2703 "2023-10-11T18:09:10Z")

</div>

I see 'mlpackageverifier' rejection in Logcat when running native code \[Windows, native API v1.3.0-dev1/v1.3.0-dev2/v1.4.0-dev1\]: 2023-10-09 23:10:48.198 5744-5744 MLPackageV...::Verifier com.magicleap.mlpackageverif…

---

## [Build Native Plugins](https://forum.magicleap.cloud/t/build-native-plugins/2683)

<div class="topic-metadata">

**Author:** [@PPXR](https://forum.magicleap.cloud/u/PPXR)\
**Replies:** 3\
**Last updated:** [October 8, 2023, 6:14pm UTC](https://forum.magicleap.cloud/t/build-native-plugins/2683 "2023-10-08T18:14:11Z")

</div>

Hello, I've bought the PDFViewer asset from the Unity store to show PDF inside in device, but I've encountered a problem. When the PDFViewer C# script calls a Native function the whole script blocks without any error me…

---

## [How to use the hand interaction like the system menu?](https://forum.magicleap.cloud/t/how-to-use-the-hand-interaction-like-the-system-menu/2341)

<div class="topic-metadata">

**Author:** [@m.soliman](https://forum.magicleap.cloud/u/m.soliman)\
**Replies:** 9\
**Last updated:** [October 6, 2023, 1:21pm UTC](https://forum.magicleap.cloud/t/how-to-use-the-hand-interaction-like-the-system-menu/2341 "2023-10-06T13:21:19Z")

</div>

Hello there, I'm developing my own native application on Magic leap 2 that should have far interaction with hands, but I've an issue when I try to set the pointer pose to interact with my scene objects. It doesn't look …

---

## [Synchronous capture or world and RGB cameras on ML2](https://forum.magicleap.cloud/t/synchronous-capture-or-world-and-rgb-cameras-on-ml2/2149)

<div class="topic-metadata">

**Author:** [@kevincain](https://forum.magicleap.cloud/u/kevincain)\
**Replies:** 5\
**Last updated:** [October 3, 2023, 3:45am UTC](https://forum.magicleap.cloud/t/synchronous-capture-or-world-and-rgb-cameras-on-ml2/2149 "2023-10-03T03:45:47Z")

</div>

At first blush it looks like methods for capturing frames from ML2's world cameras won't work with the RGB camera, and vice-versa. For example, the header 'ml\_world\_camera.h' addresses the (3) world cameras but not the R…

---

## [Native ML2 api for retrieving currently installed OS version](https://forum.magicleap.cloud/t/native-ml2-api-for-retrieving-currently-installed-os-version/2523)

<div class="topic-metadata">

**Author:** [@rp1](https://forum.magicleap.cloud/u/rp1)\
**Replies:** 2\
**Last updated:** [September 12, 2023, 12:29pm UTC](https://forum.magicleap.cloud/t/native-ml2-api-for-retrieving-currently-installed-os-version/2523 "2023-09-12T12:29:35Z")

</div>

Dear Magic Leap team, Is there a Magic Leap API call for retrieving the currently installed Magic Leap 2 OS version? So, our app is able to check which version of the ML2 OS is installed. I just found a MLGetVersion() …

---

## [Magic Leap issues with updating voice intents](https://forum.magicleap.cloud/t/magic-leap-issues-with-updating-voice-intents/2113)

<div class="topic-metadata">

**Author:** [@rp1](https://forum.magicleap.cloud/u/rp1)\
**Replies:** 19\
**Last updated:** [September 7, 2023, 6:54pm UTC](https://forum.magicleap.cloud/t/magic-leap-issues-with-updating-voice-intents/2113 "2023-09-07T18:54:08Z")

</div>

Hi, We have encountered a problem with updating Magic Leap voice command settings. We only update these voice commands once in a while, i.e. irregularly and not in short succession. With a mixture of new voice intentio…

---

## [Stereo rendering issue with OS 1.3.1](https://forum.magicleap.cloud/t/stereo-rendering-issue-with-os-1-3-1/2404)

<div class="topic-metadata">

**Author:** [@rp1](https://forum.magicleap.cloud/u/rp1)\
**Replies:** 6\
**Last updated:** [August 29, 2023, 9:47am UTC](https://forum.magicleap.cloud/t/stereo-rendering-issue-with-os-1-3-1/2404 "2023-08-29T09:47:28Z")

</div>

Dear Magic Leap Team, We are experiencing strange stereo rendering issues with the latest ML2 OS 1.3.1. After updating our Magic Leap2 device to OS 1.3.1 the eye distance does not look correct. I almost have to cross m…

---

## [Touch input issues using WebView](https://forum.magicleap.cloud/t/touch-input-issues-using-webview/2245)

<div class="topic-metadata">

**Author:** [@rp1](https://forum.magicleap.cloud/u/rp1)\
**Replies:** 8\
**Last updated:** [August 9, 2023, 2:54pm UTC](https://forum.magicleap.cloud/t/touch-input-issues-using-webview/2245 "2023-08-09T14:54:06Z")

</div>

Dear Magic Leap team, Our app runs in immersive mode. We have an Android WebView that we want to display as a 3D plane. For this, we create a "hidden" Android WebView that renders a user interface (html/javascript). Th…

---

## [Switch to immersive mode on run time](https://forum.magicleap.cloud/t/switch-to-immersive-mode-on-run-time/2195)

<div class="topic-metadata">

**Author:** [@rp1](https://forum.magicleap.cloud/u/rp1)\
**Replies:** 1\
**Last updated:** [July 12, 2023, 1:25pm UTC](https://forum.magicleap.cloud/t/switch-to-immersive-mode-on-run-time/2195 "2023-07-12T13:25:13Z")

</div>

Dear Magic Leap Team, Is it possible to switch to immersive mode at run time? For example, starting as "normal" Android app, then using a button to start the immersive mode. Flowing the Magic Leap documentation Modify…

---

## [Show Magic Leap Keyboard and pass input to native application](https://forum.magicleap.cloud/t/show-magic-leap-keyboard-and-pass-input-to-native-application/2081)

<div class="topic-metadata">

**Author:** [@rp1](https://forum.magicleap.cloud/u/rp1)\
**Replies:** 7\
**Last updated:** [June 22, 2023, 8:21am UTC](https://forum.magicleap.cloud/t/show-magic-leap-keyboard-and-pass-input-to-native-application/2081 "2023-06-22T08:21:25Z")

</div>

Hi, Our native application renders its content directly into the Magic Leap textures. Is there a way to programmatically display (overlay) the Magic Leap system keyboard and pass input directly to our application? Than…

---

## [Native meshing not working](https://forum.magicleap.cloud/t/native-meshing-not-working/2034)

<div class="topic-metadata">

**Author:** [@rp1](https://forum.magicleap.cloud/u/rp1)\
**Replies:** 4\
**Last updated:** [June 7, 2023, 8:51pm UTC](https://forum.magicleap.cloud/t/native-meshing-not-working/2034 "2023-06-07T20:51:44Z")

</div>

Hi, We have problems retrieving MLMeshingMeshInfo with MLMeshingGetMeshInfoResult(). The MLMeshingGetMeshInfoResult() method returns MLResult\_Ok, but out\_info.data\_count is set to zero. We have ensured that subsequent …

---

## [Unable to start RenderDoc (prev005)](https://forum.magicleap.cloud/t/unable-to-start-renderdoc-prev005/2017)

<div class="topic-metadata">

**Author:** [@alexhenry](https://forum.magicleap.cloud/u/alexhenry)\
**Replies:** 4\
**Last updated:** [June 2, 2023, 8:34pm UTC](https://forum.magicleap.cloud/t/unable-to-start-renderdoc-prev005/2017 "2023-06-02T20:34:06Z")

</div>

Give us as much detail as possible regarding the issue you're experiencing. ML2 OS version: N/A MLSDK version: N/A Host OS: Windows 10 Pro 21H2 19044.2965 Graphics Driver: Intel(R) UHD Graphics, Driver Version 31.0.1…

---

## [Assistance Needed: Issue with C API Samples and SDK Compatibility in Magic Leap 2](https://forum.magicleap.cloud/t/assistance-needed-issue-with-c-api-samples-and-sdk-compatibility-in-magic-leap-2/1897)

<div class="topic-metadata">

**Author:** [@usman.bashir](https://forum.magicleap.cloud/u/usman.bashir)\
**Replies:** 7\
**Last updated:** [May 28, 2023, 1:52pm UTC](https://forum.magicleap.cloud/t/assistance-needed-issue-with-c-api-samples-and-sdk-compatibility-in-magic-leap-2/1897 "2023-05-28T13:52:14Z")

</div>

Dear Community, I hope this message finds you all well. I am currently working on native development for Android using the C API Samples downloaded via the Magic Leap Hub. My goal is to delve deeper into the capabiliti…

---

## [Can not install own APK using Magic Leap browser](https://forum.magicleap.cloud/t/can-not-install-own-apk-using-magic-leap-browser/1959)

<div class="topic-metadata">

**Author:** [@rp1](https://forum.magicleap.cloud/u/rp1)\
**Replies:** 2\
**Last updated:** [May 24, 2023, 7:06am UTC](https://forum.magicleap.cloud/t/can-not-install-own-apk-using-magic-leap-browser/1959 "2023-05-24T07:06:49Z")

</div>

Hi, I'm using Magic Leap 2, OS 1.3.0-dev. I'm trying to install my own application by downloading the APK from our web-server using Magic Leap's build in web browser. Download the APK is working. Also granted the inst…

---

## [Opening app using an URL scheme with deep link](https://forum.magicleap.cloud/t/opening-app-using-an-url-scheme-with-deep-link/1652)

<div class="topic-metadata">

**Author:** [@rp1](https://forum.magicleap.cloud/u/rp1)\
**Replies:** 5\
**Last updated:** [May 23, 2023, 2:08pm UTC](https://forum.magicleap.cloud/t/opening-app-using-an-url-scheme-with-deep-link/1652 "2023-05-23T14:08:30Z")

</div>

Hi, Is there any way to open our app on Magic Leap 2 using app schemas with deep links, as is possible on Android devices? We try to add android:scheme="myapp" to AndroidManifest.xml, use Magic Leap web browser or sca…

---

## [Android Application Orientation and Functionality Issues on ML2 Glasses](https://forum.magicleap.cloud/t/android-application-orientation-and-functionality-issues-on-ml2-glasses/1887)

<div class="topic-metadata">

**Author:** [@usman.bashir](https://forum.magicleap.cloud/u/usman.bashir)\
**Replies:** 6\
**Last updated:** [May 15, 2023, 12:59pm UTC](https://forum.magicleap.cloud/t/android-application-orientation-and-functionality-issues-on-ml2-glasses/1887 "2023-05-15T12:59:31Z")

</div>

Dear Magic Leap Support Team, I trust this message finds you well. I am reaching out to you today in the hopes of receiving assistance regarding a specific challenge I am encountering with my Android application when op…

---

## [Networking - LAN communication](https://forum.magicleap.cloud/t/networking-lan-communication/1873)

<div class="topic-metadata">

**Author:** [@jweatherhead](https://forum.magicleap.cloud/u/jweatherhead)\
**Replies:** 2\
**Last updated:** [May 10, 2023, 4:46am UTC](https://forum.magicleap.cloud/t/networking-lan-communication/1873 "2023-05-10T04:46:50Z")

</div>

Hi I am new to Magic Leap and Android development. I tried to create a TCP / IP server in my app so I can communicate with my app from a Windows computer. ML appears to stop the app functioning. Is TCP/IP communication …

---

## [How to get pupil diameter from native API](https://forum.magicleap.cloud/t/how-to-get-pupil-diameter-from-native-api/1851)

<div class="topic-metadata">

**Author:** [@jweatherhead](https://forum.magicleap.cloud/u/jweatherhead)\
**Replies:** 2\
**Last updated:** [May 7, 2023, 1:08am UTC](https://forum.magicleap.cloud/t/how-to-get-pupil-diameter-from-native-api/1851 "2023-05-07T01:08:28Z")

</div>

Hi - there is mention in the docs and software licenses about accessing various eye metrics. Some of thee include pupil diameter. We can't seem to find any way to get the pupil size information from the native api. Can s…

---

## [Does ML2 support hardware h.264 decoding through the MediaCodec API?](https://forum.magicleap.cloud/t/does-ml2-support-hardware-h-264-decoding-through-the-mediacodec-api/1134)

<div class="topic-metadata">

**Author:** [@hollowaya](https://forum.magicleap.cloud/u/hollowaya)\
**Replies:** 5\
**Last updated:** [May 1, 2023, 1:30pm UTC](https://forum.magicleap.cloud/t/does-ml2-support-hardware-h-264-decoding-through-the-mediacodec-api/1134 "2023-05-01T13:30:19Z")

</div>

Hi, I'm decoding h264 streams from the user's desktop using FFMPEG/libavcodec, which currently does it on the CPU. I see the custom H264 decoding in the docs for ml\_media\_decoder, but I'm wondering if ML2 supports Andro…

---

## [Camera sometimes not released when app crashes or is closed. Can't reconnect without restarting ML2](https://forum.magicleap.cloud/t/camera-sometimes-not-released-when-app-crashes-or-is-closed-cant-reconnect-without-restarting-ml2/1608)

<div class="topic-metadata">

**Author:** [@alex.teepe](https://forum.magicleap.cloud/u/alex.teepe)\
**Replies:** 3\
**Last updated:** [March 21, 2023, 4:33pm UTC](https://forum.magicleap.cloud/t/camera-sometimes-not-released-when-app-crashes-or-is-closed-cant-reconnect-without-restarting-ml2/1608 "2023-03-21T16:33:53Z")

</div>

I'm having an issue with the ML2 Main/CV camera where if your app has the camera connected and streaming video, and then the app crashes (due to my code, not the magic leap's) or is stopped via Android Studio's "Stop" bu…

---

## [How to adjust camera settings (shutter speed/exposure) to reduce motion blur for marker tracking?](https://forum.magicleap.cloud/t/how-to-adjust-camera-settings-shutter-speed-exposure-to-reduce-motion-blur-for-marker-tracking/1493)

<div class="topic-metadata">

**Author:** [@alex.teepe](https://forum.magicleap.cloud/u/alex.teepe)\
**Replies:** 9\
**Last updated:** [February 24, 2023, 5:02pm UTC](https://forum.magicleap.cloud/t/how-to-adjust-camera-settings-shutter-speed-exposure-to-reduce-motion-blur-for-marker-tracking/1493 "2023-02-24T17:02:10Z")

</div>

Hi, I'm wondering if it's possible to adjust the main camera settings (shutter speed/exposure) to reduce motion blur or get sharper images in a video capture? I'm using a 4k video feed from the main camera and attemptin…

---

## [Hello. Is there any way to add button in magic leaps 2?](https://forum.magicleap.cloud/t/hello-is-there-any-way-to-add-button-in-magic-leaps-2/1500)

<div class="topic-metadata">

**Author:** [@brintodibyendu](https://forum.magicleap.cloud/u/brintodibyendu)\
**Replies:** 1\
**Last updated:** [February 21, 2023, 2:57pm UTC](https://forum.magicleap.cloud/t/hello-is-there-any-way-to-add-button-in-magic-leaps-2/1500 "2023-02-21T14:57:16Z")

</div>

Hi. I am working in a project and I want to know the process of adding a button in the magic leap 2 screen. I want to add that button and some events will happen. Thank you.

---

## [MLGraphicsBeginFrame Complaint: error number 5](https://forum.magicleap.cloud/t/mlgraphicsbeginframe-complaint-error-number-5/1463)

<div class="topic-metadata">

**Author:** [@a.al-darraji](https://forum.magicleap.cloud/u/a.al-darraji)\
**Replies:** 4\
**Last updated:** [February 15, 2023, 6:25am UTC](https://forum.magicleap.cloud/t/mlgraphicsbeginframe-complaint-error-number-5/1463 "2023-02-15T06:25:21Z")

</div>

I have moved my magic leap development environment to another PC, and followed everything in the setup overview for native development. Now I am getting this error for the simple\_gl\_app sample. I am using the 1.1.0-dev1…

---

## [Disable autofocus](https://forum.magicleap.cloud/t/disable-autofocus/1431)

<div class="topic-metadata">

**Author:** [@JSc](https://forum.magicleap.cloud/u/JSc)\
**Replies:** 1\
**Last updated:** [January 27, 2023, 4:24pm UTC](https://forum.magicleap.cloud/t/disable-autofocus/1431 "2023-01-27T16:24:10Z")

</div>

Hi, I would like to know if it's possible to disable the autofocus on the camera or if there is a capture mode that disables it. Thanks. Give us as much detail as possible regarding the issue you're experiencing. ML2…

---

## [Reprojection and pointer pose API in native C\_API](https://forum.magicleap.cloud/t/reprojection-and-pointer-pose-api-in-native-c-api/1229)

<div class="topic-metadata">

**Author:** [@a.al-darraji](https://forum.magicleap.cloud/u/a.al-darraji)\
**Replies:** 7\
**Last updated:** [January 6, 2023, 6:18am UTC](https://forum.magicleap.cloud/t/reprojection-and-pointer-pose-api-in-native-c-api/1229 "2023-01-06T06:18:35Z")

</div>

I am trying to implement re-projection; I was wondering if the native C\_API provide an API to override the re-projection matrix. because as far as I Know, OpenXR does require this facility to exist in the API. on a seco…

---

## [Unable to build for ML2 in Android studio](https://forum.magicleap.cloud/t/unable-to-build-for-ml2-in-android-studio/1321)

<div class="topic-metadata">

**Author:** [@robot](https://forum.magicleap.cloud/u/robot)\
**Replies:** 3\
**Last updated:** [December 21, 2022, 4:01pm UTC](https://forum.magicleap.cloud/t/unable-to-build-for-ml2-in-android-studio/1321 "2022-12-21T16:01:35Z")

</div>

I am trying to build a plugin that I can call through a unity project on ML2. The plugin builds on Android Studio for x86\_64 release. However on ML2, the library is unreachable. It seems to me I don’t have the right con…

---

## [How to Debug Graphical Applications](https://forum.magicleap.cloud/t/how-to-debug-graphical-applications/1179)

<div class="topic-metadata">

**Author:** [@a.al-darraji](https://forum.magicleap.cloud/u/a.al-darraji)\
**Replies:** 14\
**Last updated:** [November 9, 2022, 1:21pm UTC](https://forum.magicleap.cloud/t/how-to-debug-graphical-applications/1179 "2022-11-09T13:21:43Z")

</div>

As far as I have tried, RenderDoc (which is one of the standard applications for debugging GUI apps) doesn't support x86-64 according to this issue What are the alternatives to debug graphical apps in the ML2? I tried …

---

## [Building Native App confusion for ML2](https://forum.magicleap.cloud/t/building-native-app-confusion-for-ml2/773)

<div class="topic-metadata">

**Author:** [@a.al-darraji](https://forum.magicleap.cloud/u/a.al-darraji)\
**Replies:** 8\
**Last updated:** [November 9, 2022, 1:15pm UTC](https://forum.magicleap.cloud/t/building-native-app-confusion-for-ml2/773 "2022-11-09T13:15:55Z")

</div>

I am having some confusion regarding making native Apps for ML2, what is the workflow? I have visual studio, android studio, Lab2.0, ZI and the other tools ready (C++ compiler, cmake, python etc.) I had assume, I shou…

[Previous page](https://forum.magicleap.cloud/c/native-development/140.md)

[Next page](https://forum.magicleap.cloud/c/native-development/140.md?page=2)
