It is the sample of using Deep Link to open the KKBOX app in others app, and changing the next song every 10 seconds.
- android studio 2+ (3+ will be best)
- devices with android os
- KKBOX OPEN API client id and secret
Note: You need to go to KKBOX OPEN API developer site for sign up an account then new an app and get the client id and secret.
- go to MainActivity.kt
- set your access token in companion object
companion object {
...
val accessToken = "YOUR_ACCESS_TOKEN"
...
}
- step 1: make sure device is connect to wifi or network
- step 2: press "Start Recording" button and you will hear a beep then start to speak.
- step 3: after speaking, press "Stop Recording" button.
- step 4: It will open KKBOX app and auto-play the song just searching.
- It will change next song every 10 seconds.