238 Commits

Author SHA1 Message Date
Kevin Hufnagle
908d74a3b2 docs: Corrected reference link for NotificationManager.notify().
The end of the first paragraph of the "Creating a Notification"
section (within the "Notifications" page) now links to the correct
version of notify() -- i.e. the one within the NotificationManager
class.

Bug: 27708810
Change-Id: I7cc9608f646518bf5f7fc3f4a231c9dece693363
2016-03-30 14:35:57 -07:00
Kevin Hufnagle
4a0f5c88d6 docs: Added curly brace in sample code method opening.
Added a curly brace at the beginning of "onProvideShadowMetrics()."
This method appears within the sample code associated with step 2 of
the "Designing a Drag and Drop Operation" section of the topic.

Bug: 24561657
Change-Id: Icb06a65f63bc57c747bb6f244f6b623c17bdfc45
2016-03-16 01:14:15 +00:00
Dan Dascalescu
4de6c74fc0 docs: Fix typo "allows the application can recognize" -> to
bug: https://code.google.com/p/android/issues/detail?id=28854
Change-Id: Ifee2f44309c880ffe1f9df55b4a2a7fb3ae7c149
2016-02-04 17:39:17 -08:00
Dan Dascalescu
d8e259b367 docs: Fixed typo
Also removed some insignificant whitespace.

bug: 26403380
Change-Id: I7af02f172f2110b9700c451db72f429c62613f8e
2016-01-12 12:54:40 -08:00
Joe Fernandez
2460971aee docs: Android Eclipse ADT update and removals - Batch 04
b/25192800

Change-Id: Ic3927136a09da29c5931ccaa6ba5ce76ace75096
2015-12-18 11:04:38 -08:00
Andrew Solovay
7d6d7d960a docs: Removed ActionBar API guide
Removed the now-obsolete ActionBar API guide; it's been
superseded by the AppBar training class
(http://developer.android.com/training/appbar/ )

Changed the most important ActionBar links and references to point to
the AppBar docs (or some other appropriate page).

A separate CL will set up redirects from the ActionBar API guide.

See first comment for doc stage location.

bug: 25194804
Change-Id: I0859ea1712971fcf2f6cf131b2a5221b5bf3ea44
2015-10-27 13:20:24 -07:00
Andrew Solovay
37a4db8244 docs: Removed references to "Hello Views" tutorial guide
The "Hello Views" tutorial no longer exists, links to it redirect
to the "Declaring Layouts" API guide. Removing old links to that page.

See first comment for doc stage location.

bug: 21674339
Change-Id: I885a41fb3b213d4dc6257959d43dbf73e0c753bd
2015-09-30 13:14:27 -07:00
Claudio Cherubino
b6e91dfae0 Trying to help clean up the public issue tracker (and show some love to external developers) by taking care of a bunch of typos that were reported.
List of issues from https://code.google.com/p/android/issues that are fixed by this CL: 183476,183249,183248,183241,183222,183142,183093,183329,182385,182311,182193,182019,73149,181589,179740,179384,178322,178189,178086,178020,177169,176312,175138,172322,172030,171820,170647,167288,163574,161580,161041,159199,151347,144290,136137,132505

Change-Id: I2e96f7444048abd2f666c75bd6ab9640019afb75
2015-08-21 14:49:09 -07:00
Andrew Solovay
07e7021e06 docs: Clarified how to find out when a switch is toggled
Per Chris, the existing doc was incorrect: you *can't* check for a
button press and a switch flip the same way. (The button triggers a
click event, but the switch does not.) Chris suggested that we just
remove the reference to onClick and suggest using a listener for
both kinds of buttons (ToggleButton and Switch).

Also pulled one note out of a section where it didn't fit (the bit
about changing a button/switch's state programmatically didn't have
much to do with listening for clicks) and put it at the top, and I
fixed a Javadoc typo for a relevant class that I happened to notice.

See first comment for doc stage location.

