Badge Drawable in BrowseFragment doesn't appear on Amazon TV - android-tv

I've got a BrowseFragment displaying some api-loaded content using the Leanback Support Library. I'm also showing a custom logo in the top right hand corner using the setBadgeDrawable method on the BrowseFragment. This logo is included in the apk in the res folder. It appears as expected on an Android TV emulator, however when I install the binary onto an Amazon Fire TV stick, the logo disappears. All other functionality of the application is identical on Amazon Fire TV.
The image is a PNG and here is how I'm setting it:
setBadgeDrawable(getActivity().getResources().getDrawable(R.drawable.logo));
Any reason why this would be happening? Any help is appreciated. Thanks.

Apparently Amazon Fire TV has a size limit on the image. Once I shrunk the image, worked just fine. Weird.

Related

Image superimposed on android emulator

I have not been able to find out why I use a ASSUS ROG 2080 gpu super and this image is appearing on top of my android emulator. This is just with a standard File - > Xamarin Project.
Is it something to do with my 2080 super rather than my android emulator?
Edit 2
As you see its no where to be seen nore is it in the programs list.
The issue was not inside the Nivda driver it self but it was actually in a program called CPU Tweek
If you see here the button at the top with on or off if you switch that off it will no longer appear
However if you want to see the Fps in an app on simulator leave it on and go to settings cog at the top of the screen. Then to the OSD tab and scroll down to photo and simply turn that off.

How to add images to iPhone Simulator?

I have used UIImagePickerController with UIImagePickerControllerSourceTypePhotoLibrary, but it says "No photos".
Where does the simulator get the images from? Where should I copy the images so that they are displayed in the simulator?
Now you can do this easily just by dragging and dropping the images in to Photos app in iPhone Simulator.
Run the simulator
Run Safari on the Simulator
Drag a picture onto Safari running on the Simulator, this opens the image.
Click and hold on the image, or tap on the share icon in the bottom tool bar.
You will get an alert asking if you want to store the image to your phone
If someone gets an error similar to
One or more media items failed to import:
/Users/Username/Desktop/Screenshots/Screen Shot 2021-07-09 at 12.05.29.png: The operation couldn’t be completed. (Cocoa error -1.)
You can try to move the picture to the user's root folder. In my case /Users/Username/Screen Shot 2021-07-09 at 12.05.29.png, and I was able to drag and drop my image from Finder to the simulator.
Open photo on simulator. The gallery will open.
Drag the pic you want into the simulator gallery.
That's it. The pic is now on the gallery.
You can drag files like images or video from your local mac machine to simulator once you open the photos or video list of the iphone.
But make sure you're uploading from Documents folder else it won't get uploaded if you drag files from other folders.

Photoswipe working on browser but not on devices

I'm a beginner and I'm trying to use photoswiper in a PhoneGap app. I'm trying to use this example :
[http://jsfiddle.net/Gajotres/PFqVs/][1]
that works great in any browser, but just don't work on any device.
When I open, it's like I have a css issue since I don't see any king of style and when I touch any image, I just see it full size but can't swipe to see the next one.
Any help will be appreciated!
May be you should mention all sites with external resources in the WhiteList?

how to save video in ipad simulator

I want to pick video from photo library using imagePickerController.
but there is no video on my simulator. I know how to load images in simulator but don't know how to load video. Please help.
You will have to drag&drop a .mov file to the simulator. Once you do that, you will see the video and you can save it to the camera roll (with one of the buttons displayed in that screen).
But you won't be able to pick the video in the simulator because there is an error while compressing the video.

problem with 512x512 app icon in iTunes Connect

I'm uploading my app to App Store and I created it in iTunes Connect.
I just uploaded my 512x512px icon and then I opened Version Summary page to verify my information...
I've got a set of icon that just have gloss effect. In Version Summary page I see my 512x512px icon with automatic gloss added.
Is there a way to prevent this? My large app icon mustn't have gloss...
In my info.plist I added the line "Icon already includes gloss effects" and I checked the box near it...
Can anyone help me?
According to 512x512 image for AppStore (iTunes Connect), will Apple do corner rounding like they do on the phone?, Apple does in fact check the app for the UIPrerenderedIcon flag. Once the app is uploaded, the 512x512 large icon will pick up the correct setting.
This Apple Dev Document includes all of the information you should need for you icon.
The plist entry you are looking for to disable the added gloss is UIPrerenderedIcon. That should prevent Apple from adding gloss. However it will apply to all of you icons.

Resources