NoteIntents | Android Developers

Quicknav Quicknav
Links

- Google Play Developer Console
- Android Developers Blog
- About Android

Android Sites

- Android.com
- Android Developers
- Android Open Source Project

Language
close

- - About
  - Wear
  - TV
  - Auto
- - Get Started
  - Devices
  - Style
  - Patterns
  - Building Blocks
  - Downloads
  - Videos
- - Training
  - API Guides
  - Reference
  - Tools
  - Google Services
  - Samples
- - Google Play
  - Essentials
  - Get Users
  - Engage & Retain
  - Monetize
  - Analyze
  - Tools & Reference
  - Developer Stories

## Results

Loading...
Summary: Constants | Inherited Methods | [Expand All]
public class

# NoteIntents

extends Object

java.lang.Object
↳ | com.google.android.gms.actions.NoteIntents

## Class Overview

Constants for intents to create and modify notes from a Search Action.

## Summary

Constants
String | ACTION_APPEND_NOTE | Intent action for appending to an existing note.
String | ACTION_CREATE_NOTE | Intent action for creating a note.
String | ACTION_DELETE_NOTE | Intent action for removing an existing note.
String | EXTRA_NAME | Intent extra specifying an optional title or subject for the note as a string.
String | EXTRA_NOTE_QUERY | Intent extra specifying an unstructured query for a note as a string.
String | EXTRA_TEXT | Intent extra specifying the text of the note as a string.

[Expand] Inherited Methods
From class java.lang.Object
Object | clone()
boolean | equals(Object arg0)
void | finalize()
final Class<?> | getClass()
int | hashCode()
final void | notify()
final void | notifyAll()
String | toString()
final void | wait()
final void | wait(long arg0, int arg1)
final void | wait(long arg0)

## Constants

#### public static final String ACTION_APPEND_NOTE

Intent action for appending to an existing note. The intent should include an extra to specify the text `EXTRA_TEXT` to append.

The intent should specify the note to append to with the `EXTRA_NOTE_QUERY` extra. Alternatively the note can be specified using `setData(Uri)` - the intent data URI will always be preferred over `EXTRA_NOTE_QUERY`. If the note is ambiguous, the activity MUST ask the user to disambiguate.

The activity MUST verify the result with the user before committing the change.

Constant Value: "com.google.android.gms.actions.APPEND_NOTE"

#### public static final String ACTION_CREATE_NOTE

Intent action for creating a note. The intent may optionally include an extra to specify the title or subject of the note `EXTRA_NAME`.

For a text note the data mimetype will be "text/plain" and the content will be included in the `EXTRA_TEXT`.

For an audio note, the audio data will be attached as `ClipData` with the data mimetype of "audio/<type>".

Activities should restrict the types of content they can handle in the intent filter.

The activity MUST verify the result with the user before committing the change.

Constant Value: "com.google.android.gms.actions.CREATE_NOTE"

#### public static final String ACTION_DELETE_NOTE

Intent action for removing an existing note.

The intent should specify the note to append to with the `EXTRA_NOTE_QUERY` extra. Alternatively the note can be specified using `setData(Uri)` - the intent data URI will always be preferred over `EXTRA_NOTE_QUERY`. If the note is ambiguous, the activity MUST ask the user to disambiguate.

The activity MUST verify the result with the user before committing the change.

Constant Value: "com.google.android.gms.actions.DELETE_NOTE"

#### public static final String EXTRA_NAME

Intent extra specifying an optional title or subject for the note as a string. The name can be used to locate the note later with `EXTRA_NOTE_QUERY`.

Constant Value: "com.google.android.gms.actions.extra.NAME"

#### public static final String EXTRA_NOTE_QUERY

Intent extra specifying an unstructured query for a note as a string. This could search the note name or the text content of the note.

Constant Value: "com.google.android.gms.actions.extra.NOTE_QUERY"

#### public static final String EXTRA_TEXT

Intent extra specifying the text of the note as a string.

Constant Value: "com.google.android.gms.actions.extra.TEXT"