Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 46    Views: 107

Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
07/12/12 09:15 AM (13 years ago)

Willing to pay for a video tutorial!

Hi I'm looking for someone who is will to create a video tutorial to show how to integrate AdMob into Android BT apps. My budget is $50 and I am happy for the video tutorial to be shared across the BT community to help others. Hit me up if interested!
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
07/12/12 09:29 AM (13 years ago)
Dragon There is already a video out there for android, Ravey made it
 
Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
like
07/12/12 09:37 AM (13 years ago)
Can you post link, haven't seen this.
 
Aaron636r
Aspiring developer
Profile
Posts: 246
Reg: Mar 08, 2011
California
3,160
like
07/12/12 09:49 AM (13 years ago)
??
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
07/12/12 10:02 AM (13 years ago)
 
Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
like
07/12/12 11:12 AM (13 years ago)
Ceerup I have just checked out the link and it wants me to sign up to video streaming site and it asked for my credit card details, this looks like a scam.
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
07/12/12 11:12 AM (13 years ago)
the link is legit, thats how i got my admob running
 
Stobe
buzztouch Evangelist
Profile
Posts: 1528
Reg: Mar 04, 2011
Fredericksburg,...
24,680
like
07/12/12 11:20 AM (13 years ago)
you may have inadvertently clicked on one of the various ads surrounding the video.
 
Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
like
07/12/12 11:21 AM (13 years ago)
I tried to download the video tutorial.
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
07/12/12 11:22 AM (13 years ago)
Ad supported site. Look at what you're clicking on! No download, just viewing.
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
07/12/12 11:22 AM (13 years ago)
dont download, just play the video
 
Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
like
07/13/12 06:30 AM (13 years ago)
The tutorial has caused over 100 errors that I don't know how to fix, this tutorial has completely ruined my project.
 
