Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Android™ Runtime Development

Reply
Contributor
amaguran
Posts: 23
Registered: ‎07-07-2010
My Device: 9700
Accepted Solution

apk2bar resizes the app icon to 86x86

DevAlpha (BB10) expects a 150x150 application icon. However, the apk2bar resizes the 150x150 xhdpi drawable to 86x86, making the icon smaller.

Even if I open the bar (as zip, with an external tool) and overide the 86x86 with a 150x150 icon, once installed, the icon looks smaller than the other native apps. If I create a WebWorks apps then the icon has the proper size.

How can I fix this?

 

Thanks

Contributor
amaguran
Posts: 23
Registered: ‎07-07-2010
My Device: 9700

Re: apk2bar resizes the app icon to 86x86

Is this a known bug?

New Contributor
amarkovits
Posts: 3
Registered: ‎10-09-2012
My Device: AlphaDev

Re: apk2bar resizes the app icon to 86x86

I also noticed this issue.

 

After apk2bar in the bar file I have the icon modified to 86x86.

 

I tried to add other icon files and modify the manifest like this:

Entry-Point-Icon: {150x150}native/images/icon-150.png:{86x86}native/images/icon-86.png

but the result is the same. On the device the app icon looks smaller then the rest of the icons.

 

Is there any fix for this?

 

Andrei 

Contributor
amaguran
Posts: 23
Registered: ‎07-07-2010
My Device: 9700

Re: apk2bar resizes the app icon to 86x86

This issue is still open in tools 1.4. Passsing -os 10.0.9 does not make any difference.

In order to avoid pixelated icon due to resizing, you need to repack manually a 114x114 icon into the bar.

Developer
borceg
Posts: 671
Registered: ‎03-21-2012
My Device: BlackBerry PlayBook 16GB

Re: apk2bar resizes the app icon to 86x86

It's probably bug. Please somebody open issue on jira.
New Contributor
amarkovits
Posts: 3
Registered: ‎10-09-2012
My Device: AlphaDev

Re: apk2bar resizes the app icon to 86x86

This issue is already reported on jira:

 

https://www.blackberry.com/jira/browse/BBTEN-407

Developer
borceg
Posts: 671
Registered: ‎03-21-2012
My Device: BlackBerry PlayBook 16GB

Re: apk2bar resizes the app icon to 86x86

It's private :smileysad:

Permission Violation

You cannot view this issue because you are not the issue reporter or assignee, a member of the project group, or a member of the issue group and this issue is closed or in triage.

If you think this message is wrong, please consult your administrators about getting the necessary permissions.
Retired
mwhiteman
Posts: 159
Registered: ‎11-21-2008
My Device: BlackBerry 10

Re: apk2bar resizes the app icon to 86x86

This is a feature that will be resolved in the 1.5 Gold SDK release. (Coming soon!) If an xhdpi 96x96 icon is present, that is what will be packed. This will scale correctly on PLayBook and BlackBerry 10. You can also include higher resolution icons and they will be scaled correctly.

 

Cheers

Matt Whiteman
Product Manager, Android, BlackBerry Java & Simulators
Contributor
amaguran
Posts: 23
Registered: ‎07-07-2010
My Device: 9700

Re: apk2bar resizes the app icon to 86x86

I was expecting that a 114x114 icon from the xhdpi folder will be packed.

Thanks for the info.

Contributor
amaguran
Posts: 23
Registered: ‎07-07-2010
My Device: 9700

Re: apk2bar resizes the app icon to 86x86

The command line tools 1.5 fixes this problem and it will pack a 114x114 icon. There's only one issue: even if you have a 114x114 icon in the xhdpi folder, the icon will still be process and the quality of the image will decrease. As the icon has the proper size it should not be "touched".