Java Code Examples for android.content.Intent.setPackage()

The following are Jave code examples for showing how to use setPackage() of the android.content.Intent class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: boohee_v5.6   File: br.java   View Source Code Vote up 10 votes
private static a b(Context context) throws Exception {
    try {
        context.getPackageManager().getPackageInfo("com.android.vending", 0);
        ServiceConnection bVar = new b();
        Intent intent = new Intent("com.google.android.gms.ads.identifier.service.START");
        intent.setPackage("com.google.android.gms");
        if (context.bindService(intent, bVar, 1)) {
            try {
                c cVar = new c(bVar.a());
                a aVar = new a(cVar.a(), cVar.a(true));
                context.unbindService(bVar);
                return aVar;
            } catch (Exception e) {
                throw e;
            } catch (Throwable th) {
                context.unbindService(bVar);
            }
        } else {
            throw new IOException("Google Play connection failed");
        }
    } catch (Exception e2) {
        throw e2;
    }
}
 
Example 2
Project: AssistantBySDK   File: IntroduceActivity.java   View Source Code Vote up 8 votes
@Override
public void onClick(View v) {
    switch (v.getId()) {
        case R.id.rl_grade:
            Intent intent = new Intent(Intent.ACTION_VIEW);
            Uri uri;
            if (checkMarketInstall()) {
                uri = Uri.parse("market://details?id=com.lingju.assistant");
                intent.setPackage(pkgs[0]);
            } else {
                uri = Uri.parse("http://android.myapp.com/myapp/detail.htm?apkName=com.lingju.assistant");
            }
            intent.setData(uri);
            startActivity(intent);
            break;
        case R.id.rl_feedback:
            startActivity(new Intent(this, FeedbackActivity.class));
            break;
        case R.id.rl_about:
            startActivity(new Intent(this, AboutLJActivity.class));
            break;
        case R.id.rl_connect:
            startActivity(new Intent(this, ConnectUsActivity.class));
            break;
    }
    goInto();
}
 
Example 3
Project: android-instant-apps   File: MainActivity.java   View Source Code Vote up 7 votes
@NonNull
private static Intent getDetailActivityStartIntent(Context context,
                                                   int position,
                                                   PhotoViewHolder holder) {
    final Intent intent = new Intent(Intent.ACTION_VIEW,
            Uri.parse("https://multi-feature.instantappsample.com/detail/" + position));
    intent.setPackage(context.getPackageName());
    intent.addCategory(Intent.CATEGORY_BROWSABLE);

    TextView author =
            holder.itemView.findViewById(com.example.android.unsplash.base.R.id.author);

    // Working around unboxing issues with multiple dex files on platforms prior to N.
    intent.putExtra(IntentUtil.SELECTED_ITEM_POSITION, position);
    intent.putExtra(IntentUtil.FONT_SIZE, author.getTextSize());
    intent.putExtra(IntentUtil.PADDING,
            new Rect(author.getPaddingLeft(),
                    author.getPaddingTop(),
                    author.getPaddingRight(),
                    author.getPaddingBottom()));
    intent.putExtra(IntentUtil.TEXT_COLOR, author.getCurrentTextColor());
    return intent;
}
 
Example 4
Project: MOAAP   File: AsyncServiceHelper.java   View Source Code Vote up 7 votes
public static boolean initOpenCV(String Version, final Context AppContext,
        final LoaderCallbackInterface Callback)
{
    AsyncServiceHelper helper = new AsyncServiceHelper(Version, AppContext, Callback);
    Intent intent = new Intent("org.opencv.engine.BIND");
    intent.setPackage("org.opencv.engine");
    if (AppContext.bindService(intent, helper.mServiceConnection, Context.BIND_AUTO_CREATE))
    {
        return true;
    }
    else
    {
        AppContext.unbindService(helper.mServiceConnection);
        InstallService(AppContext, Callback);
        return false;
    }
}
 
Example 5
Project: Vibrator   File: OpenUtil.java   View Source Code Vote up 7 votes
public static void openApplicationMarket(String appPackageName, String marketPackageName,
                                         Context context) {
    try {
        String url = "market://details?id=" + appPackageName;
        Intent localIntent = new Intent(Intent.ACTION_VIEW);

        if (marketPackageName != null) {
            localIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
            localIntent.setPackage(marketPackageName);
        }
        openLink(context, localIntent, url, true);
    } catch (Exception e) {
        e.printStackTrace();
        openApplicationMarketForLinkBySystem(appPackageName, context);
    }
}
 
