Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 19    Views: 234

Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
08/08/12 11:50 PM (13 years ago)

Latest Revmob tutorial for Android BT version 1.5 and 2.0

Hello friends, I have prepared a pdf tutorial as suggested by @Mr stuck. I am extremely sorry that i could not come up with this tutorial earlier. You all can find Revmob tutorial for latest version 3.4.3 - which was released on 2012/08/03 in the following link. I will try to keep this document updated with the latest code for the latest sdk to avoid confusion. Hope this proves useful to all of you guys. Dropbox Link: https://dl.dropbox.com/u/61663890/Revmob%20Tutorial%20for%20BT%20Android%20Apps.pdf
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
08/09/12 07:46 AM (13 years ago)
Excellent, will add link to it in MySkylla Fred
 
elaine
buzztouch Evangelist
Profile
Posts: 385
Reg: Dec 26, 2010
Ireland
3,850
like
09/28/12 01:34 PM (13 years ago)
Wow thanks Sandeep you're a legend! Elaine
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
09/29/12 06:39 AM (13 years ago)
Hi Elaine, Thanks that you appreciate my work. BT community has given me a lot so i decided to give some knowledge which i possess back to the community members. Well i have few video tuts as well for setting airpush sdk and startapp sdk in android apps. You would like to have a look at those videos too. Specially i recommend start app to monetize your android apps. Startapp: http://www.youtube.com/watch?v=93o8qb0Vglw&feature=plcp Airpush: https://www.youtube.com/watch?v=jmsosb_12r0&feature=plcp
 
elaine
buzztouch Evangelist
Profile
Posts: 385
Reg: Dec 26, 2010
Ireland
3,850
like
09/29/12 07:01 AM (13 years ago)
Brilliant thank you :) Just about finished installing the latest Eclipse on my PC, starting work on the first app on Sunday, fingers crossed it'll be live on Tuesday. Thanks again. Startapp looks very interesting BTW. Elaine.
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
09/29/12 07:18 AM (13 years ago)
All the best.
 
elaine
buzztouch Evangelist
Profile
Posts: 385
Reg: Dec 26, 2010
Ireland
3,850
like
10/01/12 11:15 AM (13 years ago)
Thanks Sandeep. It's driving me mad currently :) Two issues. I download the source code from buzztouch, import it into Eclipse & try to integrate revmob. I usually end up getting errors from Eclipse and I abandon it to try again with a new version of the code I downloaded from Buzztouch. I import a new unzipped file from BT to Eclipse, but the code shows the incorrect updates I made trying to get revmob to work in my other Eclipse file (which lives in a different folder on my PC). I have tried changing the application name & project name in buzztouch before I download it, but when I open it in eclipse its still showing the old versions of the files I was trying to edit. Aaaggh!! :) Revmob - not going very well.. following instructions but every time nearly I put in the code, I start to get errors. Then Eclipse won't let me build due to these errors. :( This is with revmob 4.2.3, not sure if they've changed much since early Sep, but I suspect it's just me :D Anyway - if you had any ideas on point 1 above, that'd be great & I can try a few more times :) Thanks again! Elaine
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
10/01/12 11:22 AM (13 years ago)
HI Elaine, I dont know why are you getting errors in your project file that you download from the BT cp. Well as per my experience Revmob keep changing the sdk once or twice every week so there might be some changes in the code which can be found on the documentation section of their website. Right now its nearly midnight here and i might go to bed in next half an hour. But if you still get errors you can send me the project file so that i can have a look at it and fix the errors first thing tomorrow morning. My email add- sandeepkurne (at) gmail (dot) com
 
elaine
buzztouch Evangelist
Profile
Posts: 385
Reg: Dec 26, 2010
Ireland
3,850
like
10/01/12 11:29 AM (13 years ago)
Thanks Sandeep :) I've emailed them so will try to figure it out a bit more :) Thanks again, Elaine.
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
10/01/12 11:30 AM (13 years ago)
You are getting the errors in the bt project file before adding revmob codes or after adding it?
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
10/01/12 11:31 AM (13 years ago)
If you are getting the error codes before adding the revmob codes then revmob wont be able to help you in sorting out the problem.
 
elaine
buzztouch Evangelist
Profile
Posts: 385
Reg: Dec 26, 2010
Ireland
3,850
like
10/01/12 11:36 AM (13 years ago)
Hiya :) I get errors after adding revmob :) Most of it is ok though. I followed the revmob instructions but it all goes off the rails at the very end & I get errors, when I add the code below to the file: "BT_activity_base_java". I add this code to the 3rd line in this file, directly under the "package com.appname;" text. import android.app.Activity; import com.revmob.RevMob; public class Main extends Activity { // Just replace the ID below with your appID. private static String APPLICATION_ID = "4f56aa6e3dc441000e005a20"; private RevMob revmob; public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); // Starting RevMob session revmob = RevMob.start(this, APPLICATION_ID); revmob.showFullscreenAd(this); } }
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
10/01/12 11:43 AM (13 years ago)
The above code is correct. Did you put the required code in the onCreate method as well?
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
10/01/12 11:46 AM (13 years ago)
Sorry over looked the codes. Its perfectly set by you. Wait i will check if there is new sdk released with new documentation for it.
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
10/01/12 11:54 AM (13 years ago)
I just checked the revmob documentation for android apps. Though they have updated the sdk they have kept the codes for full screen ads the same as earlier which is in the above linked tutorial. So this should work perfectly. But if you keep getting errors then dont hesitate to send me the project file, i will to set this and tell you what changes i have made in those files.
 
elaine
buzztouch Evangelist
Profile
Posts: 385
Reg: Dec 26, 2010
Ireland
3,850
like
10/01/12 12:10 PM (13 years ago)
Thanks Sandeep :) What I did.... :) I put in the following code in the androidmanifest.xml file which is the in root of the main project folder. This line of code didn't seem to be in the buzztouch file I downloaded. <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/> I added these 2 lines to the same file just before the end of the end application tag: <activity android:name="com.revmob.ads.fullscreen.FullscreenActivity" android:configChanges="keyboardHidden|orientation" ></activity> <!-- THE NEXT LINE IS ONLY USED IF MAPS ARE USED --> <uses-library android:name="com.google.android.maps"/> </application> I created a 'libs' folder, drag & dropped in the jar file & then built a path as per revmob website instructions. Then I went into the "BT_activity_base_java" file & added this code to the 3rd line in this file, directly under the "package com.appname;" text. import android.app.Activity; import com.revmob.RevMob; public class Main extends Activity { // Just replace the ID below with your appID. private static String APPLICATION_ID = "4f56aa6e3dc441000e005a20"; private RevMob revmob; public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); // Starting RevMob session revmob = RevMob.start(this, APPLICATION_ID); revmob.showFullscreenAd(this); } } Then I got errors in Eclipse. Will try again tomorrow, thanks for your help :) Elaine.
 
elaine
buzztouch Evangelist
Profile
Posts: 385
Reg: Dec 26, 2010
Ireland
3,850
like
10/01/12 12:13 PM (13 years ago)
Thanks Sandeep :) What I did.... :) I put in the following code in the androidmanifest.xml file which is the in root of the main project folder. This line of code didn't seem to be in the buzztouch file I downloaded. <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/> I added these 2 lines to the same file just before the end of the end application tag: <activity android:name="com.revmob.ads.fullscreen.FullscreenActivity" android:configChanges="keyboardHidden|orientation" ></activity> <!-- THE NEXT LINE IS ONLY USED IF MAPS ARE USED --> <uses-library android:name="com.google.android.maps"/> </application> I created a 'libs' folder, drag & dropped in the jar file & then built a path as per revmob website instructions. Then I went into the "BT_activity_base_java" file & added this code to the 3rd line in this file, directly under the "package com.appname;" text. import android.app.Activity; import com.revmob.RevMob; public class Main extends Activity { // Just replace the ID below with your appID. private static String APPLICATION_ID = "4f56aa6e3dc441000e005a20"; private RevMob revmob; public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); // Starting RevMob session revmob = RevMob.start(this, APPLICATION_ID); revmob.showFullscreenAd(this); } } Then I got errors in Eclipse. Will try again tomorrow, thanks for your help :) Elaine.
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
10/01/12 12:14 PM (13 years ago)
Ok, you have done everything perfectly. Dont know still why you ar getting the error. Might be putting the logcat error code help in understanding the cause of it. Well keep me informed about your progress.
 
elaine
buzztouch Evangelist
Profile
Posts: 385
Reg: Dec 26, 2010
Ireland
3,850
like
10/01/12 12:14 PM (13 years ago)
Here is the start of the file : BT_activity_base.java (see the text at the end of this post after the straight line) I get an error on this line: public class Main extends Activity { The error says: Multiple markers at this line - Syntax error on token(s), misplaced construct(s) - The public type Main must be defined in its own file I get another error in this field: setContentView(R.layout.main); The error says 'Main cannot be resolved or is not a field'. Thanks :) Elaine. _________________________________________ /* * Copyright 2011, David Book, buzztouch.com */ package com.horsesayings1; import android.app.Activity; import com.revmob.RevMob; public class Main extends Activity { // Just replace the ID below with your appID. private static String APPLICATION_ID = "5069b372aa8e120c0000009d"; private RevMob revmob; public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); // Starting RevMob session revmob = RevMob.start(this, APPLICATION_ID); revmob.showFullscreenAd(this); } }
 
elaine
buzztouch Evangelist
Profile
Posts: 385
Reg: Dec 26, 2010
Ireland
3,850
like
10/04/12 08:49 AM (13 years ago)
 

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.