EDITORIAL
Some time ago because the examination was delayed, reproduce today Dajiang camera application step on a few pits.
First
Problem Description
The demo code into the knock, finally up and running after not being given the first activity_connection.xml interface display properly, start to connect UAV ( Mavic Air ). The first problem: the interface has not refresh. TextView can not change, Button nor can. Then quickly check the code, the code no problem. I am anxious to be broken. After careful analysis of the processes found under connetion.java in onCreate method, although dynamic registration of the broadcast is the phrase
but there is no way to route broadcast method always leads to refreshSDKRelativeUI can not be invoked to perform
Solution
Add the following two methods in the code startSDKRegistration () and the onProductDisconnect onProductConnect
Such a method can be invoked refreshSDKRelativeUI
the second
Problem Description
When the button button can be used, then click the button to exit the program directly collapse, view the error was found, the settext method assigned to the null object (error picture not preserved) is the place online Baidu is not a lot like me
Solution
The recordingTime new objects like in the onCreate method.
At last
With this, my camera application can run up.