Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Programming and Scripting
Admob in Source code [PRO]

greenprog
Registered User
Quote
2015-12-14 11:12:17

Someone already tried to embed advertising. And as many files in the source ... I'm not really in the Android Studio


niko
Moderator
Quote
2015-12-16 09:56:45

You can also try and use Eclipse, if this is easier for you.
For adding ads, I think you only need to look into the file CopperCubePlayerActivity.java. There the window is created, and all the other stuff.


greenprog
Registered User
Quote
2015-12-16 10:12:07

Thank you! I will watch


ggirgin
Registered User
Quote
2015-12-25 18:27:18

Can someone add "admob " in the project ? I found coppercubeplayeractivity.java but it is different than "layout " in Android Studio projects! Niko , could you prepare a tutorial for this?


niko
Moderator
Quote
2015-12-27 10:04:34

Hm, or maybe the Admob developers could create one for CopperCube, would also be a possibility.


ggirgin
Registered User
Quote
2015-12-28 22:32:07

There are several problems ,Google ended android ADT for Eclipse. Exporting Android file from CC5 to Eclipse little confusing.I wrote codes but i am not sure all steps are done correctly! Is there any chance adding admob object like in " gdevelop or construct2 "? This 2 program use Intel XDK as well.
Thanks,
Gökmen


ggirgin
Registered User
Quote
2015-12-28 23:16:06

https://drive.google.com/file/d/0B6rbiaedkFIHbExmY1FwdWJNdkk/view?usp=sharing


niko
Moderator
Quote
2015-12-30 10:26:31

Seems like you didn't add or select a JDK? Like the Android SDK? Google ended it, yes, but it still can be used and should work.


ggirgin
Registered User
Quote
2015-12-30 14:28:55

Hi Niko,
What I am done until today. I could download eclipse version of ADT .

In Eclipse , I chose Android project. So I manage the action.java problem.

Then , matrix4.java, vect3dF.java and quanternion.java give me error.

It says undefined for type of Floatmath.

And I also got 194 warnings.


niko
Moderator
Quote
2015-12-31 07:57:22

Did you try to import the existing Eclipse project? And use the correct Android SDK? You shouldn't get problems like this at all.


ggirgin
Registered User
Quote
2015-12-31 10:04:58

Hi Niko,
I will try it and inform you.
By the time, I wish you all happy new year.


ggirgin
Registered User
Quote
2016-01-18 14:11:59

Hi Niko,

I import my project to Eclipse as an existing Android Project.
After that, i added google play services for Admob. I had no problems with these.

I tried several SDK's such as 2.2 , 4.4 and 6.0

For 2.2 SDK (API 8) it is not supported by Admob. We should use at least API 9
For 4.4 google play sevices gave me this error ;

appinvite_styles.xml:5: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Theme.Material.Light.DialogWhenLarge.NoActionBar'.

After my researches on forums. I found out;
This error is because of API level. So if i want to overcome this error, i should use 6.0 SDK. When i use 6.0 SDK , as you remember Eclipse would not compile my game. (Floatmath... exc. errors)

So this a DEADLOCK for ADMOB :-(

http://stackoverflow.com/questions/22028671/adding-admob-ads-to-java-file-instead-of-xml


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "I?ternational" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact