Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 42    Views: 209

Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
03/15/12 08:54 AM (13 years ago)

BTv1.5 Android - Leadbolt Content Locker 3 minute install

... Ok, it's 3 minutes 14 seconds - 3 minutes sounds better... This is a guide to adding a Leadbolt content locker to a Custom HTML screen. It should work in any activity, but some adjustments MIGHT need to be made. Adding ''Supports screens" to the manifest MIGHT cause issues with some screens. Check your app thoroughly afterwards. This guide is for apps with NO modifications done to them. Other SDK's, code modification etc may, or may not, have an adverse effect. Download Cheat Sheet: ... Watch Video: ... Copy. Attention! Turn the sound down if you don't like (Very) Old Skool Happy Hardcore :)
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
03/15/12 09:50 AM (13 years ago)
You are awesome!! Thanks a LOT :) All I got were errors.. Android gives me the biggest headaches lol. ps. Nice music :)
 
Marko
buzztouch Evangelist
Profile
Posts: 558
Reg: May 04, 2011
UK, Alcester
8,880
like
03/15/12 09:51 AM (13 years ago)
What is Leadbolt content Locker (PS is this where you store your head like Wurzel gummage when you change to melon (very UK) content)
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
03/15/12 09:53 AM (13 years ago)
no problem! everything about android gives me a headache! Have you tried it yet? There shouldn't be any problems (haha!) but post back if you have any.
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
03/15/12 09:55 AM (13 years ago)
lol! you make me grin.. Leadbolt is the best paying mobile ad network. Bit tricky to set up using their guide, but worth it.
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
03/15/12 09:55 AM (13 years ago)
I haven't tried it yet, I'm watching the video again along with Eclipse. I'll post back
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
03/15/12 09:56 AM (13 years ago)
ok, glad you like the music :)
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
03/15/12 09:58 AM (13 years ago)
damn these double posts! Note to self: STOP REFRESHING!
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
03/15/12 10:28 AM (13 years ago)
All was fine up until I compiled and cleaned.. I get an error here: final Activity act = this; Not sure why, I followed everything. Hmm I set it up exactly the same, exact lines and everything. I'm using BT 1.5. ibuprofen needed :)
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
03/15/12 11:02 AM (13 years ago)
i've checked the leadbolt manual as well. However, I dont' understand why I have an error: http://dl.dropbox.com/u/3222229/Screen%20shot%202012-03-15%20at%207.00.55%20PM.png
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
03/15/12 12:07 PM (13 years ago)
That's ok. you're just missing an Activity import. Hover over the red squiggle and it'll state something like: ''Import 'Activity' (android app)'', or just copy this into the imports: import android.app.Activity; Pretty sure that was already in my app, it's not leadbolt code.. Then again, maybe not, it is Java after all... Perhaps you've cleaned out unused imports previously?
 
Stefan
buzztouch Evangelist
Profile
Posts: 558
Reg: Dec 21, 2010
Sweden
14,780
like
03/15/12 01:21 PM (13 years ago)
Leadbolt implementation tutorial for IOS sucks big time. Making a grown man cry kind of ;) But I wont give up BR/Stefan
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
03/15/12 01:33 PM (13 years ago)
Wow that took a while! Thanks for the suggestions, I did finally import the Activity and later had more errors. I found the solution via Stackoverflow. I had to remove all of the jars from the javapath and fix via properties.. I wonder if it clashed with the Airpush SDK? Who knows, but thanks again :) @Stefan -- Yeah, the documentation is not very straightforward, even after a few beers
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
03/15/12 01:45 PM (13 years ago)
Can you replicate the errors you had after importing the activity and post them? Interested, that's all. Doesn't matter if you can't. I've had airpush, leadbolt and admob running in the same apps with no problems. I guess all bets are off when a number of different 3rd party sdk's are being used in the same app. Anything might happen!
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
03/15/12 02:52 PM (13 years ago)
Yes, I will do it tomorrow. I'll report back as I'll be adding it to all of my android apps.
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
03/15/12 03:26 PM (13 years ago)
Excellent!
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
03/16/12 01:37 PM (13 years ago)
Back again! I was able to recreate the problem. It seems that I needed to import the activity code. I'm using a mac, if that matters. But I'm happy to report that I have received clicks! I added it without looking at the video! Thanks again
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
03/16/12 04:14 PM (13 years ago)
Weird about the activity code. Every one of my apps has that import by default. Never mind, was an easy fix. Great you've got some clicks already! Onwards and upwards!
 
Johnson67
Lost but trying
Profile
Posts: 2
Reg: Jan 09, 2012
Earth
2,170
like
04/24/12 02:40 AM (13 years ago)
Hey, The Putlocker site states that the video file is no longer available. Is it available at any other location? Trying to work this out to integrate into my app, thanks!
 
