I try using ignition-location to get location updates in my Activity. The sample project does work. So far I did the following:
- Added ignition-location apklib dependency to my pom.xml
- Added Annotations to the class (@IgnitedLocationActivity()) and the Location member variable (@IgnitedLocation)
- Implemented lifecycle methods: onCreate, onResume, onPause, onStart, onStop, onDestroy
- Added plugin configurations from sample pom.xml
- Implemented OnIgnitedLocationChangedListener in my Activity
But the Location is not set automagically. There is no log to show because onIgnitedLocationChanged() is not called.
As I understand it ignition-location works by adding certain setters via aspectj to my Activity in the build process. It seems this is not happening to my Activity.
The sample project stopped working when I removed the parent project reference from the sample pom.xml. So I knew it had to do with the poms above the sample project.
I needed to add the following from the parent pom:
The execution was missing in the sample projects pom.xml.