bug: 20625504
Change-Id: I9c8975111381e5b169f6a61454ef3a93da635759
2015-07-09 13:22:31 -07:00
Andrew Solovay
d043297ef4 docs: Clarified when you can put the fragments in the root view.
Per bug b/10641907, putting fragments in the root view *only* works
if the device runs Android 3.0 or later. Chris and Adam say
we don't really want to suggest that work flow even for these devices,
so I'm taking that info out.

bug: 10641907
Change-Id: Ie44acbb534b8e0cea8dbbfaaf2c65836b1c31be6
2015-06-22 13:27:47 -07:00
David Friedman
bee8d60a1c Fixes a typo where parens were used instead of curly braces, preventing
a link from being created at build time.

Change-Id: I4086ce5054cc2d5cacd72314810b626aee50df62
(cherry picked from commit e62f4540cd6ce6289fb0196c8e30c3a3d6905794)
2015-06-19 22:49:40 +00:00
Andrew Solovay
a014174852 am 42f966c9: am dbec5ae6: am 0aef0abf: Merge "docs: Fixed broken image link, and broke long lines in code samples" into lmp-docs
* commit '42f966c9df6ed4e7903e87ad557d63ed81da2986':
  docs: Fixed broken image link, and broke long lines in code samples
2015-03-19 00:55:01 +00:00
Andrew Solovay
a8b5b2512f docs: Fixed broken image link, and broke long lines in code samples
While I had gridview open (per the bug), I also checked the other
files in that directory for broken image links (in case this stemmed
from a doc reorg). I didn't find any broken images, but I did find
a couple of code samples that unnecessarily had horizontal scroll
bars, so I fixed those.

See first comment for doc stage location.

bug: 19611361
Change-Id: I983a09aaee5e2b1747376748c1aa46341c31a3c2
2015-03-13 12:46:37 -07:00
Luan Nguyen
b14aec1b95 am b6de0316: am e1f90b4e: Merge "docs: Fix notification api guide issues (7461154, 12765600)" into lmp-docs
automerge: 946bf2d

* commit '946bf2de30545a548022b8b8ba1b0ebc890ab08e':
  docs: Fix notification api guide issues (7461154, 12765600)
2015-02-13 00:13:35 +00:00
Luan Nguyen
891718acd5 docs: Fix notification api guide issues (7461154, 12765600)
bug: 7461154
bug: 12765600
Change-Id: Ib4aff7f6481a514bf01894cad4984fed09f015e2
2015-02-10 12:05:50 -08:00
Nick Chalko
7508ef5d1a docs: Fix typo, use --> user
Change-Id: Idfadf09b6c1711f6294e155176a2a713f8a8f616
2014-12-04 22:23:30 +00:00
Natalie Masse
60144a7a06 am bcf9ced4: am 1e5bb861: Link and typo fixed
* commit 'bcf9ced47a123220271fcca70f71c2adf69ad100':
  Link and typo fixed
2014-10-24 22:36:54 +00:00
Natalie Masse
1e5bb86126 Link and typo fixed
Change-Id: Ie9ace6e002703d7d1f83173da49672cf60ca1653
2014-10-17 13:50:24 +01:00
Scott Rowe
dd88668392 docs: Notifications changes for L
Change-Id: I53c744734358401adefbcffd5ce5a3676d6d955a
2014-10-16 23:48:25 -07:00
Joe Fernandez
14a5d2bd4d am a1a3c8a1: am 9de22952: am ab833be6: Merge "docs: Fix bug with Accessibility Services dev guide" into klp-modular-docs
* commit 'a1a3c8a126032596b722d9faa74c616a4a8974e7':
  docs: Fix bug with Accessibility Services dev guide
2014-09-03 23:36:30 +00:00
Joe Fernandez
a1a3c8a126 am 9de22952: am ab833be6: Merge "docs: Fix bug with Accessibility Services dev guide" into klp-modular-docs
* commit '9de229527e710a90b03a415a9b752cc6e2a11592':
  docs: Fix bug with Accessibility Services dev guide
