I few ask a question for google hangouts chat not for call
example code for viber
B4X:
Sub ImageView3_Click
Dim In As Intent
In.Initialize(In.ACTION_VIEW, "tel:954954953")
In.SetComponent("com.viber.voip/.WelcomeActivity")
StartActivity(In)
End Sub
How to google hangouts intent please give me a some example code !!
wrong code how to fix
B4X:
Sub ImageView9_Click
Dim In As Intent
In.Initialize(In.ACTION_SEND, "myaccount@google.com")
In.SetComponent("com.google.android.talk/")
StartActivity(In)
End Sub
Uri imUri = new Uri.Builder().scheme("imto").authority("gtalk").appendPath("username(e.g.user@googlemail.com)").build();
Intent intent = new Intent(Intent.ACTION_SENDTO, imUri);
final PackageManager packageManager = context.getPackageManager();
final Intent intent = new Intent(Intent.ACTION_SENDTO);
List<ResolveInfo> resolveInfo =
packageManager.queryIntentActivities(intent,
PackageManager.MATCH_DEFAULT_ONLY);