After activating debug mode in AA and starting head unit server on the smartphone, The head unit desktop application is started with the following script:
@echo off
D:
cd \Android\android-sdk\platform-tools
adb forward tcp:5277 tcp:5277
cd \Android\android-sdk\extras\google\auto
desktop-head-unit.exe
If I'm running the application from B4A IDE in debug mode, the app starts on the smartphone as a normal app, not in the AA interface. The app icon is available in the Media apps section of AA, I can start it from there, but not in debug mode.
If the app is already started in AA interface, when I'm trying to run in debug one in IDE, the app does not restart in AA interface, just as a normal Android app.