0

How to dynamically list the service available in alljoyn device 1( android mobile) in alljoyn device 2(mobile 2)

asked 2014-04-02 03:59:21 -0700

dharani335 gravatar image

Hi, Kindly provide some inputs for the below requirement.

 I have a  service running in an alljoyn device (In an android mobile 1).Now when I connect a  Client ( Running in another    android mobile 2) in the same wifi-network ,I want to dynamically display the  list of services available in 1st mobile in the 2nd mobile. Do I need to use any specific framework for this ???? Please provide some reference or sample for this as I am new to Alljoyn development.
edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
1

answered 2014-04-02 06:24:09 -0700

PierreR gravatar image

I believe the best way to do this would be to use the About feature. You'll find links to the documentation for android bellow :

https://allseenalliance.org/docs-and-downloads/documentation/getting-started-alljoyn-about-feature-10-android-0 https://allseenalliance.org/docs-and-downloads/documentation/alljoyn-about-feature-10-usage-guide-android

About will give you the list of remote BusObjects and the interfaces they implements. If you need the definition of these interface you can call the Introspect() method of the Introspectable interface (implemented by all BusObjects). Unfortunately this only works for discovery, with the java sdk you cannot currently call methods on theses dynamically discovered interfaces.

edit flag offensive delete publish link more
0

answered 2015-04-02 11:35:44 -0700

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

But one time i've runned the Introspect() method can I obtain(copy) the interfaces definition to be able to use it in my client app? I explain it with an example....I'm in a shopping mall and all the shops offer an alljoyn service. All of them offer services and advertises their interfaces...If i want to create a session with a particular shop I need to implement that interface and create a proxy object, do you agree? So if i want to be able to communicate and use all the services in the mall i need to implement all the interfaces of all the shops in my client app (android app maybe) ??? There is a way to do this dynamically?

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

Question Tools

Follow
1 follower

Stats

Asked: 2014-04-02 03:59:21 -0700

Seen: 203 times

Last updated: Apr 02 '15