How to use redis.store in android mobile app?

135 views
Skip to first unread message

Manish Kumar

unread,
Sep 7, 2015, 8:12:58 AM9/7/15
to Kivy users support

I have installed redis and redis-py and my code works perfectly fine on desktop as i have redis-server up and running but any idea how i can port the same code on my mobile and test through Kivy-launcher ? Also what extra i need to do while creating .apk through buildozer ?


from kivy.storage.redisstore import RedisStore
params = dict(host='localhost', port=6379, db=14)
store = RedisStore(params)

I get "ImportError: No module named redis" Even though i tried building it with buildozer still how will i make it up and running to listen to port?


Also do we have any other way to store and read datatype like dict, list easily on mobile through kivy?

erm...@gmail.com

unread,
Sep 28, 2016, 4:03:10 AM9/28/16
to Kivy users support
Did u added redis to requisites?
I've used redis with an Android apk and worked. What will not work (by now, or without LOT of work) it is the server part, but u can use client with no prob.

requirements = kivy, python2, redis

If you already added redis, maybe you missed to add INTERNET on the permissions.

Being said that, and even if REDIS provides an passwored access, i would recommend to you using a webservice over https, then let the server communicate to the redis-server in a safer way.

Regards.
Reply all
Reply to author
Forward
0 new messages