Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p><strong>UPDATE</strong>: The other answer, using <code>EXTRA_INITIAL_INTENTS</code>, is a better one at this point. At the time I wrote my answer, <code>EXTRA_INITIAL_INTENTS</code> did not yet exist, as it was added in API Level 5.</p> <blockquote> <p>So is there a way to combine both or am I going to have to offer a menu to do one or the other from within my application?</p> </blockquote> <p>Write your own gallery that has the features you desire.</p> <p>I would think a menu would be simpler.</p> <blockquote> <p>Seems like it would be a common use case...surely I'm missing something?</p> </blockquote> <p>The developer next to you will think the gallery should allow you to pick from the local gallery or else hop out to Flickr to make a selection from there. Another developer will think the camera should not only allow to "take a picture" via the camera but to "take a picture" via choosing something from the gallery, inverting things from the way you envision it. Yet another developer will think that the gallery should allow picking from the local gallery, or Flickr, or the camera, or a network-attached webcam. Still another developer will think that the gallery is stupid and users should just pick files via a file explorer. And so on.</p> <p>All of this in an environment (mobile phones) where flash for the OS is at a premium.</p> <p>Hence, IMHO, it is not completely shocking that the core Android team elected to provide building blocks for you to assemble as you see fit, rather than trying to accommodate every possible pattern.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload