Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/launchdarkly/hello-android
Hello LaunchDarkly for Android
https://github.com/launchdarkly/hello-android
android examples feature-flags feature-toggles java launchdarkly sdk-examples
Last synced: 3 months ago
JSON representation
Hello LaunchDarkly for Android
- Host: GitHub
- URL: https://github.com/launchdarkly/hello-android
- Owner: launchdarkly
- License: apache-2.0
- Created: 2016-09-29T22:19:42.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2023-08-03T22:10:00.000Z (11 months ago)
- Last Synced: 2024-01-21T23:08:36.295Z (5 months ago)
- Topics: android, examples, feature-flags, feature-toggles, java, launchdarkly, sdk-examples
- Language: Kotlin
- Homepage:
- Size: 125 KB
- Stars: 3
- Watchers: 43
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-launchdarkly - Android Hello LaunchDarkly
README
# LaunchDarkly sample Android application
We've built a simple mobile application written in Kotlin that demonstrates how LaunchDarkly's SDK works.
Below, you'll find the basic build procedure, but for more comprehensive instructions, you can visit your [Quickstart page](https://app.launchdarkly.com/quickstart#/) or the [Android reference guide](https://docs.launchdarkly.com/sdk/client-side/android).## Build instructions
1. Make sure you have [Android Studio](https://developer.android.com/studio/index.html) installed.
2. Edit `MainApplication.kt` and `MainActivity.kt` in the `src/main/java/com/launchdarkly/hello_android` directory and set the value of LAUNCHDARKLY_MOBILE_KEY to your LaunchDarkly mobile key. If there is an existing boolean feature flag in your LaunchDarkly project that you want to evaluate, set BOOLEAN_FLAG_KEY to the flag key.```
val LAUNCHDARKLY_MOBILE_KEY = "mobile-key-from-launch-darkly-website"
val BOOLEAN_FLAG_KEY = "my-boolean-flag"
```3. Run your application through the Emulator or on a real device.
You should receive the message ”Feature flag ‘’ is for this context”.
## Looking for a Java example?
You can find an example mobile application written in Java in [this Github repository](https://github.com/launchdarkly/hello-android-java).