Skip to content

Instantly share code, notes, and snippets.

@korrio
Created February 4, 2016 15:06
Show Gist options
  • Select an option

  • Save korrio/7ebd6224c78ed7f31b4d to your computer and use it in GitHub Desktop.

Select an option

Save korrio/7ebd6224c78ed7f31b4d to your computer and use it in GitHub Desktop.
aaa
Intent intent = new Intent(activity, PhotoPagerActivity.class);
ArrayList<String> urls = new ArrayList<>();
String imageUrl = dataObj.optString("url");
urls.add(0, imageUrl);
intent.putExtra("current_item", 1);
intent.putStringArrayListExtra("photos", urls);
activity.startActivity(intent);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment