Android Skill
🤖 AI Integration Guide: Send this page link to AI for automatic integration guidance
Quick Information
- Application Type: Android
- Skill Version: 1.0.0
- Integration Difficulty: ⭐⭐⭐ (Medium)
- Estimated Time: 20 minutes
🎯 Integration Steps
Step 1: Add Dependencies
Add to settings.gradle:
groovy
pluginManagement {
repositories {
maven { url 'https://jitpack.io' }
}
}Add to app/build.gradle:
groovy
dependencies {
implementation 'io.github.azhon:appupdate:4.3.6'
implementation 'com.github.toolsetlink:upgradelink-api-android:1.0.18'
}Step 2: Initialize Client
kotlin
import com.toolsetlink.upgradelink.api.Client
val client = Client("YOUR_ACCESS_KEY", "YOUR_ACCESS_SECRET")Step 3: Call Upgrade API
kotlin
import com.toolsetlink.upgradelink.api.models.UrlUpgradeRequest
private fun checkUpgrade() {
val urlRequest = UrlUpgradeRequest(
"YOUR_URL_KEY", // Application unique identifier
1, // Current version code
0, // Expected version code (0 for latest version)
Build.MODEL, // Device model
Build.DEVICE // Device identifier
)
client.getUrlUpgrade(urlRequest, object : Client.Callback<UrlUpgradeResponse> {
override fun onSuccess(result: UrlUpgradeResponse) {
runOnUiThread {
AlertDialog.Builder(this@MainActivity)
.setTitle(result.msg)
.setMessage(result.data.promptUpgradeContent)
.setPositiveButton("Upgrade") { _, _ ->
// Start upgrade
}
.create()
.show()
}
}
override fun onFailure(e: Exception) {
System.err.println("Upgrade failed: " + e.message)
}
})
}⚠️ Note: Replace YOUR_ACCESS_KEY, YOUR_ACCESS_SECRET, and YOUR_URL_KEY with your actual keys
🤖 AI Integration
Send this page link to AI:
Please help me integrate Android application upgrade, here's the Skill link:
https://www.toolsetlink.com/en/upgrade/skill/androidAI will automatically:
- Identify the application type as Android
- Retrieve configuration information and code examples
- Guide you to replace placeholders
- Verify configuration correctness
- Complete integration testing
📋 Complete Example
View complete example project: android-demo
❓ FAQ
Q: How to get URL Key?
A: Log in to UpgradeLink dashboard, create a URL application to obtain it.
Q: How to get Access Key and Access Secret?
A: Log in to UpgradeLink dashboard, obtain them from the key management page.
Q: What if update fails?
A: Check network connection and configuration, or contact AI for help.