我有一个GPSTracker类,它扩展服务实现LocationListener。并且GPSTracker也覆盖了onLocationChanged方法。在我的MainActivity中,我创建了一个GPSTracker实例,并使用我在GPSTracker类中声明的自定义方法来获取纬度/经度。当GPSTracker的onLocationChanged被触发时,如何让我的MainActivity得到通知?GPSTracker类publicclassGPSTrackerextendsServiceimplementsLocationListener{...Locationlocation;/