I am new to MavSDK andrioid. I need to write Android app to connect a drone running PX4 through wifi (the drone’s Wi-Fi hotspot) and typec. I was told MavSDK is a convenient and great solution to it. I came across the following claim about MAVSDK on Android:
import io.mavsdk.System; // The new name for the Drone class
import io.mavsdk.mavsdkserver.MavsdkServer; // The server class
// Start the internal server
MavsdkServer server = new MavsdkServer();
server.run(14550); // Start the server on a specific port
// Then create a System instance to connect
System drone = new System();
drone.connect().andThen(/* … */);
/*
The claim says:
- MAVSDK Server is already included in the Android SDK
- We do not need to download or run a separate server file
- The server runs as part of the app
- We can simply manage dependencies via Gradle
*/
Is this claim correct? Specifically:
- Does MAVSDK Server truly come bundled with the official Android SDK so we don’t have to separately download or include the mavsdk_server_android executable?
- Is it really just a matter of writing new MavsdkServer() and calling server.run(…) to have everything work on Android without external files?
Please clarify the accuracy of this claim and how MAVSDK Server typically works on Android.
working detail demo code or instrucitons are preferred…
Many many thanks!