PixTudio + Admob

Started by Grew, July 22, 2016, 04:27:02 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Grew



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

My game developer instagram :
https://www.instagram.com/ben_dev_game/

l1nk3rn3l

#1
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..

Grew

Thank you l1nk3rn3l ! I will try it today.  :)
My game developer instagram :
https://www.instagram.com/ben_dev_game/

Grew


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 !
My game developer instagram :
https://www.instagram.com/ben_dev_game/

l1nk3rn3l



include the lib on sdk manager...  and then compile after

Grew


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 :

Have you any idea ? What am I doing wrong ?
My game developer instagram :
https://www.instagram.com/ben_dev_game/

l1nk3rn3l

 ;D  i dont know what happen

OK OK

in a few days this feature will be included .. in pixtudio...

Grew

Ok nice ! Thank you :D ! I will wait.
My game developer instagram :
https://www.instagram.com/ben_dev_game/