MOVERIO Pro Developer's Guide (Rev.1.4)
194
11.7.2.
Intent reception method
As download and writing process are done
asynchronously, return value cannot be referred
directly.
So, receive the process result by using Broadcast Intent.
For each Broadcast Intent value issued by each API, refer to the item of Broadcast intent of
each API.
This section describes about the intent reception method.
11.7.2.1.
At start
Set intent filter and receiver at the start of application.
■Implementation example
private MyReceiver receiver = new MyReceiver();
private IntentFilter filter = new IntentFilter();
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
filter.addAction(AGPSControl.AGPS_CONF_ERROR);
filter.addAction(AGPSControl.AGPS_DOWNLOAD_COMPLETED);
filter.addAction(AGPSControl.AGPS_DOWNLOAD_ERROR);
filter.addAction(AGPSControl.AGPS_FILE_EXPIRED);
filter.addAction(AGPSControl.AGPS_FILE_NOT_UPDATED);
filter.addAction(AGPSControl.AGPS_NETWORK_ERROR);
filter.addAction(AGPSControl.AGPS_WRITE_COMPLETED);
filter.addAction(AGPSControl.AGPS_WRITE_ERROR);
getApplicationContext().registerReceiver(receiver, filter);
}
Summary of Contents for Moverio Pro BT-2000
Page 7: ...MOVERIO Pro Developer s Guide Rev 1 4 1 1 Introduction ...
Page 12: ...MOVERIO Pro Developer s Guide Rev 1 4 6 2 Developing Apps ...
Page 30: ...MOVERIO Pro Developer s Guide Rev 1 4 24 3 Display control ...
Page 39: ...MOVERIO Pro Developer s Guide Rev 1 4 33 4 UI control ...
Page 47: ...MOVERIO Pro Developer s Guide Rev 1 4 41 5 Voice commands ...
Page 70: ...MOVERIO Pro Developer s Guide Rev 1 4 64 6 Camera control ...
Page 119: ...MOVERIO Pro Developer s Guide Rev 1 4 113 7 Sensor control ...
Page 127: ...MOVERIO Pro Developer s Guide Rev 1 4 121 8 Bluetooth BLE ...
Page 184: ...MOVERIO Pro Developer s Guide Rev 1 4 178 9 Power control ...
Page 187: ...MOVERIO Pro Developer s Guide Rev 1 4 181 10 Self diagnostic function ...
Page 191: ...MOVERIO Pro Developer s Guide Rev 1 4 185 11 GPS Assist ...
Page 202: ...MOVERIO Pro Developer s Guide Rev 1 4 196 Memo ...