Discussion Forums  >  RevMob Integration

Replies: 10    Views: 134

piggilypoo
Aspiring developer
Profile
Posts: 172
Reg: Jun 28, 2011
San Diego
5,120
09/15/13 10:58 PM (12 years ago)

How to integrate RevMob into 3.0?

I tried these steps: 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); but when I add the code in step 2, I get an error saying its not applicable. I'm using android core 3.0
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
09/16/13 06:42 AM (12 years ago)
Hi @piggilypoo, @Sandeep created a great tutorial for this in the "How To's" section here @buzztouch. http://www.buzztouch.com/files/howtos/New%20Admob%20integration%20for%20Android.pdf LA
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
09/16/13 08:04 AM (12 years ago)
@LA that is a different solution and works differently than RevMob. What is your error exactly? Have you added the code to screen/java class or to the BT_activity_host.java ? This is how it works. 1. Add the import com.revmob.RevMob; into the class 2. Add this above activity life-cycle events. private static String APPLICATION_ID = "YOURAPPID"; private RevMob revmob; 3. Add this in the onCreate method revmob = RevMob.start(this, APPLICATION_ID); revmob.showFullscreen(this); You shouldn't have any errors.
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
09/16/13 08:29 AM (12 years ago)
Yeah sorry @mysps. I thought I read admob lol. I have not done RevMob so I would have to look into it. There a SDK, you have to download and import? LA
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
09/16/13 08:58 AM (12 years ago)
No prob LA, I make the same mistake at times going too fast lol Yes there is a sdk sign up here: .revmobmobileadnetwork.com and the sdk is here: sdk.revmobmobileadnetwork.com
 
cicanci
Code is Art
Profile
Posts: 7
Reg: Jul 25, 2013
Sao Paulo
70
like
09/16/13 09:37 AM (12 years ago)
Hello @piggilypoo, are you still having trouble? Can you post the log error messages? Best, RevMob SDK Team
 
piggilypoo
Aspiring developer
Profile
Posts: 172
Reg: Jun 28, 2011
San Diego
5,120
like
09/16/13 08:39 PM (12 years ago)
@mysps thanks! Your solution worked perfectly. Still getting used to the way the new core is setup
 
piggilypoo
Aspiring developer
Profile
Posts: 172
Reg: Jun 28, 2011
San Diego
5,120
like
09/17/13 08:56 AM (12 years ago)
Using the method mysps posted gets the ads displaying, which was my main problem, but now I have another issue. When opening up the app, full screen ads are displayed twice back to back. Some users are also reporting getting multiple full screen ads in a short time. in the previous android core, you could just add the revmob code to the Java code of the screen you wanted it to be displayed on. However, in 3.0 it seems everything is a container in the activity host file, so the same method doesn't work. is there a way to get ads to only display on one screen type, like cudtomHTML screen for example? Or at least prevent ads from popping up so frequently? thanks
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
09/17/13 09:32 AM (12 years ago)
do the exact same. i actually use revmob in the button menu using the same process. have you tried?
 
piggilypoo
Aspiring developer
Profile
Posts: 172
Reg: Jun 28, 2011
San Diego
5,120
like
09/19/13 04:21 PM (12 years ago)
mysps, the code you gave doesn't seem to work for any of the screens except activity_host.java When I put: revmob = RevMob.start(this, APPLICATION_ID); revmob.showFullscreen(this); After the onCreateView, i get an error that says: The method start(Activity, String) in the type RevMob is not applicable for arguments (screen type name here)
 
cicanci
Code is Art
Profile
Posts: 7
Reg: Jul 25, 2013
Sao Paulo
70
like
09/26/13 09:28 AM (12 years ago)
Hello there, If you are using the latest RevMob SDK for Android (http://sdk.revmobmobileadnetwork.com/android) you can call the start method this way: Add this to your AndroidManifest.xml: <meta-data android:name="com.revmob.app.id" android:value="YOUR_REVMOB_ID_HERE"/> Then, call the method: RevMob revmob = RevMob.start(this); revmob.showFullscreen(this); I did this with BT 3.0 in the BT_activity_start (onCreate() method) and it works perfectly. Don't you forget to add the fullscreen activity in the AndroidManifest.xml as well: <activity android:name="com.revmob.ads.fullscreen.FullscreenActivity" android:configChanges="keyboardHidden|orientation" android:theme="@android:style/Theme.Translucent"></activity> Best, Bruno Cicanci - SDK Developer
 

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.