Android Question use Intent

mohammad be

Member
Hello everyone
When I want to open WhatsApp with intent, every time the user chooses the normal WhatsApp and business type, the solution is, should I save my choice and not ask the user again?

Private i As Intent
i.Initialize(i.ACTION_VIEW, $"https://api.whatsapp.com/send?phone=${Number}&text=${Url1}"$)
i.SetComponent("android/com.android.internal.app.ResolverActivity")
StartActivity(i)
 

mohammad be

Member
Please use [code]code here...[/code] tags when posting code.

Remove this line: i.SetComponent("android/com.android.internal.app.ResolverActivity")
Thanks, but for the first time it does not ask which WhatsApp to use
One beat enters WhatsApp Business while deleting the default settings on the phone for both WhatsApp
 
Upvote 0
Top