2014-09-03 23:29:46 +00:00
Joe Fernandez
5632984369 docs: Fix bug with Accessibility Services dev guide
b/11448573

Change-Id: I778c26f86c4a2cb3ebef9f3e75b5d544269486dc
2014-08-29 16:44:18 -07:00
Ricardo Cervera
866ae385dd am e4be8986: am 0d65bf25: am 262b4147: Merge "docs: Fixed bug in declaring layout page. Bug: 16815916" into klp-modular-docs
* commit 'e4be8986544a45a2560003f004b72528c691acef':
  docs: Fixed bug in declaring layout page. Bug: 16815916
2014-08-21 17:44:40 +00:00
Ricardo Cervera
e4be898654 am 0d65bf25: am 262b4147: Merge "docs: Fixed bug in declaring layout page. Bug: 16815916" into klp-modular-docs
* commit '0d65bf25c8a9091d598f50e0d534625107db6cf6':
  docs: Fixed bug in declaring layout page. Bug: 16815916
2014-08-21 17:31:03 +00:00
Ricardo Cervera
f246b0c4e9 docs: Fixed bug in declaring layout page. Bug: 16815916
Change-Id: I8990488f45e7a09c948f5be006457205665b84a1
2014-08-20 16:03:47 -07:00
David Friedman
119716f404 am 0d5af3f6: am 5d59d371: Merge "Minor typos, consistency things, one grammatical error." into klp-modular-docs
* commit '0d5af3f67bdd3734304a19dad45d995e93b6e957':
  Minor typos, consistency things, one grammatical error.
2014-07-20 12:43:19 +00:00
David Friedman
d3161450fb Minor typos, consistency things, one grammatical error.
Change-Id: I65ad160b9c49bc9c7e762d3628e69c518742ef4c
2014-07-18 02:28:54 -07:00
David Friedman
00510833be am 119716f4: am 0d5af3f6: am 5d59d371: Merge "Minor typos, consistency things, one grammatical error." into klp-modular-docs
* commit '119716f40466018e789d86b3005b6c839de85b8c':
  Minor typos, consistency things, one grammatical error.
2014-07-20 12:49:57 +00:00
Andrew Solovay
52f0b5740e am 0791c612: am 3f8d9c9e: Merge "docs: Replaced deprecated fill_parent with match_parent." into klp-modular-docs
* commit '0791c612b9dff787fa5e081d6bb207116333b21a':
  docs: Replaced deprecated fill_parent with match_parent.
2014-07-16 13:28:53 +00:00
Andrew Solovay
226faa0fe1 am 52f0b574: am 0791c612: am 3f8d9c9e: Merge "docs: Replaced deprecated fill_parent with match_parent." into klp-modular-docs
* commit '52f0b5740e97777658859edb8489bc3f4e6c0b16':
  docs: Replaced deprecated fill_parent with match_parent.
2014-07-16 13:35:54 +00:00
Andrew Solovay
e295205ea2 docs: Replaced deprecated fill_parent with match_parent.
Docs are staged to

http://asolovay.mtv:9689/guide/topics/ui/declaring-layout.html

(...and its child pages.)

bug: 15939689
Change-Id: I6c4c816fd0e983afb3425e9adc0e1e0a2cfc87ed
2014-07-11 22:09:57 +00:00
Nick Kralevich
3a62327631 am f397f6f1: am a2e4ce2b: Merge "Fix typo - issue 56671"
* commit 'f397f6f10dc1d99182bc3903d4e3751d348a3320':
  Fix typo - issue 56671
2014-07-05 17:06:04 +00:00
Nick Kralevich
a2e4ce2b7c Merge "Fix typo - issue 56671" 2014-07-03 01:32:01 +00:00
Nick Kralevich
56972a91f1 am 3a623276: am f397f6f1: am a2e4ce2b: Merge "Fix typo - issue 56671"
* commit '3a62327631a0bbbb502af884257b6a430d7e3095':
  Fix typo - issue 56671