Example 6
Project: SuspendNotification   File: OpenUtil.java   View Source Code Vote up 7 votes
public static void openApplicationMarket(String appPackageName, String marketPackageName,
                                         Context context) {
    try {
        String url = "market://details?id=" + appPackageName;
        Intent localIntent = new Intent(Intent.ACTION_VIEW);

        if (marketPackageName != null) {
            localIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
            localIntent.setPackage(marketPackageName);
        }
        openLink(context, localIntent, url, true);
    } catch (Exception e) {
        e.printStackTrace();
        openApplicationMarketForLinkBySystem(appPackageName, context);
    }
}
 
Example 7
Project: GankIO_weex   File: SplashActivity.java   View Source Code Vote up 7 votes
private void launch(){
  String url = AppConfig.getLaunchUrl();
  Intent intent = new Intent(Intent.ACTION_VIEW);
  String scheme = Uri.parse(url).getScheme();
  StringBuilder builder = new StringBuilder();
  if (TextUtils.equals("file", scheme)) {
    intent.putExtra("isLocal", true);
  } else if (!TextUtils.equals("http", scheme) && !TextUtils.equals("https", scheme)) {
    builder.append("http:");
  }
  builder.append(url);

  Uri uri = Uri.parse(builder.toString());
  intent.setData(uri);
  intent.addCategory("com.taobao.android.intent.category.WEEX");
  intent.setPackage(getPackageName());
  startActivity(intent);
  finish();
}
 
Example 8
Project: CSipSimple   File: OutgoingCallChooser.java   View Source Code Vote up 6 votes
/**
 * Connect to sip service by flagging itself as the component to consider as outgoing activity
 */
private void connectService() {
    PreferencesProviderWrapper prefsWrapper = new PreferencesProviderWrapper(this);
    Intent sipService = new Intent(SipManager.INTENT_SIP_SERVICE);
    // Optional, but here we bundle so just ensure we are using csipsimple package
    sipService.setPackage(getPackageName());
    if (prefsWrapper.isValidConnectionForOutgoing()) {
        sipService.putExtra(SipManager.EXTRA_OUTGOING_ACTIVITY, getComponentName());
        startService(sipService);
    }
    bindService(sipService, connection, Context.BIND_AUTO_CREATE);
}
 
Example 9
Project: letv   File: a.java   View Source Code Vote up 6 votes
private static boolean d(Context context, String str, String str2) {
    PackageManager packageManager = context.getPackageManager();
    Intent intent = new Intent(str2);
    intent.setPackage(context.getPackageName());
    for (ResolveInfo resolveInfo : packageManager.queryBroadcastReceivers(intent, 0)) {
        ActivityInfo activityInfo = resolveInfo.activityInfo;
        if (activityInfo != null && activityInfo.name.equals(str)) {
            return true;
        }
    }
    return false;
}
 
Example 10
Project: MyFire   File: OnekeyShareThemeImpl.java   View Source Code Vote up 6 votes
/** 判断指定平台是否只能使用客户端分享 */
final boolean isUseClientToShare(Platform platform) {
	String name = platform.getName();
	if ("Wechat".equals(name) || "WechatMoments".equals(name)
			|| "WechatFavorite".equals(name) || "ShortMessage".equals(name)
			|| "Email".equals(name) || "GooglePlus".equals(name)
			|| "QQ".equals(name) || "Pinterest".equals(name)
			|| "Instagram".equals(name) || "Yixin".equals(name)
			|| "YixinMoments".equals(name) || "QZone".equals(name)
			|| "Mingdao".equals(name) || "Line".equals(name)
			|| "KakaoStory".equals(name) || "KakaoTalk".equals(name)
			|| "Bluetooth".equals(name) || "WhatsApp".equals(name)
			|| "BaiduTieba".equals(name) || "Laiwang".equals(name)
			|| "LaiwangMoments".equals(name) || "Alipay".equals(name)
			|| "FacebookMessenger".equals(name)
			) {
		return true;
	} else if ("Evernote".equals(name)) {
		if ("true".equals(platform.getDevinfo("ShareByAppClient"))) {
			return true;
		}
	} else if ("SinaWeibo".equals(name)) {
		if ("true".equals(platform.getDevinfo("ShareByAppClient"))) {
			Intent test = new Intent(Intent.ACTION_SEND);
			test.setPackage("com.sina.weibo");
			test.setType("image/*");
			ResolveInfo ri = platform.getContext().getPackageManager().resolveActivity(test, 0);
			return (ri != null);
		}
	}

	return false;
}
 
