0
我想创建一个不同类的对象,其中包含所需的方法,在我的服务中这里如何创建该类的对象并调用所需的方法。如何在一个服务中创建一个类的实例(FirebaseService)
我想这样做,但什么样的参数应该在下面的代码进行传递:
private PictureCapturingServiceImpl pictureService;
pictureService = new PictureCapturingServiceImpl();
// here its actually asking to pass Android.app.activity but this is a
// class extends Fire-base Service,so what parameters should be passed .
pictureService.startCapturing(this);