Intent from Android Notepad example
<pre><code>action: android.intent.action.PICK
data: content://com.google.provider.NotePad/notes
    Asks the activity to display a list of the notes under content://com.google.provider.NotePad/notes. The user can then pick a note from the list, and the activity will return the URI for that item back to the activity that started the NoteList activity.

action: android.intent.action.GET_CONTENT
data type: vnd.android.cursor.item/vnd.google.note
    Asks the activity to supply a single item of Note Pad data.
</code></pre>

<p>The above is directly from Android Notepad example. </p>

<p>My question is, why have they defined two intent actions that perform the same task?? When will one or the other action be performed?</p>

<p>Also in the code, they have defined</p>

<pre><code>String action = getIntent().getAction();
        if (Intent.ACTION_PICK.equals(action) || Intent.ACTION_GET_CONTENT.equals(action)) {
</code></pre>

<p>Could someone please clarify, when will an action be set and on ListItemClick how will getAction resolve to either ACTION_PICK or ACTION_GET_CONTENT</p>

<p>Thanks in advance</p>