2014-07-05 17:12:01 +00:00
Andrew Solovay
4daf2779f4 am 59f61cc2: am 768a899f: am b5960898: am 9562863c: doc: Updated branding guidelines per request from @deniseamling.
* commit '59f61cc23d47f7ad714cf99be32fd70a66dba84e':
  doc: Updated branding guidelines per request from @deniseamling.
  Noted that OnSharedPreferenceChangeListener does not store a strong reference to the listener.
2014-05-23 19:33:57 +00:00
Andrew Solovay
768a899f21 am b5960898: am 9562863c: doc: Updated branding guidelines per request from @deniseamling.
* commit 'b59608981ff464b85a26987b8822913e41e72291':
  doc: Updated branding guidelines per request from @deniseamling.
  Noted that OnSharedPreferenceChangeListener does not store a strong reference to the listener.
2014-05-22 22:45:06 +00:00
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
9a6672beb1 resolved conflices for merge of 93ccd1a2 to master
Change-Id: Ic77367cb9c90027e036a461697295fd604b50014
2014-05-14 14:50:13 -07:00
Dirk Dougherty
0540bc373c am a4e6c7d1: am 3506ac87: Doc change: Updated content for distribute.
* commit 'a4e6c7d1d4e6c8ca2b50f91ae8881fb4838d7955':
  Doc change: Updated content for distribute.
2014-05-14 21:21:15 +00:00
Dirk Dougherty
3506ac87c0 Doc change: Updated content for distribute.
Change-Id: I612fbb8e5b7aedd73c0e633e5517bb89375760ed
2014-05-14 14:10:51 -07:00
Andrew Solovay
9c7fa9c090 am 99aa0c17: am 5119f6e6: am 3f22f22a: am bff632c8: Merge "doc: Documented how to set notification priority." into klp-docs
* commit '99aa0c17d2f033590314272007fee435191ce551':
  doc: Documented how to set notification priority.
2014-05-09 21:54:52 +00:00
Andrew Solovay
5119f6e6db am 3f22f22a: am bff632c8: Merge "doc: Documented how to set notification priority." into klp-docs
* commit '3f22f22aab7d641b9d56e57a2ceec6614e09a5d8':
  doc: Documented how to set notification priority.
2014-05-09 21:10:28 +00: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
Andrew Solovay
fb5d9f3381 am e4593554: am 32117212: am 6c5bfa2f: am 026c82b1: Doc: Fixed a code sample to use standard methods. Also some formatting tweaks.
* commit 'e4593554ddcdaeb93a6d624fbd6641c4624de536':
  Doc: Fixed a code sample to use standard methods. Also some formatting tweaks.
2014-04-23 02:55:21 +00:00
Andrew Solovay
32117212fc am 6c5bfa2f: am 026c82b1: Doc: Fixed a code sample to use standard methods. Also some formatting tweaks.
* commit '6c5bfa2f348f1d55cbff5f8f2bd61e88ac2d01ee':
  Doc: Fixed a code sample to use standard methods. Also some formatting tweaks.
2014-04-23 02:47:50 +00: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
cd8f0c58bb am 97b7208f: am da1a10f7: am c68e2089: am 3555e4ae: Fixed a typo in a code sample.
* commit '97b7208fa436d279b5a7cc4fc582e7ba89181a84':
  Fixed a typo in a code sample.
2014-04-22 13:41:50 +00:00
Andrew Solovay
da1a10f727 am c68e2089: am 3555e4ae: Fixed a typo in a code sample.
* commit 'c68e2089755dc35b34d620944bcceb63e1283015':
  Fixed a typo in a code sample.
2014-04-22 13:27:09 +00: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
Scott Main
8a1e3ac58c am 6fc25fb7: am a17a7000: am 2ada4e31: am 7b0c111b: am 69e49a81: Merge "fix typos" into klp-docs
* commit '6fc25fb727e788ea6f33e6cd8a0421750be2ef9a':
  fix typos
2014-03-12 15:19:14 +00:00