suarezjulian / WizardPager

Wizard Pager is a library that provides an example implementation of a Wizard UI on Android, it's based of Roman Nurik's wizard pager (https://github.com/romannurik/android-wizardpager)
Apache License 2.0
514 stars 148 forks source link

How to use ImagePage? #9

Closed Wirwing closed 9 years ago

Wirwing commented 9 years ago

I am trying to add image page to wizard. Pick chooser/capture works, but I don't know how to handle activity's result or set page value.

Thanks in advance!

suarezjulian commented 9 years ago

The image page stores an URI of the selected image, it doesn't matter if this was a new photo taken by the user or a an image selected from the gallery. You can then use the URI to get the actual bitmap and store/show/send somewhere else.

If you want to set the page's value you need to supply a valid URI.

If you need more info on URIs, checkout the content on content providers on android docs (http://developer.android.com/guide/topics/providers/content-providers.html)

Wirwing commented 9 years ago

On Lollipop ImagePage/ImageFragmet is throwing "Activity result no fragment exists for index 0x40000" after selecting an image or taking a picture.