1187 Commits

Author SHA1 Message Date
Andrew Solovay
de0c99e89b Noted that OnSharedPreferenceChangeListener does not store a strong reference
to the listener.

Because of this, the listener is susceptible to garbage collection unless the
caller preserves a strong reference to it. We suggest that the caller store a
reference to the listener in an instance field of an object that will exist as
long as the listener is needed.

Also fixed code sample formatting in Settings.jd (some lines were overlong).

Docs are staged in:

http://asolovay.mtv:8901/guide/topics/ui/settings.html#Listening

http://asolovay.mtv:8901/reference/android/content/SharedPreferences.html#registerOnSharedPreferenceChangeListener(android.content.SharedPreferences.OnSharedPreferenceChangeListener)

Bug: 10437648
Change-Id: I48f5b87fa2ca7a240661d0cc00114d225819d54d
2014-05-19 16:05:06 -07:00
Dirk Dougherty
3506ac87c0 Doc change: Updated content for distribute.
Change-Id: I612fbb8e5b7aedd73c0e633e5517bb89375760ed
2014-05-14 14:10:51 -07:00
Robert Ly
0689fad8cc Merge "docs: fix some notification code for wear stacks" into klp-docs 2014-05-10 02:40:40 +00:00
Robert Ly
37cb8d7530 docs: fix some notification code for wear stacks
Change-Id: Iea6b444480b161ab08a9ba02dbabb22773862cf0
2014-05-09 17:01:21 -07:00
Andrew Solovay
3701cbef0f doc: Documented how to set notification priority.
This is related to change http://ag/459520, where I added info about appropriate
priority constants for setPriority(int)

Doc is staged to:

http://asolovay.mtv:8998/guide/topics/ui/notifiers/notifications.html#Priority

Bug: 13514649
Change-Id: I792e2f02614c88fbcfe1b0714a9c10da27eb6c37
2014-05-08 17:58:30 -07:00
David Friedman
5fb79db94e Fixed missing line break, broken link.
Bug: 13975265
Staged at: http://boku:9195/guide/topics/manifest/manifest-element.html

Change-Id: I69f7e56f9b261c776672161cfb1649c4cd72c96e
2014-04-25 14:02:16 -07:00
Andrew Solovay
fdc9e56ff8 Correcting name of 'Backup & reset' menu.
Doc is staged at
http://asolovay.mtv.corp.google.com:9000/guide/topics/data/backup.html#Testing

Bug: 14253720
Change-Id: Ib8eb213d8708c02c93c8bc93233db2c828caa925
2014-04-24 15:59:45 -07:00
Andrew Solovay
026c82b191 Doc: Fixed a code sample to use standard methods. Also some formatting
tweaks.

Added blank lines for readability, and broke some long lines
so code samples don't need a scroll bar.

(Update: Fixed indentation that I broke on a code sample.)

Bug: 14045051
Change-Id: I1cf08b899ec55f9093545e71861c84120e4b56a1
2014-04-22 19:29:07 -07:00
Andrew Solovay
3555e4aef0 Fixed a typo in a code sample.
Fix is staged to: http://asolovay.mtv.corp.google.com:9000/guide/topics/ui/actionbar.html#Dropdown

Bug: 14043905

Change-Id: I8b71d55d51bf88ab9790309e6e63e755d03b2c85
2014-04-22 00:04:39 +00:00
Joe Fernandez
55b38fadd0 docs: MediaRouteProvider Developer Guide
Change-Id: I04e63a8972e29d67af6035462fd2808a562ac241
2014-04-02 15:35:15 -07:00
Ricardo Cervera
a7925384c3 docs: Added new sensor types. Bug: 10674725
Change-Id: Ib378e3a1b3f1812b966c53a0eda6319f1bea464b
2014-03-21 09:59:22 -07:00
Scott Main
52d5190052 fix typos
Change-Id: I28bcbf5ae5fade081d9b71701f5568145d700e9c
2014-02-26 10:34:54 -08:00
Dirk Dougherty
271c8f12c8 Merge "Doc change: minor edits to support easier extraction of document summaries." into klp-docs 2014-02-12 23:20:41 +00:00
Joe Fernandez
f25bc75f59 Merge "MediaRouter Developer Guide" into klp-docs 2014-02-12 23:13:01 +00:00
Joe Fernandez
70a2adc817 MediaRouter Developer Guide
staging: http://joefernandez2.mtv.corp.google.com:8210/guide/topics/media/mediarouter.html

