Sub Activity_Create(FirstTime As Boolean)
hms.Initialize
hms.EnableLogs
Activity.LoadLayout("Layout")
End Sub
Sub Button1_Click
Wait For (hms.CheckDRM(DRM_ID, DRM_KEY)) Complete (Success As Boolean)
If Success = False Then
Log("Not purchased")
'ExitApplication
Else
Log("purchased")
End If
End Sub