Sub Get_Bitcoin_Donation
Try
Dim pm As PackageManager
Dim package_list As List
Dim name As String
package_list = pm.GetInstalledPackages
For i = 0 To package_list.Size - 1
If package_list.Get(i) = "com.mycelium.wallet" Then name = "com.mycelium.wallet"
If package_list.Get(i) = "com.airbitz" Then name = "com.airbitz"
If package_list.Get(i) = "it.greenaddress.cordova" Then name = "it.greenaddress.cordova"
If package_list.Get(i) = "com.hivewallet.androidclient.wallet" Then name = "com.hivewallet.androidclient.wallet"
If package_list.Get(i) = "piuk.blockchain.android" Then name = "piuk.blockchain.android"
If package_list.Get(i) = "de.schildbach.wallet" Then name = "de.schildbach.wallet"
If package_list.Get(i) = "com.coinbase.android" Then name = "com.coinbase.android"
If package_list.Get(i) = "com.xapo" Then name = "com.xapo"
Next
If name = "" Then 'client doesn't have any of the listed wallets installed
Msgbox("Thanks for your interest, you can download a Bitcoin Wallet from the Play Store.", "No Bitcoin Wallet found")
Else
'Log(pm.GetApplicationIntent(name))
Dim bit_intent = pm.GetApplicationIntent(name) As Intent
bit_intent.Initialize(bit_intent.ACTION_VIEW, "bitcoin:1J2ByuqPwCB1RkWHpEjT2RxWrHTqajCeQF?amount=.001")
If bit_intent.IsInitialized Then StartActivity(bit_intent)
End If
Catch
Log(LastException.Message)
End Try
End Sub