차이
문서의 선택한 두 판 사이의 차이를 보여줍니다.
| 양쪽 이전 판 이전 판 | |||
|
ko:quick_guide [2019/09/20 10:32] jbkim |
ko:quick_guide [2020/05/13 08:24] (현재) jbkim [Firmware upgrade] |
||
|---|---|---|---|
| 줄 700: | 줄 700: | ||
| SvpManager svpManager = new SvpManager(); | SvpManager svpManager = new SvpManager(); | ||
| private static final String TAG = "YourApp"; | private static final String TAG = "YourApp"; | ||
| + | | ||
| + | Handler handler = new Handler(); | ||
| private DeviceListener deviceListener = new DeviceListener() { | private DeviceListener deviceListener = new DeviceListener() { | ||
| 줄 716: | 줄 718: | ||
| */ | */ | ||
| if (data.result == ErrorCode.SUCCESS ) { | if (data.result == ErrorCode.SUCCESS ) { | ||
| - | svpManager.rebootDevice(); | + | Runnable runnable = new Runnable() { |
| + | @Override | ||
| + | public void run() { | ||
| + | svpManager.rebootDevice(); | ||
| + | } | ||
| + | }; | ||
| + | |||
| + | handler.post(runnable) ; | ||
| } | } | ||
| } | } | ||