As per #P.T. suggestion on this question, in order to link Google IAP (In-Apps Purchase) with Libgdx, where should I place the IInAppBillingService.aidl and all the other util files (TriviaDriveSample.util\files)? Should I place it in my main java project (assuming greatGame) or my android project (assuming greatGame-android)? I am currently facing issue integrating Libgdx and Google IAP.
Can some guru please lead me to the destination?
Both of them go into the Android project. For example this is my hierarchy:
MyGame-Android
..-src
....-com
......-android
........-vending
..........-billing
............*IInAppBillingService.aidl
......-my
........-package
..........-util
............*utilfiles...
..........*MainActivity.java
This is because to handle IAP you need to use android specific code in the android project, and interfacing it from the core. Go here for more info about it: https://github.com/libgdx/libgdx/wiki/Interfacing-with-platform-specific-code
Related
I'm doing a plug-in on android studio for unity, I want to do text recognition to an image and send a string of the text detected to unity
I have the plugin in the unity project and can send and receive information normally, I want to use the google vision library, but the problem is the class TextRecognizer that I'm using, when it's built it asks for a "context", the guide says you have to use "this" but it seems that the whole plug-in structure doesn't go with it, I don't know what to do anymore
The problem description is: 'Builder(android.content.Context)' in 'com.google.android.gms.vision.text.TextRecognizer.Builder' cannot be applied to '(com.cwgtech.unity.MyPlugin)'
The name of the project comes from the youtube tutorial I was following to create the plug-in
I've followed the Android-Studio recommended action of making my plug-in class extend android.content.context, but it creates a lot of other functions on the top of my code that I don't understand, and all of them have this error: Must be one of: PackageManager.PERMISSION_GRANTED, PackageManager.PERMISSION_DENIED
The problem is that the Google Vision library requires an Android Context object in order to be used. Unfortunately, your Unity Android plugin doesn't provide an Android Context object. You can try creating an Android Context object within your plugin and passing it to the Google Vision library, but this may not work. Alternatively, you could look into using the Google Mobile Vision library which doesn't require an Android Context object.
So this site https://answers.chartboost.com/hc/en-us/articles/201219545-Android-Integration has a guide how to integrate the chartboost sdk, but it looks like it is meaned for android apps, since they are talking about activities. I have no idea how to do this. The only thing I could do so far is adding the chartboost.jar file into my android/libs file. How am I supposed to continue?
I develop apps for Android using libGDX and I want to add Google services such as Google Games or Goodle Ads but I can't do it. I downloaded Google services with SDK Manager and read many guides but none of them have helped. When I try to add compile 'com.google.android.gms:play-services:7.3+' to build.gradle it pops up errors. Hence my question is how to simply add google service to applications. I program in Android Studio.
Your question is very broad so I can't give you an exact answer.
This is the official place to go if you want to incorporate google play services.
This is the place to go if you want to include google play ads service
Note that Intellij Idea is pretty much the same as Android Studio. Whatever works for Idea works for Android Studio in this case.
I'm trying to Integrate the Admob SDK into my Android app. This is so Admob will work with Mopub. Mopub's instructions link to Google's integration instructions. I'm confused by Google's instructions since I'm not using Android Studio or Gradle.
What is the Eclipse equivalent to the section starting with "Once Google Play services is installed"? I think this is making the build process aware of a Google Play Services jar file. I don't know enough about Eclipse, the Java Build Path, etc to determine the Eclipse equivalent.
http://www.androidbegin.com/tutorial/integrating-new-google-admob-banner-interstitial-ads/
This link will help you integrate google play services into your eclipse project for the purpose of displaying AdMob ads. But as far as I see in google search, there is no official tutorial related to eclipse integration of AdMob now.(It has been replaced by Android Studio tutorial) I guess they might be focusing more towards asking developers to use Android Studio. So I think, we might have to make transition soon.
I've been searching for info about it on the internet but I haven't found anything.
The point is that I want to transform my library for android, which I'm using for advertising, into an sdk to make it available for other developers.
My library is mainly an extension of the Application class and I don't know if this should be the way an sdk is made, mainly because it seems weird to me that a .jar extends the Application class.
So, I'm asking for some advices/tips/guidelines or whatever you could tell me in order to build an sdk.