Robert Valentino Well-Known Member Licensed User Longtime User Jan 25, 2018 #1 Is there a way we can debug our code using the Head Unit Emulator? The below link shows how using ADB but I am not sure how this would work using B4A https://www.androidcentral.com/how-try-android-auto-you-buy https://www.androidcentral.com/how-try-android-auto-you-buy Thanks for any help BobVal
Is there a way we can debug our code using the Head Unit Emulator? The below link shows how using ADB but I am not sure how this would work using B4A https://www.androidcentral.com/how-try-android-auto-you-buy https://www.androidcentral.com/how-try-android-auto-you-buy Thanks for any help BobVal
yo3ggx Active Member Licensed User Longtime User Jan 31, 2018 #2 I am interested too. I've started AA head unit app and I can start the app built with B4A, but not in debug mode. Upvote 0
I am interested too. I've started AA head unit app and I can start the app built with B4A, but not in debug mode.
Erel B4X founder Staff member Licensed User Longtime User Feb 1, 2018 #3 Try to follow these steps. If ADB recognizes the emulator then it will work. Upvote 0
yo3ggx Active Member Licensed User Longtime User Feb 3, 2018 #4 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: Code: Copy @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. Upvote 0
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: Code: Copy @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.
Erel B4X founder Staff member Licensed User Longtime User Feb 4, 2018 #5 What is the output of adb devices? Upvote 0