Example 11
Project: QR-Code-Reader   File: IntentIntegrator.java   View Source Code Vote up 6 votes
/**
 * Initiates a scan, using the specified camera, only for a certain set of barcode types, given as strings corresponding
 * to their names in ZXing's {@code BarcodeFormat} class like "UPC_A". You can supply constants
 * like {@link #PRODUCT_CODE_TYPES} for example.
 *
 * @param desiredBarcodeFormats names of {@code BarcodeFormat}s to scan for
 * @param cameraId camera ID of the camera to use. A negative value means "no preference".
 * @return the {@link AlertDialog} that was shown to the user prompting them to download the app
 *   if a prompt was needed, or null otherwise
 */
public final AlertDialog initiateScan(Collection<String> desiredBarcodeFormats, int cameraId) {
    Intent intentScan = new Intent(BS_PACKAGE + ".SCAN");
    intentScan.addCategory(Intent.CATEGORY_DEFAULT);

    // check which types of codes to scan for
    if (desiredBarcodeFormats != null) {
        // set the desired barcode types
        StringBuilder joinedByComma = new StringBuilder();
        for (String format : desiredBarcodeFormats) {
            if (joinedByComma.length() > 0) {
                joinedByComma.append(',');
            }
            joinedByComma.append(format);
        }
        intentScan.putExtra("SCAN_FORMATS", joinedByComma.toString());
    }

    // check requested camera ID
    if (cameraId >= 0) {
        intentScan.putExtra("SCAN_CAMERA_ID", cameraId);
    }

    String targetAppPackage = findTargetAppPackage(intentScan);
    if (targetAppPackage == null) {
        return showDownloadDialog();
    }
    intentScan.setPackage(targetAppPackage);
    intentScan.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
    intentScan.addFlags(FLAG_NEW_DOC);
    attachMoreExtras(intentScan);
    startActivityForResult(intentScan, REQUEST_CODE);
    return null;
}
 
Example 12
Project: AndroidSerialPort   File: RobotManager.java   View Source Code Vote up 6 votes
public void Init(Context context, String mainPackage, InitListener listener) {
    this.context = context;
    this.listener = listener;
    //绑定服务
    Intent intent = new Intent();
    intent.setAction(RobotService.class.getName());
    intent.setPackage(mainPackage);
    context.bindService(intent, connection, context.BIND_AUTO_CREATE);
}
 
Example 13
Project: Pocket-Plays-for-Twitch   File: VideoCastNotificationService.java   View Source Code Vote up 6 votes
/**
 * Returns the {@link NotificationCompat.Action} for skipping to the next item in the queue. If
 * we are already at the end of the queue, we show a dimmed version of the icon for this action
 * and won't send any {@link PendingIntent}
 */
protected NotificationCompat.Action getSkipNextAction() {
    PendingIntent pendingIntent = null;
    int iconResourceId = R.drawable.ic_notification_skip_next_semi_48dp;
    if (mHasNext) {
        Intent intent = new Intent(this, VideoIntentReceiver.class);
        intent.setAction(ACTION_PLAY_NEXT);
        intent.setPackage(getPackageName());
        pendingIntent = PendingIntent.getBroadcast(this, 0, intent, 0);
        iconResourceId = R.drawable.ic_notification_skip_next_48dp;
    }

    return new NotificationCompat.Action.Builder(iconResourceId,
            getString(R.string.ccl_skip_next), pendingIntent).build();
}
 
