Kivmob Installation On Windows - Does it Work and Is It Worth It?

154 views
Skip to first unread message

Horace Johnson

unread,
Jan 23, 2020, 12:42:40 AM1/23/20
to Kivy users support
"Howdy Peeps!"

I wanted to advance my learning in Kivy by trying to setup AdMob ads in an app.  I came across the API set, Kivmob which can be installed via Pip3.

Just wondering....  Has anyone used Kivmob with Kivy on Windows and will using Pip3 to install it on Windows work just the same as if installing on Linux Ubuntu?

If that's a yes, has anyone actually compiled and apk using Buildozer while requesting Kivmob as a dependent?  I know how Buildozer can easily break when requesting things in the spec file so if someone has already tried to build an apk following the Kivmob directions and Buildozer spat it out like garbage....then please let me know so I don't have to even waste time with Kivmob and just look for another solution.






AdBuddiz

PythonActivity=autoclass("org.renpy.android.PythonActivity")
AdBuddiz=autoclass("com.purplebrain.adbuddiz.sdk.AdBuddiz")

AD_CHANCE = 0.06

def init():
    AdBuddiz.setPublisherKey("YOUR SECRET KEY .... ")
    #delete this before going to play at the store...
    AdBuddiz.setTestModeActive()
    AdBuddiz.cacheAds(PythonActivity.mActivity)

def show():
    if (random.random() < AD_CHANCE):
        log.info("Showing Ad!!!")
        try:
            AdBuddiz.showAd(PythonActivity.mActivity)
        except Exception:
            log.exception("Pizza is not healthy...")
    else:
        log.warn("Skipping the AD this time ;)")




EOWk3TxXsAAv_ut.jpg


Horace Johnson

unread,
Jan 24, 2020, 8:18:01 PM1/24/20
to Kivy users support
I'm surprised I was able to create an error free test apk with buildozer and have it run on an android phone, without buildozer ripping out my anal.

Anyway,

The code isn't exactly right because when I press and release the button (whole background is button!), nothing happens....but when I repeat this action once or twice, the test ad fires.  I know ads have to load and that's one of the questions I want to ask....  Code wise, what's the best way to detect a loaded and ready to fire ad?

What I want to do is, fire an ad right when I need it to show.....every time....with no delays.

If someone can correct \ finish off the code I already wrote in the "ads" module...that would be great.


The file is attached......


kivy 1.11.1
python 3
kivmob_kivy_apk.zip

Horace Johnson

unread,
Jan 24, 2020, 9:37:37 PM1/24/20
to Kivy users support
I uploaded a new test app (you have to build it with buildozer of course) and got things working the way I want it to.

I can touch the background and when an ad loads...it will splash the screen and when I close it, I can then touch the background again to load another ad.

The only problem now is...

When I run the apk for the first time, the apk always crash during the first ad splash.  I get the android message to restart apk, so I do and after the restart...  No more crashes.

What the hell's creating that first time run crash?



kivy 1.11.1
python 3
buildozer
android 7.1.1
Kivmob_Kivy_apk_B.zip

Horace Johnson

unread,
Jan 28, 2020, 6:08:48 PM1/28/20
to Kivy users support
After integrating the code into my actual app, the first time run crash doesn't exits.  This just adds more mystery around the test files I uploaded because it's so much smaller with very little code but yet...1st time run crash.

Oh well...  Kivy is full of mysteries I guess.  At least I got plenty of time to try different things.  Marketing on anything I develop won't start until the second half of this year or in the last third of the year.

Kivmob made it simple.....  I just wish someone would come up with an in-app-store module that could allow Kivy users to use in-app-billing with just pure python syntax.



Deadly "Kivying!"  :D

James D

unread,
Jan 29, 2020, 3:28:43 AM1/29/20
to Kivy users support
For your question of "Code wise, what's the best way to detect a loaded and ready to fire ad?"
kivy has a module called URL_request that can call a function on success.
I've used it once but my skill isn't great so hopefully that can point you in the right direction
James

Mateo Aita

unread,
Jun 15, 2020, 2:38:45 PM6/15/20
to Kivy users support
Hey Horace, I've been having trouble with Kibmob because I have like 150 requests in my admob account but the banner is not showing on phones, do you know how many requests do I need to make it work? I guess you fixed it and I really need help. Thank you very much!

Horace Johnson

unread,
Jun 16, 2020, 4:33:19 AM6/16/20
to kivy-...@googlegroups.com
Depends on the stage of development.   If you're trying to fire real ads, they will not show until you publish your app and link it to your admob account. 

If test ads show, the code is good.
...you just have to publish and link up.

--
You received this message because you are subscribed to a topic in the Google Groups "Kivy users support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/kivy-users/DB0-UAeOZBE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/36f3be84-33aa-4b41-86cc-4c01bb5fe04fo%40googlegroups.com.

Mateo Aita

unread,
Jun 19, 2020, 2:09:05 PM6/19/20
to Kivy users support
Thanks Horace, I think it may be because of publishing it at aptoide instead of playstore
To unsubscribe from this group and all its topics, send an email to kivy-...@googlegroups.com.

Horace Johnson

unread,
Jun 19, 2020, 2:19:33 PM6/19/20
to kivy-...@googlegroups.com
Does aptoide use thier own sdk?


To unsubscribe from this group and all its topics, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/11816e72-8560-4142-b4e0-aef042a74775o%40googlegroups.com.

Mateo Aita

unread,
Jun 19, 2020, 2:28:00 PM6/19/20
to Kivy users support
nope, it is written in android SDK
Reply all
Reply to author
Forward
0 new messages