Example usage for android.content Intent putStringArrayListExtra

List of usage examples for android.content Intent putStringArrayListExtra

Introduction

In this page you can find the example usage for android.content Intent putStringArrayListExtra.

Prototype

public @NonNull Intent putStringArrayListExtra(String name, ArrayList<String> value) 

Source Link

Document

Add extended data to the intent.

Usage

From source file:com.peoit.twopointcf.ui.activity.ViewPagerPhotoViewActivity.java

public static void startThisActivity(ArrayList<String> imgList, int position, Activity context) {
    Intent intent = new Intent(context, ViewPagerPhotoViewActivity.class);
    intent.putStringArrayListExtra("imgList", imgList);
    intent.putExtra("position", position);
    context.startActivity(intent);//www. j av a2s . c  o  m
}

From source file:com.commov.app.dv.PhotoViewActivity.java

public static boolean start(Context context, ArrayList<String> imgsPath, int startShowPosition) {
    if (context == null || imgsPath == null) {
        return false;
    }/*from  w ww . j  av a  2 s  .co  m*/
    Intent intent = new Intent(context, PhotoViewActivity.class);
    intent.putStringArrayListExtra(KEY_IMAGE_ARRAY, imgsPath);
    intent.putExtra(KEY_IMAGE_START_POSITION, startShowPosition);
    context.startActivity(intent);
    return true;
}

From source file:com.guodong.sun.guodong.activity.MultiGifActivity.java

public static void startActivity(Context context, int pos, ArrayList<String> list, int width, int height) {
    Intent intent = new Intent(context, MultiGifActivity.class);
    intent.putExtra(MULTI_IMAGE_POS, pos);
    intent.putStringArrayListExtra(MULTI_IMAGE_URL, list);
    intent.putExtra(MULTI_IMAGE_WIDTH, width);
    intent.putExtra(MULTI_IMAGE_HEIGHT, height);
    context.startActivity(intent);//from w w w  .jav  a  2s  .  c  o  m
    ((MainActivity) context).overridePendingTransition(R.anim.zoom_in, R.anim.zoom_out);
}

From source file:com.guodong.sun.guodong.activity.MultiPictureActivity.java

public static void startActivity(Context context, int pos, ArrayList<String> list) {
    Intent intent = new Intent(context, MultiPictureActivity.class);
    intent.putExtra(MULTI_IMAGE_POS, pos);
    intent.putStringArrayListExtra(MULTI_IMAGE_URL, list);
    context.startActivity(intent);/*ww  w. ja va2s . co  m*/
    ((MainActivity) context).overridePendingTransition(R.anim.zoom_in, R.anim.zoom_out);
}

From source file:eu.power_switch.gui.dialog.AddPhoneNumberDialog.java

/**
 * Used to notify the setup page that some info has changed
 *
 * @param context any suitable context//from  www .ja  v  a 2  s.com
 */
public static void sendPhoneNumbersAddedBroadcast(Context context, Set<String> phoneNumbers) {
    Intent intent = new Intent(LocalBroadcastConstants.INTENT_CALL_PHONE_NUMBER_ADDED);
    intent.putStringArrayListExtra(KEY_PHONE_NUMBER, new ArrayList<>(phoneNumbers));
    LocalBroadcastManager.getInstance(context).sendBroadcast(intent);
}

From source file:eu.power_switch.gui.dialog.AddSsidDialog.java

/**
 * Used to notify the setup page that some info has changed
 *
 * @param context any suitable context//from w ww. j a v a  2 s  .  c o m
 */
public static void sendSsidAddedBroadcast(Context context, ArrayList<String> ssid) {
    Intent intent = new Intent(LocalBroadcastConstants.INTENT_GATEWAY_SSID_ADDED);
    intent.putStringArrayListExtra(KEY_SSID, ssid);
    LocalBroadcastManager.getInstance(context).sendBroadcast(intent);
}

From source file:tv.acfun.a63.ImagePagerActivity.java

public static void startNetworkImage(Context context, ArrayList<String> list, int index, int aid,
        String title) {//w  w w .  j  a  va  2 s.  c  o  m
    Intent intent = new Intent(context, ImagePagerActivity.class);
    intent.putStringArrayListExtra(EXTRA_IMAGES, list);
    intent.putExtra(EXTRA_INDEX, index);
    intent.putExtra("aid", aid);
    intent.putExtra("title", title);
    context.startActivity(intent);
}

From source file:com.ruesga.rview.misc.ActivityHelper.java

public static void openStatsActivity(Context ctx, String title, String subtitle, int type, String id,
        ChangeQuery filter, String extra) {
    Intent intent = new Intent(ctx, TabFragmentActivity.class);

    ArrayList<String> args = new ArrayList<>(
            Arrays.asList(new String[] { String.valueOf(type), id, filter.toString(), extra }));
    intent.putExtra(Constants.EXTRA_TITLE, title);
    intent.putExtra(Constants.EXTRA_SUBTITLE, subtitle);
    intent.putExtra(Constants.EXTRA_FRAGMENT, StatsFragment.class.getName());
    intent.putStringArrayListExtra(Constants.EXTRA_FRAGMENT_ARGS, args);
    intent.putExtra(Constants.EXTRA_HAS_PARENT, true);
    ctx.startActivity(intent);/* w  ww  .  jav a 2 s . co m*/
}

From source file:com.ruesga.rview.misc.ActivityHelper.java

public static void openRelatedChangesActivity(Context ctx, ChangeInfo change, String revisionId) {
    Intent intent = new Intent(ctx, TabFragmentActivity.class);

    final String title = ctx.getString(R.string.change_details_title, change.legacyChangeId);
    ArrayList<String> args = new ArrayList<>(Arrays.asList(new String[] { String.valueOf(change.legacyChangeId),
            change.changeId, change.project, revisionId, change.topic }));
    intent.putExtra(Constants.EXTRA_TITLE, title);
    intent.putExtra(Constants.EXTRA_SUBTITLE, change.changeId);
    intent.putExtra(Constants.EXTRA_FRAGMENT, RelatedChangesFragment.class.getName());
    intent.putStringArrayListExtra(Constants.EXTRA_FRAGMENT_ARGS, args);
    intent.putExtra(Constants.EXTRA_HAS_PARENT, true);
    ctx.startActivity(intent);/*from  ww w  .  jav a2 s.  c o  m*/
}

From source file:com.orangelabs.rcs.ri.messaging.chat.group.GroupChatView.java

/**
 * Initiate a new Group Chat/*from   w  ww .  j  av  a 2  s. c  o m*/
 *
 * @param ctx context
 * @param subject subject
 * @param participants list of participants
 */
public static void initiateGroupChat(Context ctx, String subject, ArrayList<String> participants) {
    Intent intent = new Intent(ctx, GroupChatView.class);
    intent.setAction(INTITIATE_GROUPCHAT);
    intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
    intent.putStringArrayListExtra(GroupChatView.EXTRA_PARTICIPANTS, participants);
    intent.putExtra(GroupChatView.EXTRA_MODE, GroupChatMode.OUTGOING);
    intent.putExtra(GroupChatView.EXTRA_SUBJECT, subject);
    ctx.startActivity(intent);
}