Johnson67
Lost but trying
Profile
Posts: 2
Reg: Jan 09, 2012
Earth
2,170
like
04/24/12 03:37 AM (13 years ago)
Duplicate post, sorry, can't see how to delete
 
Mike the App Guy
Lost but trying
Profile
Posts: 435
Reg: Sep 19, 2011
Birmingham, Ala...
5,900
like
05/20/12 05:23 AM (13 years ago)
Yeah, I'm getting the same message, hope raveyd can get it up soon.
 
Mike the App Guy
Lost but trying
Profile
Posts: 435
Reg: Sep 19, 2011
Birmingham, Ala...
5,900
like
05/20/12 03:23 PM (13 years ago)
Yeah, I'm getting the same message, hope raveyd can get it up soon.
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
05/20/12 03:49 PM (13 years ago)
My apologies for the video. I think it's probably been removed from lack of views. Back up video? Nope... The cheat sheet should be enough to get it integrated as it's all commented. Post on here if you have any problems. I'll try and get some screen shots up.
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
06/02/12 02:33 PM (13 years ago)
hey, i signed up for leadbolt, i added "new app" wheres the sdk? i looked all over the leadbolt site.
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
06/02/12 02:43 PM (13 years ago)
Hey ceerup, go to the "Help/FAQ's" tab, then the "App Developer SDK and FAQs" tab, then the "How to add LeadBolt SDK to your Android app" link, then the "Click here to download the latest Leadbolt Android SDK" link.
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
06/02/12 02:44 PM (13 years ago)
thank you ravey!
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
06/02/12 02:47 PM (13 years ago)
No problem mate. Sorry the video in this thread is gone. Can't believe I didn't make a backup. Doh!
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
06/02/12 02:50 PM (13 years ago)
its okay, one more question, where can i find my leadbolt locker id? is it the thing at the top where it says Welcome [email protected] (ID: 8 DIGITS)
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
06/02/12 03:12 PM (13 years ago)
No. When you create an ad, when you save it you'll get the locker id then.
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
06/02/12 03:12 PM (13 years ago)
ohhh ok
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
06/02/12 03:15 PM (13 years ago)
can i just use the html ads? and paste it in my html docs?
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
06/02/12 03:24 PM (13 years ago)
Yeah, they have that option, I think they call it an App Banner.
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
06/02/12 03:26 PM (13 years ago)
that might be the easiest option lol
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
06/02/12 03:30 PM (13 years ago)
Easiest isn't always best! Know what you mean though, leadbolt's not an easy integration.
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
06/02/12 03:31 PM (13 years ago)
well i figure i already have admob in there at the top of the screens, so i put leadbolt html at the bottom...its not showing up though..so im not sure what to do yet..and why its not showing in the html doc
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
06/02/12 03:57 PM (13 years ago)
hmmm... don't know, never used the html option. I expect there's javascript in the code, calling up an external library, so that might be an issue? Have you tried it using the custom url plugin and linking to an online webpage? Might have something to do with http? Have you got the correct mobile meta data in the head of the document?
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
06/02/12 04:01 PM (13 years ago)
i think maybe cause i didnt activate it yet, it says app pending approval?
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
06/02/12 04:07 PM (13 years ago)
Right. It will take a while for first approval, maybe an hour or so, but it's usually within 20 minutes for subsequent ads. You'll get an email confirmation.
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
06/02/12 04:12 PM (13 years ago)
thanks ravey ill keep you up to date
 
Mike the App Guy
Lost but trying
Profile
Posts: 435
Reg: Sep 19, 2011
Birmingham, Ala...
5,900
like
06/02/12 04:32 PM (13 years ago)
I did the html banner, it is easy to do. It is just a script tag. Problem is when someone clicks the ad, it can't open.
 
Mike the App Guy
Lost but trying
Profile
Posts: 435
Reg: Sep 19, 2011
Birmingham, Ala...
5,900
like
06/02/12 04:40 PM (13 years ago)
Here's the specific html code you're supposed to put in your HTML pages: <script type="text/javascript" src="http://ad.leadboltads.net/show_app_ad.js?section_id=*********"></script> The stars are your specific ad number from after your app gets approved. It's a unique number for each app. The error message that happens when someone clicks an ad is this (I tested from my wife's phone to see how it would work): Something's not right Error loading screen? The application had trouble understanding what to display I'm wondering if it's an issue with the script type = text/javascript Any suggestions?
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
06/02/12 07:12 PM (13 years ago)
Daniel, howd you enter it, you just put the script like that into an html doc? custom html screen? Hopefully i can help
 
Mike the App Guy
Lost but trying
Profile
Posts: 435
Reg: Sep 19, 2011
Birmingham, Ala...
5,900
like
06/02/12 07:21 PM (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.