Input/Output extension development

80 views
Skip to first unread message

Viz Dev

unread,
Nov 20, 2014, 9:40:18 PM11/20/14
to apps4a...@googlegroups.com

Hi all,

I am using Avare with Xplane on my Android phone without a problem. I would like to access this ADS-B data (lat, long, alt, etc) on my phone from an application on my Android watch. For example, to start simply, I would just like to display my altitude on the watch.

For this experiment, the watch is tethered to my phone via Bluetooth. Due to my limited knowledge of java, where in the Avare source code does it access the gps data from Xplane, should the Avare I/O plugin listener be running? This may help to give me a clue to how Avare retrieves it. Is it:

/**
* From IO module
*/
public void onLocationChanged(Location location, String from) {
if(mPref.getExternalGpsSource().equals("1")) {
return;
}
if ((location != null)
&& location.getProvider().equals(LocationManager.GPS_PROVIDER)) {
updateTimeout();
/*
* Called by GPS. Update everything driven by GPS.
*/
if(!mPref.isSimulationMode()) {
mGpsCallback.locationCallback(location);
}
}
}
/**
* @author zkhan
*
*/ Any ideas would be appreciated. Thanks in advance.

Zubair Khan

unread,
Nov 21, 2014, 9:53:12 PM11/21/14
to Viz Dev, Apps4Av Forum

Hello Viz

You will need to look at the IHelper interface. This is where data from the IO module enters the app.
This is a binder interface. IHelper AIDL file lists the interface that other apps need to implement to send location to Avare.
Z

--
You received this message because you are subscribed to the Google Groups "Apps4Av Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to apps4av-foru...@googlegroups.com.
To post to this group, send email to apps4a...@googlegroups.com.
Visit this group at http://groups.google.com/group/apps4av-forum.
For more options, visit https://groups.google.com/d/optout.

Viz Dev

unread,
Nov 22, 2014, 11:17:04 PM11/22/14
to apps4a...@googlegroups.com
Thank you Zubair. I will check that out. 
Reply all
Reply to author
Forward
0 new messages