Change-Id: I764828066de8b233e61ad8a5d4a102a4d231fa82
2014-02-12 14:12:15 -08:00
Dirk Dougherty
3155825c25 Doc change: minor edits to support easier extraction of document summaries.
Change-Id: I1a15a1d233464d6c8d35a741c54932412dea28ee
2014-02-12 13:31:14 -08:00
Ricardo Cervera
670944aa72 Merge "docs: Added missing elements in uses-feature. Bug: 12913153" into klp-docs 2014-02-12 21:05:32 +00:00
Ricardo Cervera
15ab08f94a docs: Added missing elements in uses-feature. Bug: 12913153
Change-Id: Ib4d5a8bf5b80dcde68ffd031381b0104592b101b
Review: http://quixote.mtv.corp.google.com:8001/guide/topics/manifest/uses-feature-element.html
2014-02-07 10:48:17 -08:00
Ricardo Cervera
893ee42c72 docs: Updated the retaining an object during conf change. Bug: 10303533
Replaced use of deprecated methods with retained fragments.

Change-Id: I0f0a045da88f9817077070729ef0af283bea93e4
Review: http://quixote.mtv.corp.google.com:8007/guide/topics/resources/runtime-changes.html
2014-02-06 10:57:36 -08:00
Joe Fernandez
acf2b906b3 Merge "Fixing bugs in MediaPlayer docs" into klp-docs 2014-01-16 22:46:17 +00:00
quddusc
cc29a17056 Merge "docs: Added missing links pointing to parent containers for <meta-data> manifest element. Bug: 11797515" into klp-docs 2014-01-14 20:29:28 +00:00
Ricardo Cervera
7a8acfa68e docs: Fixed typo in AlertDialog code snippet.
Bug-ID:10797361

Review URL:
http://quixote.mtv.corp.google.com:8001/guide/topics/ui/dialogs.html#AlertDialog

Change-Id: If93e140d624c2a4360a27bfae630f19fce24d7ab
2014-01-13 16:44:19 -08:00
Joe Fernandez
6bfef51318 Fixing bugs in MediaPlayer docs
- b/5967189
- b/10641397

Change-Id: Id21c3f13c312a3e5d5898d2be7855599cb8beff8
2014-01-06 15:23:47 -08:00
quddusc
c3e5498704 docs: Added missing links pointing to parent containers for <meta-data> manifest element.
Bug: 11797515

Change-Id: Id6491615166c6c6dd164083cd7357de790bb67c7
2014-01-06 14:30:59 -08:00
quddusc
be64abc025 docs: Added a statement for "android:name" attribute indicating that the descriptor strings are case-sensitive.
Bug: 11926096
Change-Id: I533dcbb13ba54bc7ff35311406b7acdfc38fc1b2
2013-12-20 15:14:42 -08:00
quddusc
8b03f63a0f docs: Added missing elements under "can contain:" list in manifest-element.html.
Bug: 5793521

Change-Id: I4340a8d043ebcf80634ad8cc1967b2a476a151d8
2013-12-20 15:02:24 -08:00
Scott Main
9e36f58899 Merge "update storage doc for secondary external storage in KK and add some new sample code and remove documentation for APIs below level 8 and add information about permission changes in KK bug: 11907502" into klp-docs 2013-12-17 21:54:48 +00:00
Scott Main
5cdadb48d0 initial shuffle of the API guide nav to add introduction
* revise to the Compatibility doc, put it in Intro
* put Permissions in Intro
* put App Fundamentals in Intro
* move Manifest docs to the top of side nav tree
* move App Resources above UI
Will perform another fix to the Best Practices section
later to deprecate some docs there and point to Training instead

Change-Id: I88a8f94167ba15e97eb3bbbc08fd82dd82498e4b
2013-12-17 13:14:17 -08:00
Trevor Johns
7643785aa8 Docs: Clean up HCE dev guide
Fixed various typos and minor errors in the HCE dev guide. Also added a
note to clarify when CATEGORY_PAYMENT should be used vs CATEGORY_OTHER.

Issue: 11991294

Change-Id: Ifa3f30fe5f35715a4cea3f3565b6f3771f44814a
Signed-off-by: Trevor Johns <trevorjohns@google.com>
2013-12-16 14:37:26 -08:00
Scott Main
d13afd69c0 update storage doc for secondary external storage in KK
and add some new sample code
and remove documentation for APIs below level 8
and add information about permission changes in KK
bug: 11907502

Change-Id: Id41c532fc2b05e59ab2cdf2b2a4ce368f7c2dba1
2013-12-13 16:42:42 -08:00
Katie McCormick
a58967a989 Doc update: removed the word "new".
Change-Id: I8764d94e0f924feeae21a0230dc4f50eacf7754a
2013-12-11 18:17:28 -08:00
Scott Main
df75bdcc55 rewrite intent guide and add doc with intents supported by platform apps
Change-Id: Ida7ccbc693e7635198fd368b9560b7843266c7cc
2013-12-10 15:53:37 -08:00
Joe Fernandez
3ffaadc11e docs: Platform image version release notes Android 4.4.2
Change-Id: I0ad9b672d077f9154a563868248e63348f7ffdae
2013-12-06 14:15:54 -08:00
Katie McCormick
4181da0296 Merge "Doc update: Minor additions to storage doc" into klp-docs 2013-11-21 19:26:36 +00:00
Katie McCormick
546f0af6be Doc update: Minor additions to storage doc
Change-Id: I59aa961a94393221be3c5f847a9fc82aa43e3a6f
2013-11-21 11:17:02 -08:00
Scott Main
64fedb7725 add new video button to some pages
Change-Id: Ie1f1875d041ff662aee709cd5f7d3110e438d0d5
2013-11-20 12:34:43 -08:00
Scott Main
c71a22255d clarification to the uses-configuration tag to discourage its use.
Change-Id: I5ee9ca93e8debaf2dfb8f1018b77af4486f1e516
2013-11-13 18:03:06 -08:00
Scott Main
45d9321963 fix typo in caption and XML spacing
Change-Id: I28adb9e6b5fb96f9f25a62766a197bb0a06bfdd0
2013-11-12 10:54:53 -08:00
Dirk Dougherty
d296e25a32 eoc change: Add developer stories for localization.
Change-Id: Ia89bddf9d57674272dbcef98a140b557e520e8be
2013-11-11 01:48:35 +00:00
Scott Main
334cc4874f add maxSdkVersion attribute to uses-permission doc
Change-Id: I612aeb9444a360ca3ebf4675dca05145beae5b04
2013-11-06 17:46:00 -08:00
Scott Main
57ecb14baf link fix to kick the build server
Change-Id: I6318f884b56a7f378b8a6884344b4058f95bf117
2013-10-31 17:26:08 -07:00
Katie McCormick
f0c2bfd1c7 Doc change: new Storage Access Framework doc
Change-Id: I53393bfbadaf7cd5be95a7b252a2f4b060554db5
(cherry picked from commit c46e6767f578dc70bf1f1f38be648cef59130e3c)
2013-10-31 21:17:07 +00:00
Scott Main
6af82cf924 add HCE dev guide
Change-Id: I48c196f7f4577304b660c52ba5cd847c0cabfaff
(cherry picked from commit c988ee664e9956901df61e2219c92f50bcb60bc0)
2013-10-31 16:38:25 +00:00
Joe Fernandez
24a18f432c docs: Android 4.4 platform version release notes
Change-Id: I264a95412bcc80e6bf9fcf734bc6b9e93a2570b6
2013-10-29 09:28:35 -07:00
David Friedman
afd85f820e am c6d085a5: am 37453a83: Merge "Docs: Changed" into jb-mr2-docs
* commit 'c6d085a5179311ba3d7395360e6e427fa4fb076c':
  Docs: Changed
2013-09-27 10:37:27 -07:00
David Friedman
f0a5a844a9 am 165489da: am 2fe85a10: Merge "Docs: "radio button"->"checkbox" in "Tip" at bottom of doc Bug: 10641902" into jb-mr2-docs
* commit '165489da28ff5b77d84095461934e86da8591f85':
  Docs: "radio button"->"checkbox" in "Tip" at bottom of doc Bug: 10641902
2013-09-27 10:37:22 -07:00
David Friedman
37453a8353 Merge "Docs: Changed" into jb-mr2-docs 2013-09-27 17:25:42 +00:00
David Friedman
2e7c8e952c Docs: Changed
// Send the negative button event back to the host activity
mListener.onDialogPositiveClick(NoticeDialogFragment.this);

to

// Send the negative button event back to the host activity
mListener.onDialogNegativeClick(NoticeDialogFragment.this);

Bug: 10641712
Change-Id: Ib6af3318928c56cf9d12adbffbd7edff23f116db
2013-09-26 14:28:51 -07:00
David Friedman
e440cde0c4 Docs: "radio button"->"checkbox" in "Tip" at bottom of doc
Bug: 10641902

Change-Id: Iff5190dd5c6ce50530233f9ac7e8aed4c9b83327
2013-09-25 10:43:17 -07:00
Joe Fernandez
bf0f07018c am fe2d0c4c: am 3ce21086: Merge "docs: RenderScript Dev Guide fixes" into jb-mr2-docs
* commit 'fe2d0c4cbe852de9d3b247cff3013db73d98dce4':
  docs: RenderScript Dev Guide fixes
2013-09-18 21:31:08 -07:00