private MediaTracker getTracker ( ) { // Opt: Only synchronize if trackerObj comes back null? // If null, synchronize, re-check for null, and put new tracker synchronized ( this ) { if ( tracker == null ) { @ SuppressWarnings ( "serial" ) Component comp = new Component ( ) { } ; tracker = new MediaTracker ( comp ) ; } } return ( MediaTracker ) tracker ; }
Returns the MediaTracker for the current AppContext creating a new MediaTracker if necessary .