Google TV options not in flet command line
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 17k
- Forks
- 694
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 33
Description
Currently no options to flet to set google TV icon, as well as leanback launcher not included in AndroidManifest.xml as well as intent filters needed. These could be added without affecting anything. Main thing about google TV is the leanback launcher lines are enabled, intent lines, as well as adding option to flet command line to tell users where Google TV icon is.
Here is example of mods needed to AndroidManifest.xml as well as a link for google TV docs. Below are the bare minimum needed to work, without icon it won't be selectable on google TV.
https://developer.android.com/training/tv/start/start
An example edit to AndroidManifest.xml:
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
<category android:name="android.intent.category.LEANBACK_LAUNCHER"/> <!--For google TV-->
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
Modify intent filter
<!--these 2 for google TV first one says don't ONLY use google tv(leanback), second one says does not require a touchscreen -->
<uses-feature android:name="android.software.leanback" android:required="false" />
<uses-feature android:name="android.hardware.touchscreen" android:required="false" />
Set google TV icon
<application
...
android:icon="@mipmap/ic_launcher"
android:banner="@drawable/banner" >
...
</application>
With above example you would copy flet users banner.png file to android/app/src/main/res/drawable/banner.png
for example.
Testing application:(enable USB debugging etc..)
For TV:
adb tcpip 5555
adb connect 192.168.0.160:5555 (Use your IP, go allow on TV now)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the flet command-line Android packaging entry point and the generated AndroidManifest.xml. Review how the Android resources are copied, including android/app/src/main/res/drawable/banner.png, then compare the generated manifest with the linked Google TV requirements. Done means the CLI accepts a Google TV icon or banner and generated Android apps include the required manifest entries.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, python
- Domain
- cli, mobile
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100