Hello,
I have set up a MIDlet which communicates with several classes...
Each one has its specific "area" and functions pertaining that aread, like a Communication class (think http, https), a Location class (thins jsr-179) and a Bluetooth class (device-discovery, service-discovery etc)...
The last one utilizes the DiscoveryListener Interface to know when a device and service are discovered...
Now I'd like to pass this information to my main Midlet... So should I create a new Interface that tells my midlet when the BlueTooth Instance is done with its discovery services ? I'd prefer not to integrate the BlueTooth functionality into the midlet itself nor having the MIDlet having to use all the propetary Interfaces (like the DiscoveryListener Interface)...
And after that lets say I want to pass a List with the "friendly" names of the discovered devices to the MIDlet, which way is the best to do that ? I tried by implementing a public method in the MIDlet but it wont be accessible... seems like all examples I've seen the MIDlet is passed as an argument when creating the BlueTooth instance (for example), but I'd prefer not to do this because of the security issues (after all, if you pass the MIDlet to change a variable it could also change others as well)...
Thanks in advance