Bennu Game Development

English Forums => Platforms => Android => Topic started by: Grew on July 22, 2016, 04:27:02 PM

Title: PixTudio + Admob
Post by: Grew on July 22, 2016, 04:27:02 PM


Hi,
Can somebody explain how to manually set up AdMob for PixsTudio's Android project ?

Title: Re:PixTudio + Admob
Post by: l1nk3rn3l on July 22, 2016, 10:54:21 PM
CHANGE THE CODE IN

android\src\org\libsdl\app\sdlactivity.java

similar to this :

in Java function ...  protected void onCreate(Bundle savedInstanceState)


Example:

http://stackoverflow.com/questions/28387329/admob-ads-not-correctly-showing-in-android-sdl-app

in androidmanifest.xml

add permissions

<uses-permission android:name="android.permission.INTERNET"/>
  <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>

and this too .. dnt know :

<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />


  <activity
      android:name="com.google.android.gms.ads.AdActivity"
      android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"
       android:theme="@android:style/Theme.Translucent" />



This feature will be included in the next pixtudio..
and new debug android features...  and possibly game services..
Title: Re:PixTudio + Admob
Post by: Grew on July 23, 2016, 09:29:53 AM
Thank you l1nk3rn3l ! I will try it today.  :)
Title: Re:PixTudio + Admob
Post by: Grew on July 23, 2016, 03:35:00 PM

I have made some tries but there are some problems (especially to add the google play service lib to the project).
I will try again later, but if someone want to help don't esitate !
Title: Re:PixTudio + Admob
Post by: l1nk3rn3l on July 24, 2016, 03:09:00 PM
(https://adriandawid.files.wordpress.com/2014/08/bildschirmfoto-2014-08-17-um-17-32-16.png)

include the lib on sdk manager...  and then compile after
Title: Re:PixTudio + Admob
Post by: Grew on July 25, 2016, 09:16:54 AM

I've downloaded the Google Play Service package from SDK Manager, but from what I understood from this link : https://developers.google.com/android/guides/setup, I have to copy "<android-sdk>/extras/google/google_play_services/libproject/google-play-services_lib/" to my project folder. But I can't find "libproject" folder in my "<android-sdk>/extras/google/google_play_services" folder.
I only have these folders :
(http://img15.hostingpics.net/pics/304981img.jpg)
Have you any idea ? What am I doing wrong ?
Title: Re:PixTudio + Admob
Post by: l1nk3rn3l on July 25, 2016, 03:23:57 PM
 ;D  i dont know what happen

OK OK

in a few days this feature will be included .. in pixtudio...
Title: Re:PixTudio + Admob
Post by: Grew on July 25, 2016, 08:32:17 PM
Ok nice ! Thank you :D ! I will wait.