Beispiel #1
0
 protected void launchIntent(Intent intent) {
   if (DBG) Log.d(TAG, "launchIntent " + intent);
   if (intent == null) {
     return;
   }
   try {
     startActivity(intent);
     mSearchActivityView.considerHidingInputMethod();
   } catch (RuntimeException ex) {
     // Since the intents for suggestions specified by suggestion providers,
     // guard against them not being handled, not allowed, etc.
     Log.e(TAG, "Failed to start " + intent.toUri(0), ex);
   }
 }