Пример #1
0
        public static void Launch(Activity act, SearchUrlTask task)
        {
            Intent i = new Intent(act, typeof(ShareUrlResults));

            task.ToIntent(i);
            act.StartActivityForResult(i, 0);
        }
Пример #2
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);
        }
Пример #3
0
 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;
 }
Пример #4
0
 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;
 }