Sub Process_Globals
Private Native As JavaObject
End Sub
Sub Activity_Create(FirstTime As Boolean)
If FirstTime Then Native.InitializeContext
Dim IsVM As Boolean = Native.RunMethod("IsVM", Null)
If IsVM Then
MsgboxAsync("You are using Virtual Environment","IsVM ?")
Else
MsgboxAsync("You are using Real Environment","IsVM ?")
End If
End Sub
#If JAVA
public Boolean IsVM()
{
return android.os.Build.getRadioVersion().trim().length() == 0;
}
#End If