There is no getProductInstance() and getCameraInstance() defined in MainActivity.Java.
So one will need to add below in Mainactivity.java:
public static synchronized DJIBaseProduct getProductInstance() {
if (null == mProduct) {
mProduct = DJISDKManager.getInstance().getDJIProduct();
}
return mProduct;
}
public DJICamera getCameraInstance() {
return (DJICamera)this.mComponentMap.get(DJIBaseProduct.DJIComponentKey.Camera);
}
Hi @adityajain07 , these two methods have been defined in the FPVDemoApplication already, you can use them directly as shown in the sample code. Why you need to define them again?
There is no getProductInstance() and getCameraInstance() defined in MainActivity.Java.
So one will need to add below in Mainactivity.java: public static synchronized DJIBaseProduct getProductInstance() { if (null == mProduct) { mProduct = DJISDKManager.getInstance().getDJIProduct(); } return mProduct; }
PS: Please let me know, if I am wrong anywhere :)