How to change AboutIcon on About Service (Thin Client)

asked 2014-06-11 11:43:51 -0700

pedrohenriquegomes gravatar image

Hello community,

I know it can be a very silly question, but I am working with AllJoyn Thin Client (I am using Qualcomm's SP140 development kit). I have tried to change the AboutIcon of About service, which should be possible according to this documentation. I have two demos that come with my dev board, one is a AC demo and the other is a simple Server. If I use both Icons provided in the demos I can update the app icon properly. But if I change a few bytes or create my own icon, I don't see any update on my client App. I am using the AllJoyn ON App for Android to control my dev board.

Any thoughts or considerations? It seems that there is a kind of format for the icon, but I cannot figure out.


edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted

answered 2014-06-18 10:18:54 -0700

mquon gravatar image

Hi, some notes that hopefully will be of help to you. The recommended size for this icon is 72 x 72 pixels, but can be larger as long as the total number of bytes is less than the maximum supported by the AllJoyn framework in a single BusMethod call (ALLJOYN_MAX_ARRAY_LEN, 131072 bytes). If the icon image size is larger than ALLJOYN_MAX_ARRAY_LEN, provide a valid URL when initializing the AboutIconService.

In order for the icon to correctly render, it is important to set the mimeType to the image type as some devices require this to show the icon on a display.

Let me know if that doesn't help solve the issues you are seeing.

edit flag offensive delete publish link more


You can also use a "binary to hex array converter" tool to convert an image into the hex array format that is expected by the AllJoyn about icon code.

mitchw ( 2014-06-19 16:42:43 -0700 )edit

Hi mitchw, where can I find such tools? Is it included on the Alljoyn source code? Thanks

pedrohenriquegomes ( 2014-06-23 15:31:46 -0700 )edit

It is not part of the AllJoyn source. Doing a web search for something like "bin2hex script" should bring up some options.

mitchw ( 2014-06-24 18:36:06 -0700 )edit

answered 2014-06-23 15:31:11 -0700

pedrohenriquegomes gravatar image

updated 2014-06-24 10:07:29 -0700

Hello mquon, thank you for your suggestion. I am very careful with the format and size of icon buffer. And I also set up mimeType properly, but the problem still persists. But... I guess I found out what is the problem. I am using the AllJoyn ON application from Qualcomm and it seems that they hard-coded the icons. When I extract the APK file I can see a bunch of different icons, one for each type of application. So, I guess they discard your iconBuff and use the icon they think is best. Since we don't have access to the source code it is impossible to know actually what happens. I will develop another Android control panel from scratch and see if I can change this issue. Thank you for the answers.

edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2014-06-11 11:43:51 -0700

Seen: 126 times

Last updated: Jun 24 '14