barx Well-Known Member Licensed User Longtime User Aug 24, 2014 #1 Take a look at the example at the bottom of this page How would one implement the listener in a library More specifically this part B4X: public class MainActivity extends Activity implements DataApi.DataListener, ConnectionCallbacks, OnConnectionFailedListener { Thanks
Take a look at the example at the bottom of this page How would one implement the listener in a library More specifically this part B4X: public class MainActivity extends Activity implements DataApi.DataListener, ConnectionCallbacks, OnConnectionFailedListener { Thanks
Erel B4X founder Staff member Licensed User Longtime User Aug 24, 2014 #2 Create a new class that implements the listeners. It doesn't need to be the activity.
tchart Well-Known Member Licensed User Longtime User Aug 25, 2014 #4 Take a look at my Esri ArcGIS wrapper to see how I wrapped listeners; https://github.com/gdbgeek/AGSforAn...art/ags/proxy/android/map/MapViewWrapper.java
Take a look at my Esri ArcGIS wrapper to see how I wrapped listeners; https://github.com/gdbgeek/AGSforAn...art/ags/proxy/android/map/MapViewWrapper.java
barx Well-Known Member Licensed User Longtime User Aug 25, 2014 #5 tchart said: Take a look at my Esri ArcGIS wrapper to see how I wrapped listeners; https://github.com/gdbgeek/AGSforAn...art/ags/proxy/android/map/MapViewWrapper.java Click to expand... Thanks for the link tchart. I had dealt with some listeners before but this one threw me when it was part of Activity class declaration, didn't realize it could go on any class.
tchart said: Take a look at my Esri ArcGIS wrapper to see how I wrapped listeners; https://github.com/gdbgeek/AGSforAn...art/ags/proxy/android/map/MapViewWrapper.java Click to expand... Thanks for the link tchart. I had dealt with some listeners before but this one threw me when it was part of Activity class declaration, didn't realize it could go on any class.