Dim context As JavaObject = Activity
context = context.RunMethod("getContext", Null)
Dim so As JavaObject
Dim package As String = so.InitializeStatic("android.provider.Telephony.Sms").RunMethod("getDefaultSmsPackage", Array As Object(context))
If package <> "it.mycompany.myapp" Then
Dim i1 As Intent
i1.Initialize("android.provider.Telephony.ACTION_CHANGE_DEFAULT", "")
i1.PutExtra("package", "it.mycompany.myapp")
StartActivity(i1)
'' I want my app wait here for the result of the above intent
end if