Example 14
Project: YelpQL   File: BusinessDetailsActivity.java   View Source Code Vote up 6 votes
@OnClick(R.id.tvDirection)
void openRestaurantDirection(View view) {
    if (business != null) {
        // Create a Uri from an intent string. Use the result to create an Intent.
        Uri gmmIntentUri = Uri.parse(String.format("google.streetview:cbll=%1$f,%2%f", business.getLatitude(), business.getLongitude()));

        // Create an Intent from gmmIntentUri. Set the action to ACTION_VIEW
        Intent mapIntent = new Intent(Intent.ACTION_VIEW, gmmIntentUri);
        // Make the Intent explicit by setting the Google Maps package
        mapIntent.setPackage("com.google.android.apps.maps");

        // Attempt to start an activity that can handle the Intent
        startActivity(mapIntent);
    }
}
 
Example 15
Project: boohee_v5.6   File: PushMessageHelper.java   View Source Code Vote up 6 votes
public static void sendCommandMessageBroadcast(Context context, MiPushCommandMessage
        miPushCommandMessage) {
    Intent intent = new Intent("com.xiaomi.mipush.RECEIVE_MESSAGE");
    intent.setPackage(context.getPackageName());
    intent.putExtra(MESSAGE_TYPE, 3);
    intent.putExtra(KEY_COMMAND, miPushCommandMessage);
    new PushServiceReceiver().onReceive(context, intent);
}
 
Example 16
Project: mvvm-template   File: CustomTabsHelper.java   View Source Code Vote up 5 votes
/**
 * Goes through all apps that handle VIEW intents and have a warmup service. Picks
 * the one chosen by the user if there is one, otherwise makes a best effort to return a
 * valid package name.
 * <p>
 * This is <strong>not</strong> threadsafe.
 *
 * @param context
 *         {@link Context} to use for accessing {@link PackageManager}.
 * @return The package name recommended to use for connecting to custom tabs related components.
 */
static String getPackageNameToUse(Context context) {
    if (sPackageNameToUse != null) return sPackageNameToUse;

    PackageManager pm = context.getPackageManager();
    // Get default VIEW intent handler.
    Intent activityIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.example.com"));
    ResolveInfo defaultViewHandlerInfo = pm.resolveActivity(activityIntent, 0);
    String defaultViewHandlerPackageName = null;
    if (defaultViewHandlerInfo != null) {
        defaultViewHandlerPackageName = defaultViewHandlerInfo.activityInfo.packageName;
    }

    // Get all apps that can handle VIEW intents.
    List<ResolveInfo> resolvedActivityList = pm.queryIntentActivities(activityIntent, 0);
    List<String> packagesSupportingCustomTabs = new ArrayList<>();
    for (ResolveInfo info : resolvedActivityList) {
        Intent serviceIntent = new Intent();
        serviceIntent.setAction(ACTION_CUSTOM_TABS_CONNECTION);
        serviceIntent.setPackage(info.activityInfo.packageName);
        if (pm.resolveService(serviceIntent, 0) != null) {
            packagesSupportingCustomTabs.add(info.activityInfo.packageName);
        }
    }

    // Now packagesSupportingCustomTabs contains all apps that can handle both VIEW intents
    // and service calls.
    if (packagesSupportingCustomTabs.isEmpty()) {
        sPackageNameToUse = null;
    } else if (packagesSupportingCustomTabs.size() == 1) {
        sPackageNameToUse = packagesSupportingCustomTabs.get(0);
    } else if (!TextUtils.isEmpty(defaultViewHandlerPackageName)
            && !hasSpecializedHandlerIntents(context, activityIntent)
            && packagesSupportingCustomTabs.contains(defaultViewHandlerPackageName)) {
        sPackageNameToUse = defaultViewHandlerPackageName;
    } else if (packagesSupportingCustomTabs.contains(STABLE_PACKAGE)) {
        sPackageNameToUse = STABLE_PACKAGE;
    } else if (packagesSupportingCustomTabs.contains(BETA_PACKAGE)) {
        sPackageNameToUse = BETA_PACKAGE;
    } else if (packagesSupportingCustomTabs.contains(DEV_PACKAGE)) {
        sPackageNameToUse = DEV_PACKAGE;
    } else if (packagesSupportingCustomTabs.contains(LOCAL_PACKAGE)) {
        sPackageNameToUse = LOCAL_PACKAGE;
    }
    return sPackageNameToUse;
}
 
