0

Change icon image file in alljoyn.js

asked 2015-04-14 18:01:51 -0700

BEOM gravatar image

updated 2015-04-14 18:02:47 -0700

Hi~, I have developing alljoyn with arduino Yun. I wonder how could i change app icon for about announcement. I found app icon file in "ajc.c" in lib folder for alljoyn.js. but I can`t find icon file in linino linux. I want to change app icon, how should I do this? thank you!


static const uint8_t icon[] = {
#include "icon.inc"
};


edit retag flag offensive close merge delete

Comments

I am curious to know this too, i am using alljoynjs with arduino yun as well.

AllJoyner ( 2015-04-15 07:31:09 -0700 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2015-04-15 09:09:51 -0700

jprestwo gravatar image

In the alljoyn-js git repo there is a file called icon.inc (which is included in ajs.c). If you replace that file with your own icon it should change the AllJoyn.js icon. The icon is compiled in when you cross compile for the Yun/Linino which is why it isn't present on the linino device. If you want to change the icon you will need to compile AllJoyn.js yourself with the icon.inc file replaced.

edit flag offensive delete publish link more

Comments

If we do that then the same icon will be shown for each device if im right, what if we wanna have a different icon for each of the devices, is that possible?

AllJoyner ( 2015-04-16 07:48:07 -0700 )edit

The same icon will be show for whatever device you install the IPK on. You would have to recompile for each device with a different icon. Unfortunately there is no dynamic icon loading for AllJoyn.js. Your welcome to add that feature, I'm sure it wouldn't be that difficult. You would just need to instead read the icon file into the icon array at run time.

jprestwo ( 2015-04-16 09:29:50 -0700 )edit
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2015-04-14 18:01:51 -0700

Seen: 55 times

Last updated: Apr 15 '15