kivy / kivy/python-for-android

Services should support intent-filters

Đang mở
#2,877 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
feature-request
Ngôn ngữ chính
Python
Star
8.9k
Fork
2k
Merge trung bình
12 giờ 20 phút
Pull request đã merge (30 ngày)
9

Mô tả

### Checklist

- [X] the issue is indeed a bug and not a support request
- [X] issue doesn't already exist: https://github.com/kivy/python-for-android/issues
- [ ] I have a short, runnable example that reproduces the issue
- [X] I reproduced the problem with the latest development version (`p4a.branch = develop`)
- [X] I used the grave accent (aka backticks) to format code or logs when appropriated

### Description

In the Android Manifest, Services are defined with the [\ tag](https://developer.android.com/guide/topics/manifest/service-element). They may contain `` and `` sub-tags.

The `` sub-tag is necessary to implement certain services, such as the [MediaBrowserService](https://developer.android.com/reference/android/service/media/MediaBrowserService).

However, examining the `AndroidManifest.tmp.xml` files for SDL2, Service-Library and others reveals that the only way to include
intent-filters is in Activities. All `` tags are immediately closed off without an opportunity to include and sub-tags.

There should be a way to include `intent-filters`, and perhaps `` inside service definitions.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Bắt đầu bằng cách lần theo cách AndroidManifest.tmp.xml được tạo cho SDL2, Service-Library và các service khác, tập trung vào các thẻ service được đóng ngay lập tức. Xác định cách các định nghĩa service có thể biểu diễn các phần tử intent-filter và meta-data lồng nhau, sau đó kiểm tra xem các manifest được tạo có chứa các thẻ con được yêu cầu cho những service như MediaBrowserService hay không.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
android, python
Lĩnh vực
build-system, mobile
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
32/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.