{Update actionId placeholder and add theming strings}
[MWA-5265] Meta Demo: Theming via xml
{Clean up dependencies and UI}
[MWA-5265] Meta Demo: Theming via xml
{cr fixes}
[MWA-5265] Meta Demo: Theming via xml
{Configure light and dark themes}
[MWA-5265] Meta Demo: Theming via xml
{Update placeholder for action ID}
[MWA-5265] Meta Demo: Theming via xml
{CR fixes}
[MWA-5265] Meta Demo: Theming via xml
{updated dependencies}
[MWA-5265] Meta Demo: Theming via xml
{added Standart Theme}
[MWA-5265] Meta Demo: Theming via xml
{change theme colors}
c[MWA-5265] Meta Demo: Theming via xml
{Use RadioButton for theming choice}
[MWA-5265] Meta Demo: Theming via xml
{Update demo app UI and theming}
[MWA-5265] Meta Demo: Theming via xml testen
{added more colors}
[MWA-5265] Meta Demo: Theming via xml testen
{Update app theme to WebId.PluginTheme}
[MWA-5265] Meta Demo: Theming via xml testen
{addAdd Compose theming option to MetaPl}ugin
[MWA-5265] Meta Demo: Theming via xml testen
{Update dependencies and plugin initialization}
[MWA-5265] Meta Demo: Theming via xml testen
{Refactor UI to Jetpack Compose}
[MWA-5265] Meta Demo: Theming via xml testen
{added translations}
MetaPlugin Demo Android
This project demonstrates how to embed the WebID Meta Plugin into an Android App. The code of the project is described with comments on how to use it.
Tutorial
To start the plugin in this example project, open the gradle.properties file.
You will find empty credential properties at the bottom.
You should have been given a username and a password to access your environment.
Navigate to the ~/.gradle/gradle.properties file on your system..
If it does not exist, create it.
Enter the properties for your preferred platform.
To begin the identification process, you will need to create it outside the app.
From the process creation request to the server, you should have received an action-id, consisting of 9 numbers.
After that, open the MainActivity.kt file and finish the three TODOs at the top.
- choose video call configs
- insert your 9-digit action id
- choose an environment to use
After that, start the demo app on an android device.
Press the main button to start the plugin at runtime.
Fastened Tutorial
- Add usernames and passwords in your ~/.gradle/gradle.properties file
- Create a transaction via backend API
- Set video-call configs in MainActivity.kt
- Replace placeholder string of action-id in MainActivity.kt with action-id from process-creation response
- Choose environment in MainActivity.kt
- Start this app on a test device
- Click main button to start the plugin at runtime
Additional Notes
On Samsung Devices, configurations should be changed. In MainActivity.kt, go to
private val config = VideoOptionsConfig(true, false, false)
and set the booleans according to the chapter
The VideoOptionsConfig object
in the Integration Guide.
Theming (Optional)
The plugin implemented in this project supports customized theming.
To try out different themes, go to the file src/main/res/values/themes.xml and add items to the following element:
<style name="CustomizedPluginTheme" parent="WebId.PluginTheme.Light">
</style>
Consult the theming guide to see what items can be changed.
To change the Dark mode theming, navigate to the file src/main/res/values-night/themes.xml and add items to the following element:
<style name="CustomizedPluginTheme" parent="WebId.PluginTheme.Dark">
</style>