Stobe
buzztouch Evangelist
Profile
Posts: 1528
Reg: Mar 04, 2011
Fredericksburg,...
24,680
like
07/13/12 06:38 AM (13 years ago)
Did you follow my recommendations in Episode 4 of Buzzcast? :)
 
Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
like
07/13/12 06:46 AM (13 years ago)
Unaware!
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
07/13/12 06:56 AM (13 years ago)
Tutorial tested and used by many people with no problems. Suggest you follow it properly.
 
Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
like
07/13/12 09:00 AM (13 years ago)
Here are my errors: I have added this line of code from the video tutorial in my Manifest.xml: <activity android:name="com.google.ads.AdActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/> And get this error: string type not allowed at ('ConfigChanges' with value 'keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize'). Also in my BT_activity_base.java, I get these errors: I added this line of code: import com.taylorjones.Config; and get this error: The import com.taylorjones.Config cannot be resolved (I don't know how to fix) And finally I get an error when I had this code: // Create Admob View adView = new AdView|this AdSize.BANNER, Config.ADMOB_PUBLISHER_ID); Errors I get: cannot be resolved // Lookup LinearLayout LinearLayout layout = (LinearLayout)findViewById(R.id.admob_main); Errors I get: cannot be resolved or is not a field. I am not good with Ecplise therefore unable to fix. I have followed the video tutorial at least 5 times, starting from the beginning every time but it doesn't work for me.
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
07/13/12 09:54 AM (13 years ago)
<activity android:name="com.google.ads.AdActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/> ^ Change build level to api 13 as per video. and get this error: The import com.taylorjones.Config; cannot be resolved ^ Create Config.java file and add to project as per video. That should fix the other problems. Save work, do a Project > Clean - see if there are still any errors.
 
Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
like
07/13/12 10:34 AM (13 years ago)
should my Config file name be Config.java or Config java.java as this is what I saw in the video tutorial, confused. Plus not sure how to create a .java file on the mac.
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
07/13/12 10:41 AM (13 years ago)
Config.java - Where did you see Config java.java?!????!???!? No idea on a mac. Have you got some sort of notepad utility? Perhaps a mac user will know.
 
Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
like
07/13/12 10:45 AM (13 years ago)
I have a PC as well, will I have an option to save as a .java file in note pad?
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
07/13/12 11:04 AM (13 years ago)
yes, when you hit 'save' or 'save as' just save the file as Config.java - NOT Config.java.txt!!!!!!
 
Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
like
07/13/12 11:08 AM (13 years ago)
Ok manged to create a Config.java file, reduced many errors but still have two errors: // Create Admob View adView = new AdView|this AdSize.BANNER, Config.ADMOB_PUBLISHER_ID); Errors I get: I have red lines under 'new AdView|this' and 'BANNER' // Lookup LinearLayout LinearLayout layout = (LinearLayout)findViewById(R.id.admob_main); Errors I get: I have a red line under 'admob_main' Not sure how to fix these errors.
 
Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
like
07/13/12 11:11 AM (13 years ago)
I have two fixes available for my 'admob_main' error: These are: create field 'admob_main' in type id or Create constant 'admob_main' in type id Not sure which one.
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
07/13/12 11:13 AM (13 years ago)
hmmmm.... send your project over if you like. I'll take a look. Shouldn't get errors there. ** hold on, before doing that, if you hold your mouse pointer over the red line, a box should pop up offering solutions. Is the top solution asking you to import something? If it is, then just click on it. If that doesn't fix it, my email is paul9qr(at)btinternet(dot)com.
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
07/13/12 11:13 AM (13 years ago)
you'd done it while I was writing. Shouldn't get either of those. Don't know why you are. Send it over if you like.
 
Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
like
07/13/12 11:18 AM (13 years ago)
sending you my project now. Thanks for the help.
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
07/13/12 11:21 AM (13 years ago)
np
 
Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
like
07/13/12 11:38 AM (13 years ago)
did you get my project?
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
07/13/12 11:41 AM (13 years ago)
no
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
07/13/12 11:43 AM (13 years ago)
got it, it got spammed
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
07/13/12 11:49 AM (13 years ago)
That's built on a Mac. Can't do anything with that, sorry.
 
Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
like
07/13/12 12:06 PM (13 years ago)
just my luck!
 
Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
like
07/13/12 12:10 PM (13 years ago)
OK, I only have two errors the line that says: // Create Admob View adView = new AdView(this AdSize.BANNER, Config.ADMOB_PUBLISHER_ID); Error says: The construct AdView(Context, String) is undefined Then it offers me a quick fix, but then it wants me to make a change to the Config.java file. Not sure what to do?
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
07/13/12 12:28 PM (13 years ago)
yeah, sorry! There's a bunch of files in the project that just don't work on windows!
 
Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
like
07/13/12 12:34 PM (13 years ago)
I think I may have worked it out, I'll let you know if I do. Thanks anyway.
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
07/13/12 12:37 PM (13 years ago)
Have you added the code to the act_base.xml file, it's not in the one you sent me, unless it's in one of the files I can't read? I think you need someone with a mac to help. Ah well..
 
Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
like
07/13/12 01:10 PM (13 years ago)
Yes I have, but I have an error on the last line: </FrameLayout> Error reads: Multiple annotations found at this line: - error: Error parsing XML: mismatched tag - The element type "LinearLayout" must be terminated by the matching end-tag "</LinearLatout>" Not sure how to fix, don't get it.
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
07/13/12 01:42 PM (13 years ago)
That one's not so bad! Just need to close the linear layout: <LinearLayout android:id="@+id/admob_main" android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content"> </LinearLayout> <---------------- This bit You've probably missed to add it, or you put the code in a wrong place. Check the vid again. The framelayout wraps around everything, something like: <framelayout> <relative layout> </relative layout> <relative layout> </relative layout> <relative layout> </relative layout> <linearlayout> </linearlayout> </framelayout>
 
Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
like
07/13/12 02:30 PM (13 years ago)
Managed to get rid of all errors, but my app won't install. I have no idea why; I think I have had it for today, spent many hours on this today, will have to look at again during the weekend. Thanks for all the help.
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
07/13/12 03:13 PM (13 years ago)
haha! You'll never be a developer if you give up before 4am! Do you mean install on the emulator or a device? If you haven't already, try compiling the apk, it often sort of 'wakes up' eclipse and highlights errors that wern't showing. Also, before doing that, just go through the process of Project > Clean and Fix project properties and all that stuff, just to make sure the project is as clean as possible.
 
Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
like
07/13/12 04:39 PM (13 years ago)
Will do, let you know how I get on.
 
Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
like
07/15/12 06:57 AM (13 years ago)
Hi Raveyd cleaned my project, no errors but my app will not load. Also I mentioned previously that I have to add </LinearLayout> twice in my act_base.xml in order to get rid of the errors is this right or wrong? struggling!
 
Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
like
07/15/12 07:03 AM (13 years ago)
quick question, my Android handset that I use to test my apps is a Samsung Galaxy S2 and has Android 2.3.5 Does this mean that using Google 3.2 API for this app will not work on my handset, not sure.
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
07/15/12 07:29 AM (13 years ago)
It will work fine on your handset, no problem with that. I'm thinking you might have just messed up the xml file a little bit. I'd love to take a look if I could, I'm sure you're just a small step away from getting it running. Maybe start a new post and ask someone with a mac to check out your project. I'm sure GoNorthWest would take a look if you asked nicely! Maybe drop him a pm instead of starting a new post?
 
Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
like
07/15/12 10:05 AM (13 years ago)
Hi Raveyd I have made some progress with the integartion of the AdMob framework into Android App, going down a different route. However when I launch the app on my device I get an ad banner box that says: You must have AdActivity declared in AndroidManifest.xml with configChanges. I already have this line added: <activity android:name="com.google.ads.AdActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/> But I had to take out: (|screenLayout|uiMode|screenSize|smallestScreenSize) just to get rid of one error against that line of code. Do you know how I can fix?
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
07/15/12 10:51 AM (13 years ago)
Yes, that's where you change the build level to google api 13 (right click project > properties > Android > Tick Google api level 13). Admob needs api 13+ to run. Once you change that, you can add the full config changes to the manifest: <activity android:name="com.google.ads.AdActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/>
 
Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
like
07/15/12 03:29 PM (13 years ago)
Thanks, finally got there. Can't believe how long this process taken me and it actually was very simple in the end. Anyway thanks for all your help!
 

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.