Discussion Forums  >  RevMob Integration

Replies: 5    Views: 2119

Alex@TM
Apple Fan
Profile
Posts: 956
Reg: Dec 20, 2011
London, UK
10,560
08/11/13 12:59 PM (12 years ago)

Has anyone successfully implimented RevMob into Android???

So there is lots of talk on here about sdk this, integration that. All good if, 1) it works and 2) there are clear guidelines! I am new to Android, i'll admit. That said, I'm trying to follow pretty simple instructions for RevMob into Android. 1. Add permissions - most already there CHECK <!-- Required --> <uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/> <uses-permission android:name="android.permission.READ_PHONE_STATE"/> The others are optional, but we highly recommend to increase the eCPM. <!-- Strongly recommended --> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> 2. Add the JAR to the lib folder and add to build path - CHECK 3. Add some code to start the session: NOT CHECK - NOTHING BUT ERRORS. import android.os.Bundle; import android.app.Activity; import android.view.View; import com.revmob.RevMob; public class YourMainActivity extends Activity { private static final String REVMOB_APP_ID = "copy your RevMob App ID here"; private RevMob revmob; public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); // Starting RevMob session revmob = RevMob.start(this, REVMOB_APP_ID); } } 4. Add Fullscreen - DONT EVEN GET THIS FAR! <application> <activity android:name="com.revmob.ads.fullscreen.FullscreenActivity" android:configChanges="keyboardHidden|orientation"> </activity> </application> Then, just call the showFullscreen method: public class YourActivity extends Activity { public void onResume(Bundle savedInstanceState) { super.onResume(savedInstanceState); setContentView(R.layout.activity_main); RevMob revmob = RevMob.start(this, REVMOB_APP_ID); revmob.showFullscreen(this); } } As you can see, what looks like very simple code but i'm done! Getting RevMob on iOS was a doddle, i'm finding Android much more of a challenge! Anyone that has manged simple full screen ads on Android implementation would be an enormous help to me if they could spare me some time please? Many thanks Alex
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
08/11/13 01:38 PM (12 years ago)
I have a BT android app with revmob for the full page ads but I didn't use them for banner ads, it didn't work so I went with admob. You can see it in action here https://play.google.com/store/apps/details?id=com.f1droid&hl=en I used this thread to guide me - there is a tutorial here http://www.buzztouch.com/forum/thread.php?tid=E0AA8E4CF96603A0BAF35E4&currentPage=2 Alan
 
markpouncey
Veteran developer
Profile
Posts: 11
Reg: Jun 11, 2013
Atlanta
10,610
like
08/11/13 01:46 PM (12 years ago)
Howdy-- here's this: "http://sdk.revmob.com/buzztouch" && hope it helps && kind regards, mark-p.
 
cicanci
Code is Art
Profile
Posts: 7
Reg: Jul 25, 2013
Sao Paulo
70
like
08/12/13 12:22 PM (12 years ago)
Hi Alex! This is the most simple code that you can add in your onCreate() method and make it work, after add the revmob.jar: 1) Add the import to your activity: import com.revmob.RevMob; 2) Add the code below in the onCreate() method and replace the YOUR_REVMOB_ID for you ID: RevMob revmob = RevMob.start(this, "YOUR_REVMOB_ID"); revmob.showFullscreen(this); It's simple as that if you want just show a fullscreen ad when the user opens your app. You can also check out our sample app: https://github.com/RevMob/RevMob-BuzzTouch-Sample Hope this helps! Let me know if you have any doubt. Cheers!
 
Alex@TM
Apple Fan
Profile
Posts: 956
Reg: Dec 20, 2011
London, UK
10,560
like
08/12/13 03:31 PM (12 years ago)
Hi @Cicanci! Many thanks for your response. Forgive me, I am very much an iOS man fumbling to get to grips with Android! I have done as you say. Should test versions of the ads be showing? It was very simple to incorporate top a non BT iOS App that I created and test ads ran as soon as it was incorporated. I'm running an old HTC on 2.2 - Not only do test ads not show but it also appears to be interfering with the plugin I'm using, the voice notes plugin. Thanks!
 
cicanci
Code is Art
Profile
Posts: 7
Reg: Jul 25, 2013
Sao Paulo
70
like
08/13/13 06:54 AM (12 years ago)
Hi Alex, Do you got any error message in android's log? What's the BT class and method that you added the RevMob code? Also, can you add the following line and post here the output, please? revmob.printEnvironmentInformation(this); Cheers!
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.