How to change an AboutData from NOT announceable to announceable

asked 2015-07-08 01:36:04 -0700

trandatnh gravatar image

updated 2015-07-09 03:02:36 -0700

In 14.12, or maybe 15.04, release of Alljoyn, how can I change an AboutData from NOT announceable to announceable?

Edit In the 14.06 I would be able to change the description to announceable inside function fillAboutData by putting true to isAnnounceable

CHECK_RETURN(aboutdata->SetDescription("This is an Alljoyn Application", "en", true, false, true))

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-07-09 01:39:12 -0700

julianbros gravatar image

If I understand your question right, you have to add the AboutData to the bus:

    AboutObj aboutObj = new AboutObj(bus);
    status = aboutObj.announce(contactPort.value, new MyAboutData());
    if (status != Status.OK) {
        System.out.println("Announce failed: " + status.toString());


"MyAboutData()" is an object implementing the interface "AboutListener": Then the about data is announced to any device!

For further information refer to JavaSDKDocAboutService and JavaSDKDocAboutClient samples from the git repo.

edit flag offensive delete publish link more


Thanks, I forgot to mention that I want to ask about C++ code. BTW, I have another question related to announce function you mentioned https://ask.allseenalliance.org/question/3028/what-does-aboutobjapi-announce-do/

trandatnh ( 2015-07-09 03:00:53 -0700 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2015-07-08 01:36:04 -0700

Seen: 95 times

Last updated: Jul 09 '15