[Solved] How to add google play services lib to qt for android
I am developing one project and for now trying to add google play services lib
it is very easy to do in eclipse i just need to add dependencies and add few lines to AndroidManifest.xml
But i have no idea how i can do the same in qt project.
I use qt5.2
i know that if i had jar file i must put it in libs folder of android sources.
But this doesn't work in that case because google play services lib is not just jar file. It also had resources which is outside of jar. And if i put only jar in libs at start on emulator project quits with no found resources.
So may somebody knows how to add java project to dependencies to qt project, or may be some way to put resources from google play services lib to qt project?
[edit: marked this topic as solved, Eddy]
ok i've found solution.
may be this will help somebody
first i did all what in this guide https://developers.google.com/mobile-ads-sdk/docs/
then to add reference to library project i added project.properties file
path must be relative not absolute
next what i need is to prepare google-play-services_lib
i go to google-play-services_lib folder in sdk
android update lib-project --path .
after that all i need is just run my project in qt creator
Thanks for posting your solution.
Hi thanks for sharing your solution. I tried it to use Google+ Api and it works fine.
Good! I am trying to find a way to put ads in a specific view...
which views are you speaking of? In case you're using QML for developing your app you can also have a look at our V-Play AdMob plugin here: http://plugins.v-play.net/doc/plugin-admob/
thanks it seems interesting.
V-Play is commercial
here is my blog post how to add adMob on Android
I think so this app has been worked on real device (not terminal)
What do you mean by that?
[quote author="sanchkart" date="1400506924"]I think so this app has been worked on real device (not terminal)[/quote]
Today I can't test my program on emulator (Google Services exist)
xanm, thank you for you solution