You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to get images from my site using UrlRequest and API to display them in Kivy. this code The codes I wrote work correctly in Windows and Linux, but in Android it gives me a black picture. In fact, it cannot load the photo
this is my codes:
home_page.py:
from kivymd.uix.screen import MDScreen
from kivy.network.urlrequest import UrlRequest
class HomePage(MDScreen):
def on_enter(self):
self.free_courses()
def free_courses(self):
data = UrlRequest('my api')
data.wait(delay=0.5)
for course in data.result:
self.ids.free_courses.add_widget(FreeCourses(
image=course.get('app_image'),
title=course.get('category_name')))
Just android.permissions = android.permission.INTERNET should be fine. The other part looks to be an example to be used without the parentheses. Then you should probably clean the old cached data with buildozer appclean.
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have the means to take action. Please reach out if you have or find the answers we need so that we can investigate further.
Activity
kuzeyron commentedon Jun 3, 2023
[Support question -> Kivy@Discord]
Sounds like you are missing the INTERNET permission in the spec file.
jabarmajidi commentedon Jun 3, 2023
@kuzeyron
this is in buildozer.spec
andriod.permissions = android.permission .INTERNET, (name=android.permission.WRITE_STORAGE;maxSdkVersion=18)
kuzeyron commentedon Jun 3, 2023
Just
android.permissions = android.permission.INTERNETshould be fine. The other part looks to be an example to be used without the parentheses. Then you should probably clean the old cached data withbuildozer appclean.jabarmajidi commentedon Jun 3, 2023
@kuzeyron
i run buildozer appclean. not it rais this error:
in case of a bug report, lease add a full log with log_leve = 2
kuzeyron commentedon Jun 3, 2023
Please share the entire
buildozer.spec. How recent is your buildozer version?RobertFlatt commentedon Jun 8, 2023
@jabarmajidi
That one line is not sufficient for anybody to help you
https://github.com/Android-for-Python/Android-for-Python-Users#if-buildozer-fails-to-compile
github-actions commentedon Dec 17, 2023
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have the means to take action. Please reach out if you have or find the answers we need so that we can investigate further.