After much looking I found that when you need to add google play services to your app, you have to add to your manifest
<meta-data android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
Now if you just add this to your b4a manifest editor the you get an error that the resource containing '@integer/google_play_services_version' does not exist. Understandable.
Now following tutorials for adding google play services to a normal android project requires you to add the lib in a different way to how we do when creating b4a lib projects.
Eclipse-> right click project -> properties -> android -> add to lib window
See this for explanation.
http://developer.android.com/tools/projects/projects-eclipse.html#ReferencingLibraryProject
This apparently auto pick up the resource from the google play service repo.
The issue is, when we create a new project for b4a lib, we have to select java as the project type, therefore we don't have the 'Android' section of properties. Adding to the build paths as normal does not pick up the resource id. If we hard code the version number then once g-p-s updates, our app will break until we update the version.......
How on earth can we accomplish this?
Thanks