-
Notifications
You must be signed in to change notification settings - Fork 1
Class: MainActivity
As the name would suggest, MainActivity is the main activity of the application. This activity is shown when the application is started. In portrait mode this activity houses a ViewPager which has 2 Fragments, a BundleFragment and a ConsoleFragment.
When the activity is created, it checks which cpu-abi the processor is using. Then all the bundles located in the assets/celix_bundles/<cpu_abi>
are copied to the sd card location.
There doesn't have to be a sd card in the application for this to work. We choose to copy them to the sd card location because the celix framework couldn't unzip the bundles on the internal memory. This activity shows a text editor when the user wants to edit the properties used by the Celix framework. There is also an option to open a QR-code scanner where the user can get the properties out of an qr-code.
The MainActivity observes the Celix instance to update the UI when Celix is started/stopped. There's also a broadcastReceiver which checks if the network configuration has changed. It is important we have the correct IP-adress in the configuration file for Celix.