wolpi / prim-ftpd

FTP server app for android
Other
620 stars 78 forks source link

No start button on the upper-right side #278

Closed hzjppkk closed 2 years ago

hzjppkk commented 2 years ago

when it runs on my tv(android 9) there is no button on the upper-right corner, it's all blank. while it works well with my tvbox (android 4.4) 2022

wolpi commented 2 years ago

The buttonsin upper-right corner are called ActionBar. That is generally not present on Android TV. As far as I understand the main reason for that design decision by Google is that most TV devices don't have a touch screen or pointing device but are controlled with a d-pad.

To support Android TV this app has a own launcher Activity which adds buttons to start/stop server and to open preferences in the dark area above texts (and horizontally centered).

It seems in your case the Activity intended for mobile devices is used.

hzjppkk commented 2 years ago

Is there any chance I can slove this problem? Or can I offer some help

wolpi commented 2 years ago

You could try to find different ways to open the app. Hopefully Android would use proper Activity then.

nom3ad commented 2 years ago

@wolpi Thank you! I had the same issue with my android TV, and I used X-plore (com.lonelycatgames.Xplore) file manager to list out activities available for org.promftpd. And I was able to launch org.primftpd.ui.LeanbackActivity from there and it worked! image