Implementing AdMob in RoboVM via MoPub

UPDATED November 29th, 2014: Should work with LibGDX 1.X.X

RoboVM is an amazing free framework for writing iOS Applications in Java. I built an app with LibGDX, which ties into RoboVM last week. I don’t feel that it is worth charging for, so I wanted to make it ad-supported. In order to do this, I needed to implement a native library from MoPub, a ad mediation network. I had a couple kinks, but I successfully implemented AdMob/MoPub, in both iOS and Android, and I want to share how I did it.

If you are only putting ads in a iOS app, only follow the steps labeled [iOS], or if you are doing only an Android app, follow the [Android] tag. Obviously, if you are making an app for both platforms, do everything.

Creating Your Project

Make sure before you start, to follow the LibGDK Wiki on how to Create a Project. This will get you started with a LibGDX project. Then make sure to Import your Project Into Eclipse.

Getting Our Resources

Started out by downloading the [iOS] RoboVM Bindings and the [Android] Full MoPub SDK.

RoboVM bindings are basically “bridges” between the native iOS Objective-C and the sudo Objective-C Java RoboVM. This jar implements the Full MoPub iOS SDK, which allows us to get banners natively on iOS without writing a single line of Objective-C.

Read More →

Learn From Your Successes

“Learn from your mistakes” is a common saying heard throughout life. You probably first heard it from a parent, but chances are you also hear it from friends, coworkers, or teachers at least once a month. It is a great idea, make something that was a bad choice worthwhile, as if you are walking at night, and that mistake lights a part of the path, no matter how faint the light, it helps you stay on course.

However mistakes are not the only place one can learn from. It surprises me that mistakes are so often seen by society as the best way to learn, while successes do not seem to be highlighted as much. Success is the ultimate goal of any project, product, objective, or idea. Although “success” my be abstract, you know when you achieve it, and know how to succeed next time.

Being able to learn to not do something is great, but to learn how something is done is way better, and more efficient. For example when I try to memorize my name, I know the first letter is S, but if I only knew what the first letter was not, I would have to memorize a whole lot more. This idea of learning from success, not just from failure is not new, but it should be seen more equal, to learning from mistakes.

Collecting Emails: The Elegant Way. With MailChimp

I am starting on a new project called Ficte (edit 2016: now defunct) which will be a place to read and write short stories, poems, and other forms of creative writing.

In order to promote Ficte, I needed a splash page with a feature list, and a form to receive emails of people who are interested. I did not really want to go write a large back-end for this, so I went to MailChimp (Disclaimer: Referral), which, to my surprise, was a free service for people who have a small amount of subscribers. I jumped on this, and went through the steps to setup a list. When I got to connecting my list with my splash page, I got a great (sarcasm) copy-and-paste form which when submitted, directed to MailChimp to confirm the subscription. This is something I did not like, so I caved on my idea of no back-end, and wrote a simple Express app (which I will use for the rest of Ficte); This is how I did it.

Read More →

Progression of My View on the Meaning of Life

Throughout my life, I have thought a lot about the ultimate question “What is the answer to life, the universe and everything?”, or just “What is the meaning of life?” In my time alive, I have changed my point of view many times. From being a religious person, and praying often, to being a complete atheist, and nihilist, to coming up with my own perspective based on my past experiences, and ideas. Here is my perspective over time.

Read More →

previous. next.