How to launch YouTube with specified keywords?

by Kumar Bibek » Thu, 11 Mar 2010 13:14:05 GMT


Sponsored Links
 Try this.

Intent intent = new Intent(Intent.ACTION_SEARCH);
intent.putExtra("query", "Android");
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(intent);

Here, you will get a Chooser activity. Now when you select Youtube,
you will get video results for Android.

Thanks and Regards,
Kumar Bibek




--



How to launch YouTube with specified keywords?

by Kumar Bibek » Thu, 11 Mar 2010 20:01:47 GMT


 This works

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);


Thanks and Regards,
Kumar Bibek.




--


Sponsored Links


How to launch YouTube with specified keywords?

by Kumar Bibek » Thu, 11 Mar 2010 20:12:02 GMT


Other Threads

1. Turn copy protection from on to off on market app?

I dont understand what it is "from on to off" -copy protection?





Is there any reason to use copy-protection? What about free apps -
even less reason?

On Oct 29, 1:46 am, "admin.androidsl...@googlemail.com"



--~--~---------~--~----~------------~-------~--~----~

2. Run ARM application on Qualcomm 3G

can this be done?  Can Snapdragon do this..
I have HTC Rose with Qualcomm processor and need to run ARM based
application.

is there a virtual machine for phones for things such as this?


thanks in advance.
Chris Glazier

--~--~---------~--~----~------------~-------~--~----~

3. Slashdot: Android / Windows 7 Dual Boot Netbook Disappoints

4. Using TransitionDrawable to make a transition with 3 elements

5. VerifyError and Content Providers

6. SDK contents com.android.vending

7. Detecting Long Press on a Map Overlay