Android TV banner small on device but correct on emulator - android-tv

I'm trying to upgrade my app to Android TV 8.0. When I run it in the emulator the banner for the app displays correctly, but when I run it on a Xiaomi Mi Box 3 the banner icon is cut off and is centered in the launcher. I've made sure the image is the recommended size, and I've set the android:banner on both the application and the activity to point to the correct drawable. Anybody have any ideas why it displays correctly in the Emulator. The Target SDK is set to 27 if that makes any difference.
Here is the application element in the Manifest. The image is stored in the xhdpi drawable folder.
<application
android:name=".SerenityApplication"
android:allowBackup="true"
android:banner="#drawable/serenity_androidtv_banner"
android:logo="#drawable/serenity_androidtv_banner"
android:hardwareAccelerated="true"
android:icon="#drawable/serenity_bonsai_logo"
android:label="#string/app_name"
android:largeHeap="true"
android:theme="#style/AppTheme">

This is now working after a restart of the Xiaomi MiBox 3 device. There appears to be a bug in the launcher after a fresh install of the latest update. A restart of the device and it correctly loaded the banner for the app.

Related

AndroidTV app builds ok and will install but can't be opened. Android 7.1.1 TV

I'm at the bottom of the J curve as far as Android development goes, but I can't even get the demo app to work on my Android TV. I build the TV device blank activity in Android Studio, and it works fine in an emulator. I have a banner(320x180pixels), android.hardware.touchscreen(false), android.software.leanback(true), and LEANBACK_LAUNCHER in the intent.
The APK (which I have signed with V2 and marked as a release) installs with warnings from playprotect (which I can't shut off in this locked-down TV) but cannot be opened. I have sideloaded other APK's via the same method. I have also tried not signing the APK.
The TV is an Axis 1832S running Android 7.1.1. I CAN put it into developer mode if that helps.
Does anyone have any hints, or a simple 'hello world' apk that works that I can try?

Xamarin Forms - iOS debug on actual device hangs on launchscreen. Workin on simulator

I have a XF app already published on the play store and now I am targetting iOS. During developpent I made sure the app was still working on iOS, using the simulator only.
On the simulator everything works as expected, the launch screen is shown then the MainPage starts. But when I debug on an actual IPhone device, the app get stuck on the Launchscreen.storyboard for about 20 sec then the app exits. I've no debug output and it seems that the AppDelegate is never hit. Breakpoints in AppDelegate.FinishedLaunching method are not hit for instance. I tried to F11 for start in debugging mode but I don't hit anything, still hanging on the launch screen. I was expecting the transition from simulator to device to be less painful.
My plist file contains the following permission requirements
...
<key>NSLocationAlwaysUsageDescription</key>
<string>We need to use your location</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string>We are using your location</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>This app needs access to photos.</string>
<key>NSPhotoLibraryAddUsageDescription</key>
<string>This app needs access to the photo gallery.</string>
The only difference I saw is that location permissions are not asked on the device while in the simulator it asks for it at start. But this might be related to the fact that I can't reach AppDelegate, I am not sure yet.
The iOS project was generated via Prism templates. I am using VS 16.8.0 on Windows, XF 4.8.0.1687, Prism 8.0.0.1909, Xamarin iOS SDK 14.4.1.3 and I am set to "don't link" for linkers option. The device is an Iphone 10.
Any idea how can I find out the root cause - or get some useful logs?
Thanks in advance for your help.
EDIT:
Here are the device log output during a new installation https://taits.s3-eu-west-1.amazonaws.com/devicelogs.txt. I am trying to go through them but kinda lost.

How to build an Ionic app without the scroll

I am building an Ionic app, but once the page is getting bigger, the app presents an scroll, there is any way to remove the scroll and let the app more native like?
My code has only 2 slides with some products description and category.
"Ionic Lab" is a deprecated desktop application, sunsetted in 2016. the Ionic CLI command "ionic serve" lets you serve the app locally in a browser. So it appears you're previewing your application in a web browser. When doing this, it's not going to appear or behave exactly as it will on a real mobile device. If you run a build, open your app in Xcode and test in the iOS simulator, you'll most likely see that no scrollbar is visible.
Testing locally in a browser with ionic serve is very practical and useful but the preview should not be believed to be a 100% accurate native preview.

Change Flutter icon that shows when Overview button pressed in Android

I performed the Flutter Launcher Icons procedure and it worked perfectly, all application icons have changed, after the images in the folders below have been changed by my icon:
mipmap-hdpi
mipmap-mdpi
mipmap-xhdpi
mipmap-xxhdpi
mipmap-xxxhdpi
However, there is 1 icon that is not being changed and I do not know how to change.
Below this image which remains of the flutter icon.
Icon Flutter: Flutter Demo
This icon should have changed since all the others were also
Could you tell me how you could handle this?
This often happens as you OS caches few image assets. So, it's not flutter issue. What you can do is try rebooting, or completely uninstall and reinstall. That's how I fixed the issue. This frequently occurs with Redmi devices.

Testing Launcher icon on Nokia Qt SDK

How do you test the application icon in the Nokia Qt SDK Simulator? The one which starts when u run the the application from within the Qt Creator.
I like to see how it works & how the sizing works out, but seems there is no App Launcher process as there is in iPhone/Android. Any hints?
If what you want is to have a view of the device menu from which you can launch your app by pressing its icon the simulator doesn't provide a feature like that.
If you want to test your app in a more real enviroment or in device that you don't have maybe the Forum Nokia Remote Device Access could help you.

Resources