hi all, i have one problem with launch youtube search with my string from my app,
i try use this code but don't work:
in the internet i found this java code:
can you help me? thanks!
i try use this code but don't work:
B4X:
Dim Intent1 As Intent
Intent1.Initialize(Intent1.ACTION_VIEW, "")
Intent1.SetComponent("com.google.android.youtube/.ResultsActivity")
Intent1.PutExtra("query", test)
StartActivity(Intent1)
in the internet i found this java code:
B4X:
Intent intent = new Intent(Intent.ACTION_SEARCH);
intent.setPackage("com.google.android.youtube");
intent.putExtra("query", "Android");
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(intent);
can you help me? thanks!