Thank you for the information.
I would have expected the ads to show. Can you run your program with the option Project - Attach Debugger and without this option and see if it makes any difference?
Hi,
(please see "One last addition" near bottom before you spend time reading all this. I may have been led to the solution.)
I have attached an image showing three screenshots showing the bottom of my app running on the emulator. The top two show screenshots of the app running on beta 1.42, first with the debugger attached, second with the debugger not attached (in IDE menu, Project-Attached Debugger checked/unchecked). The third shows a screenshot of my app running on the emulator using version 1.3 of B4A.
Running using the bridge and phone produces similar results.
Note that the third screenshot shows the test Admob ad while the top two screenshots do not. I waited about 2 1/2 min. for the ad to show up before taking each of the top two screenshots. For the third screenshot the ad showed up about 2 seconds after my app launched.
A little about my test environment:
I am using two almost identical laptops, call them L4 and L5. They run Windows 7 Home Premium.
L5 is my development system. It is running version 1.3 of B4A.
L4 is my second development system (mainly for Xilinx FPGAs). I put the B4A beta on this laptop just to be sure it was isolated from 1.3.
First I installed the beta 1.42, then I copied the "android-sdk-windows" directory from L5 to L4. I copied the few additional libraries from L5 to L4, then I copied my app directory from L5 to L4. I configured the paths and license for 1.42 on L4, and a default Vibrant emulator (Android 2.1-update 1 API level 7, WVGA800, 240 dpi).
The app software is identical between L4 and L5. On L4, in the beta 1.42, I compiled and ran on the Vibrant emulator.
Barry.
(Added later)
I should have thought of this sooner - looking in the logs. (this is from L4 using 1.42)
Here is a code snippet from my Sub Activity_Create:
AdView1.Initialize("Admob", "xxxxxxxxxxxxxx") ' x's subsituted for my id
pnlAd.AddView(AdView1, 0dip, 0dip, 320dip, 50dip)
Log("AdView1.IsInit " & AdView1.IsInitialized)
and the corresponding log output:
AdView1.IsInit true
I copied the following code from the tutorial and put it in my app:
' ------------- Debug Only -------------
Sub Admob_FailedToRecieveAd(ErrorCode As String)
Log("Admob Failed" & ErrorCode)
End Sub
Sub Admob_RecieveAd
Log("Admob Succeeded")
End Sub
There is no log output from either of these Sub's
(Added later still)
One difference between my implementation and your tutorial that might make a difference. I add my AdView1 to a panel. I see you add your AdView1 to the Activity. But, it works with 1.3, not with 1.42. Just a thought...
(One last addition)
I was reading the forum and found "turn off log filter" in one of the posts. I now see the log message:
Could not find com.google.ads.AdActivity, please make sure it is registered in AndroidManifest.xml.
Ahh, light bulb. I may not be able to try it tonight, but I bet the error is in the xml file. I modified the template to insert the
Admob lines on my 1.3 system. I bet I forgot that on 1.42.