Java Question MobFox Library - Please have a test

ssg

Well-Known Member
Licensed User
Longtime User
ok, a few reasons:

1 - after addview, you need this:
m.loadAd

I missed the above step in the steps i posted on page 1. Let me know if the above cannot be compiled.

2 - you ad id is not returning ads yet, could be due to the id still being new. I tried with one of my own app id, and it shows fine

3 - when the ad fails, there is a runtime error showing up in B4A when you try to show msgbox. Remove the msgbox when error is shown..

The rest is fine...

good luck!
 

rkmoray

Active Member
Licensed User
Longtime User
Should it not show a box or something to show where the add goes?

I still see nothing
 

ssg

Well-Known Member
Licensed User
Longtime User
Should it not show a box or something to show where the add goes?

I still see nothing

Now that you've mentioned it, you are right. Before your ads are approved, you will get a test ad displayed.

Just to be sure, did you try creating a new app in mobfox and try with the new number? Just in case something went wrong...
 

aggelos

Member
Licensed User
Longtime User
problem when i click the ad

Hello!
first of all nice job on the mobfox lib
i am new to all this money from ads but it sounds good :)

your lib worked with no major problems
1)i changed the name of mobfoxsdk-1.2.xml to mobfoxsdk-1.5.xml
the file i got from mobfox was named mobfoxsdk-1.5.jar and b4a complained about a missing file.now its ok
2)the Sub mm_FailedToReceiveAd (ErrorCode As String) is giving me
an error "mobfox is already loading an ad.i don't know if its because i use the
developerid or something else.but the "test ad" shows fine. "mobfox it works etc".i tried with and without m.loadad

my only problem is when i click on the "Test ad" it crashes the program

the log is:


Uncaught exception in request thread
com.mobfox.sdk.RequestException: MobFox is already loading an ad
at com.mobfox.sdk.MobFoxView.loadContent(MobFoxView.java:447)
at com.mobfox.sdk.MobFoxView.loadNextAd(MobFoxView.java:611)
at com.madelephantstudios.MESMF.MESGS.loadAd(MESGS.java:70)
at com.myprogram.client.main._activity_create(main.java:418)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:113)
at com.myprogram.client.main.afterFirstLayout(main.java:84)
at com.myprogram.client.main.access$100(main.java:16)
at com.myprogram.client.main$WaitForLayout.run(main.java:72)
at android.os.Handler.handleCallback(Handler.java:587)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:130)
at android.app.ActivityThread.main(ActivityThread.java:3683)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
at dalvik.system.NativeStart.main(Native Method)
GC_CONCURRENT freed 659K, 47% free 3629K/6727K, external 2076K/2137K, paused 5ms+2ms


GC_EXPLICIT freed 460K, 51% free 4347K/8839K, external 16093K/18094K, paused 84ms


Aggregate from 1327286811974 (log), 1327286811974 (data)


GC_EXPLICIT freed 2K, 51% free 2711K/5447K, external 1625K/2137K, paused 54ms


GC_CONCURRENT freed 1047K, 57% free 3263K/7495K, external 2915K/3640K, paused 2ms+2ms


GC_CONCURRENT freed 427K, 42% free 4159K/7111K, external 2100K/2137K, paused 16ms+2ms


Starting: Intent { cmp=com.myprogram.client/com.mobfox.sdk.InAppWebView (has extras) } from pid 17930


couldn't save which view has focus because the focused view com.mobfox.sdk.MobFoxView$4@405ae330 has no id.


** Activity (main) Pause, UserClosed = false **


--- called into dvmAbstractMethodStub
Shutting down VM
threadid=1: thread exiting with uncaught exception (group=0x40015560)
FATAL EXCEPTION: main
java.lang.AbstractMethodError: abstract method not implemented
at com.madelephantstudios.MESMF.MESGS$1.adClicked(MESGS.java)
at com.mobfox.sdk.MobFoxView$10.run(MobFoxView.java:722)
at android.os.Handler.handleCallback(Handler.java:587)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:130)
at android.app.ActivityThread.main(ActivityThread.java:3683)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
at dalvik.system.NativeStart.main(Native Method)
Force finishing activity com.myprogram.client/com.mobfox.sdk.InAppWebView
Force finishing activity com.myprogram.client/.main
Activity pause timeout for HistoryRecord{40a5e368 com.myprogram.client/com.mobfox.sdk.InAppWebView}


surfaceCreated


surfaceChanged


Activity destroy timeout for HistoryRecord{40b26df0 com.myprogram.client/.main}


Activity destroy timeout for HistoryRecord{40a5e368 com.myprogram.client/com.mobfox.sdk.InAppWebView}


GC_EXPLICIT freed 274K, 57% free 3233K/7495K, external 2915K/3640K, paused 57ms
 

ssg

Well-Known Member
Licensed User
Longtime User
Hi Aggelos,

I have no idea why that would happen. Maybe something changed in 1.5, the library was made back at version 1.2. I have my apps running with 1.4 with no problem.

Could you upload a skeleton app to see how the code + manifest is for it?

I will recreate the libs with v1.5 and see how that goes. Now, where did I store this bit of code... hmm.... (dang, changed laptop!)

Cheers!
 

aggelos

Member
Licensed User
Longtime User
can you pelase send me version 1.4?

i tried it in a blank new project in order to test
the code if it works.



thank you
 

ssg

Well-Known Member
Licensed User
Longtime User
Here you go. Hope it works out fine...

If you're still having issue, upload your project or source code from the new sample project.

Cheers!
 

Attachments

  • MF14.ZIP
    29.6 KB · Views: 365

walterf25

Expert
Licensed User
Longtime User
MobFox video ads

Hi ssg, any chance you will update this library so that we can display video ads in our apps, i just registered with them and noticed there's a new sdk which supports video ads.

Thanks,
Walter
 

tamadon

Active Member
Licensed User
Longtime User
Hi, any updates to this library? Is it compatible with MobFox-Android-SDK-4.1.0.zip?
 

fared15

Member
Licensed User
Longtime User
Activity.AddView(m1, 0, 0, 320dip, 50dip)
javac 1.6.0_31
src\pocket\radio\main.java:298: cannot access com.mobfox.sdk.MobFoxView
class file for com.mobfox.sdk.MobFoxView not found
mostCurrent._activity.AddView((android.view.View)(mostCurrent._m1.getObject()),(int)(0),(int)(0),anywheresoftware.b4a.keywords.Common.DipToCurrent((int)(320)),anywheresoftware.b4a.keywords.Common.DipToCurrent((int)(50)));
^
1 error
 

walterf25

Expert
Licensed User
Longtime User
Mobfox does not pay

Hello everyone, i was wondering if some of you guys can share your experiences with MobFox, I love the fact that i get great revenue from them, and i only use them in one of my apps, the problem i having is that i have not received a payment from them, I went into my dashboard and i can see that there's an invoice which says that from september to october i have already been paid, however i have not received any payments in any of my bank accounts, I have sent my third e-mail to them today and i sent two previous e-mails about 2 weeks apart and i never received a response from them, i have disabled the ads in my app, i don't want my app to be generating revenue for them but not for me, I want to get paid:sign0010:

Hope some one here can comment on this, i hope i'm the only one with this problem.
Mobfox sucks!
 
Top