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. Froyo EGL + Camera

Hi list,

I have created a new working device profile to build Froyo AOSP on.
All the propitiatory bins/libs and so on are being pulled in from my
phone like I have always done with the 2.1 AOSP.

The build completed and I have Froyo running almost perfectly. Only 2
issues I have at the moment and I cant seem to find any reason for it
to fail are the EGL support and the camera.

egl is configured to use the propitiatory hardware library but froyo
seems to fail to load hardware3d and loads op software3d.

Camera loads up. I can take pictures but I do not see any preview in
the camera software its just a blackscreen.
Video recording though does not work at all.

Could anyone help me out on this and give me some pointers?
If you need any more info let me know.

Thanks in advance.

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

2. Re[2]: OOT --- WTI: "Sinetron" Uji Pakai AHA Tamat

kirain uda
lumanyan buat jadi backup M2
mana di bandung 3 kaga 3G ato uda ya
coz kaga pernah nemu sinyalnya
wah bandung kayak ketinggalan gini maslah jaringan GSM,hiii






> 

3. Regarding VideoView

4. make application should support all versions and screens

5. Any Archos5 owners able to help debug a problem?

6. Kelengkapan (dus+buku) untuk HTC Her

7. Possible to gather application logs at runtime?