09-22-2009 10:15 PM
Hello,
I am developing BB OS 4.6 using eclipse. I have managed to use the
net.rim.device.api.ui Class Manager by importing it and also the
javax.microedition.media Class Manager by calling it on the fly (javax.microedition.media.Manager.method())
Is there a way to import both of these classes without having Eclipse throw up red flags? Eclipse will not allow me to do this unless there is another way. I have tried importing the entire javax.microedition.media.* package, but when I go to use the Manager class Eclipse does not allow this?
Has anyone run into this issue?
Thank you for any help.
09-23-2009 04:42 AM
Not possible to import both, because then Java could not sort out which you wanted when you say Manager. The method you have already used is the way to go, i.e. import the one you use most frequently and specify the other using its fully qualified package name.
For example:
import javax.microedition.media.*;
then use:
net.rim.device.api.ui Class Manager m = Field.getManager();