Skip to main content
Unlisted page
This page is unlisted. Search engines will not index it, and only users having a direct link can access it.
Version: 10.3.0

Android Mobile App Access

DO THIS FIRST

This article assumes you've completed Android General Setup.

HYPR Initialization​

  1. When the app has started, initialize the HYPR SDK for Android v2 during onCreate() of your first activity.
fun initializeHYPR() {
HyprApp.initializeApp(context, object : HyprInit.InitTrustDataCallback {
override fun onInstallComplete() {
val hyprAppProfileData = HyprApp.getDbAdapter().getCurHyprAppProfileData(context)
hyprAppProfileData.setBaseDomainUrl(context, rpServerUrl)
hyprAppProfileData.setRpAppId(context, rpAppId)
hyprAppProfileData.setHyprRpAppType(context, HyprRpAppType.OobOff)
}

override fun onInstallError(errorString: String, p1: Throwable?) {
// Fail
}
})
}