Android Intents - Youtube search
I want to use an Android Intent to open the native youtube app in order to do the following (using a different intent)
The following works
var intent = Ti.Android.createIntent({
action: Ti.Android.ACTION_VIEW,
data: "http://m.youtube.com/results?q=mysearch&uploaded=w"
});
Ti.Android.currentActivity.startActivity(intent);
The following works but I couldn't figure out how to set a time filter
var intent = Ti.Android.createIntent({
action: Ti.Android.ACTION_SEARCH,
packageName: "com.google.android.youtube"
});
intent.putExtra("query", "mysearch");
//the following line is the problem,
//I've also tried intent.putExtra("time", "this_week") without success
intent.putExtra("uploaded", "w");
Ti.Android.currentActivity.startActivity(intent);
I don't even know if this is possible.
Thanks in advance
2 Answers
-
Hi Daniel, I haven't tried the same with the last version 1.6.2. This was 5 months ago, I guess it was version 1.5.
If you find a solution let me know! Thanks! -
did you ever get this working ?