0 Members and 1 Guest are viewing this topic.
... if(Build.VERSION.SDK_INT >= 12) { mJoystickHandler = new SDLJoystickHandler_API12(); } else { mJoystickHandler = new SDLJoystickHandler(); } mLayout = new AbsoluteLayout(this); mLayout.addView(mSurface); // Create a banner ad. The ad size and ad unit ID must be set before calling loadAd. mAdView = new AdView(this); mAdView.setAdSize(AdSize.BANNER); mAdView.setAdUnitId("adunitid"); // Create an ad request. AdRequest.Builder adRequestBuilder = new AdRequest.Builder(); // Optionally populate the ad request builder. adRequestBuilder.addTestDevice(AdRequest.DEVICE_ID_EMULATOR); // Add the AdView to the view hierarchy. mLayout.addView(mAdView); // Start loading the ad. mAdView.loadAd(adRequestBuilder.build()); setContentView(mLayout);
..public class SDLActivity extends Activity { private static final String TAG = "SDL"; private AdView mAdView;
import com.google.android.gms.ads.AdRequest;import com.google.android.gms.ads.AdView;import com.google.android.gms.ads.MobileAds;import com.google.android.gms.ads.*;
How were you earning money? From ads? Or did people just stop buying your games or something? I forgot if they were all free or not. It's nice you managed to earn this much, though.
AdView adView = new AdView(this);adView.setAdUnitId(myid);adView.setAdSize(AdSize.BANNER);AdRequest adRequest = new AdRequest.Builder().addTestDevice(AdRequest.DEVICE_ID_EMULATOR).build();RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams( RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT);params.addRule(RelativeLayout.ALIGN_PARENT_TOP);params.addRule(RelativeLayout.CENTER_HORIZONTAL);adView.loadAd(adRequest);adView.setBackgroundColor(Color.TRANSPARENT); mLayout.addView(adView, params);
nice. glad to hear you could fix it how much do you expect to make per month (now after its fixed)?
I also wonder if EasyRPG can be bundled with games that are ported to Android or if it's just an emulator where you select an RPG Maker game, because it would be nice if I could release my game on Android when finished and maybe put ads in it
I'm very late @gameblabla but you should feel glad that you earned $100 a month or might earn $12, because the max I made from music in my peak years was around $60 in a month and I sometimes make less than that in an entire year (although now it kinda went up again). And of course, it's actually less than $60 for sure because it costed me about $105 a year to keep three of my albums on iTunes/Spotify/etc before I pulled them out.