Autor Tema: PixTudio + Admob  (Leído 737 veces)

Grew

  • Full Member
  • ***
  • Mensajes: 123
  • Karma: 3
PixTudio + Admob
« en: Julio 22, 2016, 04:27:02 pm »


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

  • Hero Member
  • *****
  • Mensajes: 1990
  • Karma: 256
Re:PixTudio + Admob
« Respuesta #1 en: Julio 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..
« última modificación: Julio 22, 2016, 11:13:49 pm por l1nk3rn3l »

Grew

  • Full Member
  • ***
  • Mensajes: 123
  • Karma: 3
Re:PixTudio + Admob
« Respuesta #2 en: Julio 23, 2016, 09:29:53 am »
Thank you l1nk3rn3l ! I will try it today.  :)
My game developer instagram :
https://www.instagram.com/ben_dev_game/

Grew

  • Full Member
  • ***
  • Mensajes: 123
  • Karma: 3
Re:PixTudio + Admob
« Respuesta #3 en: Julio 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 !
My game developer instagram :
https://www.instagram.com/ben_dev_game/

l1nk3rn3l

  • Hero Member
  • *****
  • Mensajes: 1990
  • Karma: 256
Re:PixTudio + Admob
« Respuesta #4 en: Julio 24, 2016, 03:09:00 pm »


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

Grew

  • Full Member
  • ***
  • Mensajes: 123
  • Karma: 3
Re:PixTudio + Admob
« Respuesta #5 en: Julio 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 :

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

l1nk3rn3l

  • Hero Member
  • *****
  • Mensajes: 1990
  • Karma: 256
Re:PixTudio + Admob
« Respuesta #6 en: Julio 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...

Grew

  • Full Member
  • ***
  • Mensajes: 123
  • Karma: 3
Re:PixTudio + Admob
« Respuesta #7 en: Julio 25, 2016, 08:32:17 pm »
Ok nice ! Thank you :D ! I will wait.
My game developer instagram :
https://www.instagram.com/ben_dev_game/