Run Android app with java code in ML Application Simulator from ML Hub

Give us as much detail as possible regarding the issue you're experiencing.

ML2 OS version: - Run in ML App Simulator Zi run time
MLSDK version: - 1.10.0
Host OS: (Windows/MacOS) - Windows 10
Android Studio: Electric Eel as per ML documentation
Build #AI-221.6008.13.2211.9619390, built on February 17, 2023
Runtime version: 11.0.15+0-b2043.56-9505619 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains

I m trying to run Android application in Magic Leap simulator. In Studio device's list did not show ML Simulator, i tried to run app through Command prompt using Commands
adb devices
adb install
adb kill server
adb start server

it gives no device found..

i did every step mentioned in link Android Studio Workflow | MagicLeap Developer Documentation

But not able to run.
Thank you for any help or suggestions

Error messages from logs (syntax-highlighting is supported via Markdown):
Setting MLSDK=C:\Users\Rise\MagicLeap\mlsdk\v1.10.0 and updating PATH
*** ANDROID_NDK_ROOT is not set, checking default paths...
*** Setting ANDROID_NDK_ROOT=C:\Users\Rise\AppData\Local\Android\sdk\ndk\27.0.12077973
*** Environment now set up to run tools and apps under Application Simulator.
C:\Users\Rise\MagicLeap\mlsdk\v1.10.0>adb devices
List of devices attached

C:\Users\Rise\MagicLeap\mlsdk\v1.10.0>adb install C:\Users\Rise\AndroidStudioProjects\TestApplication1\app\build\outputs\apk\debug\app-debug.apk
error: no devices/emulators found
error: no devices/emulators found
Performing Streamed Install
adb: connect error for write: no devices/emulators found

There might have been confusion around App Sim. App Simulator does not support simulating Standard Android Applications. If you are building a 2D android Application, you can use the Android Emulator inside Android Studio Instead. Additionally App Simulator and MLSDK have been deprecated and we recommend using the more recent OpenXR APIs.

Thank you for reply
My application is combination of 2D and 3D. 2D screens developed by Android and 3D screens developed by Unity. I have 2D login(native Android) and once login rendering HTML pages(Rendering webpages in I Frame) with fetching data from Android SQLite database.
then invoke 3D Content(Unity) from Android..
Folder structure created by Android.
I want to know magic leap supported all Android native API's(Camera, Microphone, Video, Audio) or not
Now I want to test in Magic Leap device. As of now i don't have physical device, need to test in simulator.
I am new to magic leap development. Can you help me.

Understood, Magic Leap 2 supports Android's APIs. The OS is based on Android 10. There are some small differences between standard Android but those are on the Rendering side rather than Multimedia since the Magic Leap displays content for both the left, and right eyes.

That said, based on your description the APIs will work as expected on the physical device.

This topic was automatically closed after 18 days. New replies are no longer allowed.