Android Open Source - appboy-android-sdk View Action

From Project

Back to project page appboy-android-sdk.


The source code is released under:

Copyright (c) 2014 Appboy, Inc. All rights reserved. * Use of source code or binaries contained within Appboy's Android SDK is permitted only to enable use of the Appboy platform by customers of Appb...

If you think the Android project appboy-android-sdk listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.appboy.ui.actions;
/* www.  j  a v a  2  s  .c  o m*/
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;

 * Fires an android.intent.action.VIEW action with the given URI.
public class ViewAction implements IAction {
  private final Intent mIntent;

  public ViewAction(Uri uri) {
    this(uri, null);

  public ViewAction(Uri uri, Bundle extras) {
    mIntent = new Intent(Intent.ACTION_VIEW);

    if (extras != null) {

  public void execute(Context context) {
    if (mIntent.resolveActivity(context.getPackageManager()) != null) {

Java Source Code List