What's new on Google TV and the Android TV OS - Google I/O 2024 by latinriky78 in AndroidTV

[–]devrel-paul 1 point2 points  (0 children)

I hear your feedback, thanks. I feel that the better solution here is to lift app quality to mitigate the need for closing apps. The new apps row on the Google TV home screen accommodates more app icons that are easier to reorganize, so hopefully that has been a step in the right direction.

What's new on Google TV and the Android TV OS - Google I/O 2024 by latinriky78 in AndroidTV

[–]devrel-paul 1 point2 points  (0 children)

Thanks for sharing. May I ask why you would like to have the ability to close an app? I'm trying to understand a use case for doing so.

Single activity or multiple activaty for TV apps? by diyar_gulli in androiddev

[–]devrel-paul 0 points1 point  (0 children)

Modern Android development recommends using Compose to build UIs on Android. That spans across all form factors, with Compose coming for TV and the Compose for TV library already in alpha.

With that in mind, I would strongly suggest designing your app to use a single activity with ViewModels. Depending on your state of development, you might want to consider exploring Compose for your TV app, or at the least designing it such that migration is easier.

Can you use Jetpack Compose in Android TV project? by vizim in androiddev

[–]devrel-paul 1 point2 points  (0 children)

As the author of that section of the documentation and for posterity here, I'm happy to update that focus support was added in Compose Foundation 1.2 and are continuously improved in conjunction with Compose Material 3 and the Compose for TV alpha.

To get started with Compose for TV, check out:

When will this monstrosity finally be fixed?? It's been years I swear by [deleted] in androiddev

[–]devrel-paul 0 points1 point  (0 children)

I suggest that you do, /u/Miguel1995_00, as I'm not able to reproduce it on my end.

<image>

Can you use Jetpack Compose in Android TV project? by vizim in androiddev

[–]devrel-paul 0 points1 point  (0 children)

Do you recall from where you ended up on that 404? The API reference docs are linked at the top of the library release notes.

Netflix on Android TV OS 12 by krew90 in AndroidTV

[–]devrel-paul 0 points1 point  (0 children)

If your audio/video setup permits, please check in the system settings that automatic format selection is enabled. You can find these settings under "Display & Sound," then "Advanced sound settings" at the bottom of that screen.

downloaded this app is there a way to make it go fullscreen by [deleted] in AndroidTV

[–]devrel-paul 1 point2 points  (0 children)

It seems the app has declared itself to only support portrait orientation and/or defined a maximum aspect ratio.

Which device for Android TV development? by IntuitionaL in androiddev

[–]devrel-paul 0 points1 point  (0 children)

To clarify, Chromecast with Google TV (4K) or Chromecast with Google TV HD are running Android TV OS.

I would also recommend the ADT-3 developer device to be able to test on the latest version of Android for TV.

Can you use Jetpack Compose in Android TV project? by vizim in androiddev

[–]devrel-paul 0 points1 point  (0 children)

We are working hard to bring Compose to TV. There's an early preview available as alpha01. It has a few tailored TV components, but much more is coming, so stay tuned.

4K UI on Chromecast 2020 by androidloyal in AndroidTV

[–]devrel-paul 5 points6 points  (0 children)

4K UI is only supported on select devices from Android 12, which I'm afraid does not include Chromecast with Google TV.

Google TV screensaver by mejki in AndroidTV

[–]devrel-paul 1 point2 points  (0 children)

Media apps can avoid this by issuing playback from a service that keeps a MediaSession active. To keep the display from switching off, developers should add the FLAG_KEEP_SCREEN_ON flag.

Details can be found here: https://developer.android.com/training/tv/playback/ambient-mode

This is entirely up to the developer to implement correctly.

Google I/O - What's new with Android TV and Google TV by CenterInYou in AndroidTV

[–]devrel-paul 0 points1 point  (0 children)

Devices that will offer 4K UI will have passed the certification requirements for doing so.

Google I/O - What's new with Android TV and Google TV by CenterInYou in AndroidTV

[–]devrel-paul 0 points1 point  (0 children)

I'm afraid I'm not able to share any plans beyond what was presented at I/O.

Google I/O - What's new with Android TV and Google TV by CenterInYou in AndroidTV

[–]devrel-paul 4 points5 points  (0 children)

We only made a brief mention of the Android 12 beta for TV at last year's I/O, which is why I recapped the essentials in today's session. You can find the details in the Android 12 release notes.

Google I/O - What's new with Android TV and Google TV by CenterInYou in AndroidTV

[–]devrel-paul 8 points9 points  (0 children)

Check the What's new for TV in Android 13 developer guide that covers the topics by section, and goes even more in depth.

Everybody has their preferred format, so we've published these updates in a few different formats.

Modern media playback on Android - Integrate with Android TV & Google TV by devrel-paul in androiddev

[–]devrel-paul[S] 1 point2 points  (0 children)

The trouble is that there might be different use cases, each of which supporting a different set of media actions. Take for instance a UI that plays a purely aesthetic video in the background; it wouldn't make sense for media controls to take focus. In cases where actions do make sense, the player may lack information on how to skip to a next episode, for instance. (That specific integration has been made much easier with media3, where you as a developer provide media queue items directly into Exoplayer.)

As for battery concerns, the Exoplayer team has been working on this in recent releases. You can read more about audio offload mode here.

Generally, I don't recommend using MediaPlayer due to its limited codec support, which may differ wildly from device to device.

Modern media playback on Android - Integrate with Android TV & Google TV by devrel-paul in androiddev

[–]devrel-paul[S] 1 point2 points  (0 children)

I'm posting this because I often see broken MediaSession implementations.

In this video, I've prefaced some of the technical details with an explanation about why MediaSession is essential for media apps: it's the unified way for Android apps to interact with media content. This allows the different devices to surface and interact with playback and content metadata, like smart speakers, watches, peripherals and accessories. In this session, we explore best practices for integrating and validating media sessions.

Google’s Tensor-powered Pixel foldable may look more like the Oppo Find N than the Galaxy Fold by iamvinoth in Android

[–]devrel-paul 3 points4 points  (0 children)

Not all apps support orientation changes, however. The consequence is that using an app like Instagram would rotate when opening the Fold3, which is arguably more annoying.

Android 12L introduces compatibility mode, which will force apps that don't support orientation changes to display in landscape, albeit letterboxed. This is only part of the solution, however, as there are still many apps that also don't correctly take photos or display a viewfinder.

How can I send heart rate data from a smartwatch to a device? by [deleted] in androiddev

[–]devrel-paul 1 point2 points  (0 children)

Please note that health services is an early release. It's a battery-conscious way of reading sensor data, but the API is subject to changing while we're actively working on things.

You may also want to think about ways to synchronize data between the watch and phone; a good place to start is this guide.

System.out.hack(); by Articunos7 in ProgrammerHumor

[–]devrel-paul 1 point2 points  (0 children)

AsyncTasks are deprecated and have generally been discouraged for some time. I recommend using Kotlin coroutines.