theothernt / AerialViews

A screensaver for Android TV devices including Nvidia Shield, Fire TV, and Chromecast with Google TV. Inspired by Apple TV's video screensaver.
GNU General Public License v3.0
415 stars 32 forks source link

URI to launch application? #122

Closed bolt-snap-bolt closed 8 months ago

bolt-snap-bolt commented 8 months ago

Hi,

Wondering if AerialViews currently provides a deep link URI to allow programmatic launching of the application?

My use case is automation via Home Assistant's native Android TV integration. I'd like to be able to launch AerialViews (or trigger the Android device to start the configured screensaver) similar to the way I am able to launch Plex via a "plex://" URI.

I had a look through the AndroidManifest.xml file for the pattern I was expecting but didn't see a section.

See https://community.home-assistant.io/t/android-tv-remote-app-links-deep-linking-guide/567921 more background information.

theothernt commented 8 months ago

Aerial Views doesn't have a deep link URI but I can add one - that shouldn't be a problem.

I'll probably go with aerialviews://

theothernt commented 8 months ago

Also, just read that Home Assistant has an ADB add-in that can call Android Intents - which should give you the same result.

bolt-snap-bolt commented 8 months ago

Can you provide more details on what command I need to send via ADB to launch Aerial Views?

The integration provides a way to launch apps from a list but it opens to the text menu, not the actual screen saver content. I've tried various manual commands based on the info I found here but without success.

Edit: I've found one that works! am start -a android.intent.action.VIEW -n com.neilturner.aerialviews/.ui.screensaver.TestActivity

theothernt commented 8 months ago

Glad you got it working!

I'll keep this issue open until I have an update with the new URI support.

bolt-snap-bolt commented 8 months ago

I appreciate the prompt responses & support. The app is awesome by the way, thanks very much!

mrkhachaturov commented 8 months ago

image

If will be awesome if you can make an option to use web url instead of video for screensaver. Screenshot is from magic mirror project, usually it is used to display information on mirrors. But you can simply access it by url.

It allows you to integrate your calendar with events, weather, news feed and so on.

So imagine when tv goes to screen saver mode you can see all that information.

I am already looking for an option, to change background in magic mirror to video. Maybe it will be possible to show all that information in front of video 🤪!

Great job, like your application very much 🚀

theothernt commented 8 months ago

If will be awesome if you can make an option to use web url instead of video for screensaver. Screenshot is from magic mirror project, usually it is used to display information on mirrors. But you can simply access it by url.

Sorry to disappoint you but this issue relates to a URI (different to a URL) which can be called by an automation (Home Assistant, in this case) to start the app only. It does not supply content or change anything about the app, only start it.

Also, Aerial Views is designed to play video - it's basically a video player with some text boxes. It cannot show web content and there are no plans to add such a feature.

mrkhachaturov commented 8 months ago

If will be awesome if you can make an option to use web url instead of video for screensaver. Screenshot is from magic mirror project, usually it is used to display information on mirrors. But you can simply access it by url.

Sorry to disappoint you but this issue relates to a URI (different to a URL) which can be called by an automation (Home Assistant, in this case) to start the app only. It does not supply content or change anything about the app, only start it.

Also, Aerial Views is designed to play video - it's basically a video player with some text boxes. It cannot show web content and there are no plans to add such a feature.

Thank you anyway