Wanna create an app for file transfer from android mobile to android tv like this Send files to tv.Using wifi p2p file transfer or any other technic should i use to achieve this? If i use wifi p2p i should enable location permission.But Send files to tv not asking location permission. Any idea?
Asked
Active
Viewed 342 times
1 Answers
1
Since you are already using Wifi p2p you can combine it with NanoHttpD server to serve your file to the TV Device over wifi. NanoHttpD is a very small web server which can be used to serve both Rest API's which can then be called by the application embedded on the TV or you can stream files using it.
Checkout this answer on how to use it on Android.

Taranmeet Singh
- 1,199
- 1
- 11
- 14