When I run Erel's drone mission, or my DJI app, connected to my drone, it always crashes the first time, then runs OK, usually the 2nd time, sometimes the third time. Any ideas why this would happen?
but there's not gonna be an error message because i'm only running from my tablet. I'm running in release mode. I expect the app to crash when I'm not connected to the drone. Should I be using the Simulator or something else?
I'm writing your logs to a label on the app, and it's crashing in SDK_ProductChanged, saying no connected product. But the remote is saying it's connected, and giving the
correct battery level. Just now, after saying no connected product, it said product connected, and has been showing video and telemetry for a long time. So I'm assuming that even if SDK_ProductChanged returns no data, the app should keep running waiting for SDK_ProductChanged to be called again with data.
yes the tablet has to be connected to the remote control via cable when i'm testing my app. i typically don't use wifi to connect via the bridge because it was unreliable
This morning I was running the exact same project that was running OK last night, and it was crashing. Now, after leaving the tablet on for a while, and maybe the drone
and remote control have warmed up a little, it's running OK. Typically, when I fly the drone, I don't worry about having things "warm up".
Actually, my program is almost exactly like drone mission now. I'm re writing it, and have
only added mapfragment, and a few labels.
'************ Google Play Services Base ************
AddApplicationText(
<activity android:name="com.google.android.gms.common.api.GoogleApiActivity"
android:theme="@android:style/Theme.Translucent.NoTitleBar"
android:exported="false"/>
<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
)
'************ Google Play Services Base (end) ************