Android Question Intent Google Hangouts Help !!

nso91191

Member
Licensed User
Longtime User
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 !! :confused:

wrong code how to fix


B4X:
Sub ImageView9_Click
            Dim In As Intent
                In.Initialize(In.ACTION_SEND, "[email protected]")
                In.SetComponent("com.google.android.talk/")
                StartActivity(In)
End Sub
 

nso91191

Member
Licensed User
Longtime User
B4X:
Uri imUri = new Uri.Builder().scheme("imto").authority("gtalk").appendPath("username([email protected])").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);


http://stackoverflow.com/questions/6111578/android-google-talk-intents
 
Upvote 0

nso91191

Member
Licensed User
Longtime User
Screenshot.png


@Erel I see this error message ...
 
Upvote 0
Top