Comments (6)
@squilter the piggyback implementation is being added to version 1.1.8: #29
There's a two ways to piggy back off another app connection.
- You can register a receiver to listen to the ACTION_VEHICLE_CONNECTION broadcast. That broadcast's extras contain the id of the app that connected, as well as the connection parameter used (minus the droneshare account info). Similarly, registering a receiver for ACTION_VEHICLE_DISCONNECTION will let you know when an app disconnects. Examples for this mode can be found in:
- When your activity or service starts, and is connected to the
ServiceManager
, you can query the list of connected apps by usingServiceManager#getConnectedApps()
. It'll return an array of bundle containing the same type of data as in the broadcast extras (example).
With that additional functionality, you might be able to remove the need for your app to run at boot, or all the time.
from dronekit-android.
@squilter btw, version 1.1.8 is not out yet, so you might need to run a dev version to test the changes mentioned above.
from dronekit-android.
Thanks!
from dronekit-android.
@ne0fhyk What's the best way to build this project? ./gradlew installDebug
gives me
A problem occurred configuring project ':AidlLib'.
> SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.
I couldn't figure out how to get it into Android Studio.
from dronekit-android.
@squilter you should import the project in android studio by selected the settings.gradle
file in the root directory.
The project will have several modules include AidlLib
, ClientLib
and ServiceApp
.
ServiceApp
is the module that needs to be compiled, and installed on the device. That module has a dependency on AidlLib
so it'll be automatically linked in.
You should be able to do that from within android studio, without needing to run gradlew
manually.
from dronekit-android.
Got it. Thanks.
On 1/24/2015 4:12 PM, Fredia Huya-Kouadio wrote:
@squilter https://github.com/squilter you should import the project
in android studio by selected the |settings.gradle| file in the root
directory.
The project will have several modules include |AidlLib|, |ClientLib|
and |ServiceApp|.|ServiceApp| is the module that needs to be compiled, and installed on
the device. That module has a dependency on |AidlLib| so it'll be
automatically linked in.
You should be able to do that from within android studio, without
needing to run |gradlew| manually.—
Reply to this email directly or view it on GitHub
#24 (comment).
from dronekit-android.
Related Issues (20)
- How to send mavlink message and command to take off px4 snapdragon flight board?
- Does o3dr dronekit-android libraries support joystick functionality?
- How to show PX4 board preview on DroneKit-android
- Fix issue with Sik Radio Messages being Filtered
- Video Decoding Errror HOT 2
- Retrieving spline grid from SplineSurvey
- Incorrect values GroundSpeed AirSpeed
- MPCC doesn't work with event dispatch period > 0
- Missed method
- Failing to connect using newUdpConnection(null) HOT 1
- ArduRover HOT 1
- wrong name for manualControl()
- DroneKit 3.0.+ crashing on attemped connection to tower HOT 2
- QGC can be connected via TCP, but the dronekit-android connection is not successful.
- Change velocity with message to Mavlink HOT 1
- DroneKit Crashes on Android 8+ HOT 1
- Crash NullPointerException SSID HOT 3
- Indoor (GPS denied area) fly using GUIDED_NOGPS
- pixhawk for fmuv numvers check mission
- API Reference and Documentation links not working HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dronekit-android.