Example 17
Project: Saiy-PS   File: NotificationHelper.java   View Source Code Vote up 5 votes
/**
 * Show an emotion analysis notification.
 *
 * @param ctx the application context
 */
public static void createIdentificationNotification(@NonNull final Context ctx, final int condition,
                                                    final boolean success, @Nullable final Speaker.Confidence confidence) {
    if (DEBUG) {
        MyLog.i(CLS_NAME, "createIdentificationNotification");
    }

    try {

        final Intent actionIntent = new Intent(NotificationService.INTENT_CLICK);
        actionIntent.setPackage(ctx.getPackageName());
        actionIntent.putExtra(NotificationService.CLICK_ACTION,
                NotificationService.NOTIFICATION_IDENTIFICATION);
        actionIntent.putExtra(LocalRequest.EXTRA_CONDITION, condition);

        switch (condition) {

            case Condition.CONDITION_IDENTIFY:
                actionIntent.putExtra(Speaker.EXTRA_IDENTIFY_OUTCOME, confidence);
                break;
            case Condition.CONDITION_IDENTITY:
                actionIntent.putExtra(Speaker.EXTRA_IDENTITY_OUTCOME, success);
                break;
        }

        final PendingIntent pendingIntent = PendingIntent.getService(ctx,
                NotificationService.NOTIFICATION_IDENTIFICATION,
                actionIntent, PendingIntent.FLAG_CANCEL_CURRENT);

        final NotificationCompat.Builder builder = new NotificationCompat.Builder(ctx, NOTIFICATION_CHANNEL_INFORMATION);

        builder.setContentIntent(pendingIntent).setSmallIcon(android.R.drawable.ic_menu_info_details)
                .setTicker(ctx.getString(R.string.vocal_notification_ticker)).setWhen(System.currentTimeMillis())
                .setContentTitle(ctx.getString(ai.saiy.android.R.string.app_name))
                .setContentText(ctx.getString(R.string.vocal_notification_text))
                .setAutoCancel(true);

        final Notification not = builder.build();
        final NotificationManager notificationManager = (NotificationManager)
                ctx.getSystemService(Context.NOTIFICATION_SERVICE);
        notificationManager.notify(NotificationService.NOTIFICATION_IDENTIFICATION, not);

    } catch (final Exception e) {
        if (DEBUG) {
            MyLog.e(CLS_NAME, "createIdentificationNotification failure");
            e.printStackTrace();
        }
    }
}
 
Example 18
Project: XPrivacy   File: ActivitySettings.java   View Source Code Vote up 5 votes
private void flush() {
	Intent flushIntent = new Intent(UpdateService.cFlush);
	flushIntent.setPackage(getPackageName());
	startService(flushIntent);
	Toast.makeText(ActivitySettings.this, getString(R.string.msg_done), Toast.LENGTH_LONG).show();
}
 
