public static void Launch(Activity act, SearchUrlTask task) { Intent i = new Intent(act, typeof(ShareUrlResults)); task.ToIntent(i); act.StartActivityForResult(i, 0); }
public static void Launch(Activity act, SearchUrlTask task, ActivityLaunchMode launchMode) { Intent i = new Intent(act, typeof(ShareUrlResults)); task.ToIntent(i); launchMode.Launch(act, i); }
private void StartQuery() { //launch SelectCurrentDbActivity (which is root of the stack (exception: we're even below!)) with the appropriate task. //will return the results later Intent i = new Intent(this, typeof (SelectCurrentDbActivity)); //don't show user notifications when an entry is opened. var task = new SearchUrlTask() {UrlToSearchFor = _requestedUrl, ShowUserNotifications = ShowUserNotificationsMode.WhenTotp}; task.ToIntent(i); StartActivityForResult(i, RequestCodeQuery); _startedQuery = true; }
private void StartQuery() { //launch FileSelectActivity (which is root of the stack (exception: we're even below!)) with the appropriate task. //will return the results later Intent i = new Intent(this, typeof (FileSelectActivity)); //don't show user notifications when an entry is opened. var task = new SearchUrlTask() {UrlToSearchFor = _requestedUrl, ShowUserNotifications = false}; task.ToIntent(i); StartActivityForResult(i, RequestCodeQuery); _startedQuery = true; }