App1 calls the youtube search and can get the right result list as your solution, when press "back" key, the result list disappears, but the Youtube's main window appears automatically, we have to press "back" again to come back to the App1.
Anyone knows how to skip the second step? Thanks in advance. -----邮件原件----- 发件人: [email protected] [mailto:[email protected]] 代表 Kumar Bibek 发送时间: 2010年3月11日 20:12 收件人: Android Developers 主题: [android-developers] Re: How to launch YouTube with specified keywords? Check this link http://tech-droid.blogspot.com/2010/03/youtube-intent-for-search-in-android.html Thanks and Regards, Kumar Bibek On Mar 11, 5:01 pm, Kumar Bibek <[email protected]> wrote: > 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. > On Mar 11, 10:13 am, Kumar Bibek <[email protected]> wrote: > > > 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 > > > On Mar 11, 6:28 am, "David" <[email protected]> wrote: > > > > Dear All, > > > > I want launch the YouTube with specified video searching list at > > > startup(e.g I want YouTube shows the video list all related with the key > > > word "Susan" and "U.S" in the first page.) > > > > But The YouTube application is not open source in Éclair, would > > > you > > > please tell me which YuTube API can implement this feature? > > > > Thanks, > > > > Best Regards, > > > > David -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