Example 19
Project: AutoScrollr   File: ChromePackageHelper.java   View Source Code Vote up 5 votes
public static String getPackageNameToUse(Context context) {
    if (sPackageNameToUse != null) return sPackageNameToUse;

    PackageManager pm = context.getPackageManager();

    Intent activityIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.example.com"));
    ResolveInfo defaultViewHandlerInfo = pm.resolveActivity(activityIntent, 0);
    String defaultViewHandlerPackageName = null;
    if (defaultViewHandlerInfo != null) {
        defaultViewHandlerPackageName = defaultViewHandlerInfo.activityInfo.packageName;
    }

    // Get all apps that can handle VIEW intents.
    List<ResolveInfo> resolvedActivityList = pm.queryIntentActivities(activityIntent, 0);
    List<String> packagesSupportingCustomTabs = new ArrayList<>();
    for (ResolveInfo info : resolvedActivityList) {
        Intent serviceIntent = new Intent();
        serviceIntent.setAction(CustomTabsService.ACTION_CUSTOM_TABS_CONNECTION);
        serviceIntent.setPackage(info.activityInfo.packageName);
        if (pm.resolveService(serviceIntent, 0) != null) {
            packagesSupportingCustomTabs.add(info.activityInfo.packageName);
        }
    }

    // Now packagesSupportingCustomTabs contains all apps that can handle both VIEW intents
    // and service calls.
    if (packagesSupportingCustomTabs.isEmpty()) {
        sPackageNameToUse = null;
    } else if (packagesSupportingCustomTabs.size() == 1) {
        sPackageNameToUse = packagesSupportingCustomTabs.get(0);
    } else if (!TextUtils.isEmpty(defaultViewHandlerPackageName)
            && !hasSpecializedHandlerIntents(context, activityIntent)
            && packagesSupportingCustomTabs.contains(defaultViewHandlerPackageName)) {
        sPackageNameToUse = defaultViewHandlerPackageName;
    } else if (packagesSupportingCustomTabs.contains(STABLE_PACKAGE)) {
        sPackageNameToUse = STABLE_PACKAGE;
    } else if (packagesSupportingCustomTabs.contains(BETA_PACKAGE)) {
        sPackageNameToUse = BETA_PACKAGE;
    } else if (packagesSupportingCustomTabs.contains(DEV_PACKAGE)) {
        sPackageNameToUse = DEV_PACKAGE;
    } else if (packagesSupportingCustomTabs.contains(LOCAL_PACKAGE)) {
        sPackageNameToUse = LOCAL_PACKAGE;
    }
    return sPackageNameToUse;
}
 
Example 20
Project: LeCatApp   File: CaptureActivityHandler.java   View Source Code Vote up 5 votes
@Override
public void handleMessage(Message message) {
	switch (message.what) {
	case R.id.restart_preview: // 准备进行下一次扫描
		Log.d(TAG, "Got restart preview message");
		restartPreviewAndDecode();
		break;
	case R.id.decode_succeeded:
		Log.d(TAG, "Got decode succeeded message");
		state = State.SUCCESS;
		Bundle bundle = message.getData();
		Bitmap barcode = null;
		float scaleFactor = 1.0f;
		if (bundle != null) {
			byte[] compressedBitmap = bundle
					.getByteArray(DecodeThread.BARCODE_BITMAP);
			if (compressedBitmap != null) {
				barcode = BitmapFactory.decodeByteArray(compressedBitmap,
						0, compressedBitmap.length, null);
				// Mutable copy:
				barcode = barcode.copy(Bitmap.Config.ARGB_8888, true);
			}
			scaleFactor = bundle
					.getFloat(DecodeThread.BARCODE_SCALED_FACTOR);
		}
		activity.handleDecode((Result) message.obj, barcode, scaleFactor);
		break;
	case R.id.decode_failed:
		// We're decoding as fast as possible, so when one decode fails,
		// start another.
		state = State.PREVIEW;
		cameraManager.requestPreviewFrame(decodeThread.getHandler(),
				R.id.decode);
		break;
	case R.id.return_scan_result:
		Log.d(TAG, "Got return scan result message");
		activity.setResult(Activity.RESULT_OK, (Intent) message.obj);
		activity.finish();
		break;
	case R.id.launch_product_query:
		Log.d(TAG, "Got product query message");
		String url = (String) message.obj;

		Intent intent = new Intent(Intent.ACTION_VIEW);
		intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET);
		intent.setData(Uri.parse(url));

		/**
		 * 这段代码是zxing项目组想要用chrome打开浏览器浏览url
		 */
		ResolveInfo resolveInfo = activity.getPackageManager()
				.resolveActivity(intent, PackageManager.MATCH_DEFAULT_ONLY);
		String browserPackageName = null;
		if (resolveInfo != null && resolveInfo.activityInfo != null) {
			browserPackageName = resolveInfo.activityInfo.packageName;
			Log.d(TAG, "Using browser in package " + browserPackageName);
		}

		// Needed for default Android browser / Chrome only apparently
		if ("com.android.browser".equals(browserPackageName)
				|| "com.android.chrome".equals(browserPackageName)) {
			intent.setPackage(browserPackageName);
			intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
			intent.putExtra(Browser.EXTRA_APPLICATION_ID,
					browserPackageName);
		}

		try {
			activity.startActivity(intent);
		} catch (ActivityNotFoundException ignored) {
			Log.w(TAG, "Can't find anything to handle VIEW of URI " + url);
		}
		break;
	}
}