Commit Graph

3367 Commits

Author SHA1 Message Date
Nasir Khan
8dc5ea8f13 Update the Notepad sample app to: 1. Show that any application state should be saved in onStop() versus onPause(). 2. Remove the deprecated methods and start using CursorLoader instead of any managedQuery. 3. Remove deprecated LiveFolders usage. am: 3468e63e12
am: ed5495cdee

Change-Id: Id3794178b8ded31df2cbb167c14224218a3b231f
2016-11-30 20:05:21 +00:00
Nasir Khan
3468e63e12 Update the Notepad sample app to:
1. Show that any application state should be saved in onStop() versus
   onPause().
2. Remove the deprecated methods and start using CursorLoader instead
   of any managedQuery.
3. Remove deprecated LiveFolders usage.

Change-Id: I65be6b91ee1d4d0980494fb8455ce0906691dc21
2016-11-28 15:03:26 -08:00
Trevor Johns
6b945e5cc6 docs: Add new samples for N MR1 am: 0af1e772c4 am: 2b4561c639 am: fb01ea0180
am: 969d9efc63

Change-Id: I03ae89253e88d8c5f37a07219fe6fa205a641ab5
2016-10-18 17:13:49 +00:00
Trevor Johns
fb01ea0180 docs: Add new samples for N MR1 am: 0af1e772c4
am: 2b4561c639

Change-Id: I9fd2e353866986677a9724931196820afabd6dc2
2016-10-18 17:00:31 +00:00
Trevor Johns
2b4561c639 docs: Add new samples for N MR1
am: 0af1e772c4

Change-Id: Ifb45550dc950204362d88e31901243ddd50ba9ed
2016-10-18 16:55:33 +00:00
Trevor Johns
0af1e772c4 docs: Add new samples for N MR1
- AppShortcuts
- CommitContentSampleApp
- CommitContentSampleIME

Change-Id: I3cefc134839f944b1c0c5efc943fb779c7e7ee70
2016-10-18 03:19:42 -07:00
Trevor Johns
8467f3ec07 Syncing latest sample prebuilts for mnc-dev. am: 697d71f7cc am: dbd82b9b22
am: 99136d6c64

Change-Id: I0f1b7e6a4081a16985f2ea25b5368bf18b1500bf
2016-09-29 05:38:09 +00:00
Trevor Johns
2d4385d054 Syncing latest sample prebuilts for mnc-dev. am: 697d71f7cc am: dbd82b9b22
am: d3f580780b

Change-Id: I04f552f971bf45e416b81b970c1b4443fa46de3c
2016-09-29 05:38:06 +00:00
Trevor Johns
99136d6c64 Syncing latest sample prebuilts for mnc-dev. am: 697d71f7cc
am: dbd82b9b22

Change-Id: I0ea216993b39947fcfcd2dd9ad9d37cbef8667ba
2016-09-29 05:34:09 +00:00
Trevor Johns
d3f580780b Syncing latest sample prebuilts for mnc-dev. am: 697d71f7cc
am: dbd82b9b22

Change-Id: I2ace1b9340ed24f714da0eec682207d0101b55f1
2016-09-29 05:34:07 +00:00
Trevor Johns
697d71f7cc Syncing latest sample prebuilts for mnc-dev.
developers/build: 3c56004c2e943b3a87d99958c18950de0f89f3a7
developers/samples/android: d72f3df26721c64aa403e3b6d400cf8b99260dd1

Change-Id: Ice543fd11f2956aacfa3301bf9bdb4b1f49e9c4d
2016-09-29 05:17:16 +00:00
Trevor Johns
008955c28f docs: Add AccelerometerPlay sample to prebuilts am: ef51b0db8e am: 2fbc4b7d6a
am: 2da40e2ef5

Change-Id: I993abfa8d0cd840232864837f17e3eeeb6c329cc
2016-08-28 11:13:13 +00:00
Trevor Johns
c21b5a0ab8 docs: Add AccelerometerPlay sample to prebuilts am: ef51b0db8e am: 2fbc4b7d6a
am: 947579e66d

Change-Id: I1248cfebf34f2d3865f159046e094fe20e7b26f4
2016-08-28 11:13:11 +00:00
Trevor Johns
947579e66d docs: Add AccelerometerPlay sample to prebuilts am: ef51b0db8e
am: 2fbc4b7d6a

Change-Id: Ie5691a6e495b4df968ae35847e976d44772a60f1
2016-08-28 11:10:08 +00:00
Trevor Johns
2da40e2ef5 docs: Add AccelerometerPlay sample to prebuilts am: ef51b0db8e
am: 2fbc4b7d6a

Change-Id: Ib6dc7cd0a64a0f1a590f5471b8758902dae5dda9
2016-08-28 11:10:00 +00:00
Trevor Johns
ef51b0db8e docs: Add AccelerometerPlay sample to prebuilts
Change-Id: I8e4146cd00df889e60aa9f03f9a79231b02dfdd5
2016-08-28 10:58:43 +00:00
Makoto Onuki
c46c66135e Update shortcut sample am: 8d2a8f05c7
am: 252f0b4be1

Change-Id: Ide1cd60070e1c90c1929978225ddeb9888861ca1
2016-08-19 22:18:42 +00:00
Makoto Onuki
8d2a8f05c7 Update shortcut sample
Use favicon as a shortcut icon, if available.

Change-Id: Ic2393e2de6ce9eb39b5d25d0dafd9686416cdfe7
2016-08-18 11:11:09 -07:00
Trevor Johns
ba014ece08 docs: Update prebuilts for nyc-dev samples am: a374bcd44d am: d77e9cdd0e
am: 3a6ac95ade

Change-Id: I5bab553b836886a0122c4567c9bb7e514f252dc5
2016-08-12 19:23:48 +00:00
Trevor Johns
3a6ac95ade docs: Update prebuilts for nyc-dev samples am: a374bcd44d
am: d77e9cdd0e

Change-Id: I11b7304d1e152774efadebc5c9831186435dee80
2016-08-12 19:20:15 +00:00
Trevor Johns
6ecd38debd docs: Update prebuilts for nyc-dev samples am: a374bcd44d
am: d77e9cdd0e

Change-Id: I4da63018cc412c4f513ed3ce33a5ef2f42b6c054
2016-08-12 19:20:14 +00:00
Trevor Johns
a374bcd44d docs: Update prebuilts for nyc-dev samples
Synced to commits:
- //developers/samples/android
  fc1c2eac13aa87531f030f8c65d7e27c301135af
- //developers/build
  18730e97939c9545a26e52d135a99045c86abeaf

Change-Id: I88952b8f86921739af9fed6b87d39a72af835748
2016-08-11 22:59:11 +00:00
Makoto Onuki
2f5a91de94 Shortcut launcher demo: am: 5671322243
am: 0d48acccb2

Change-Id: I3268550ff3e227b18727fbb6fd92df24bfb570f7
2016-08-02 20:43:15 +00:00
Makoto Onuki
0d48acccb2 Shortcut launcher demo:
am: 5671322243

Change-Id: I77ee5377b77dd67e6a66477d1c3e365cea341f86
2016-08-02 20:40:17 +00:00
TreeHugger Robot
6d48ba4dd4 Merge "Shortcut launcher demo:" into nyc-mr1-dev 2016-08-02 20:37:11 +00:00
Makoto Onuki
5671322243 Shortcut launcher demo:
- Listen to work profile broadcasts and refresh the screen.
- Fix the bug about mixing up user 0 and user 10.
- Add a "user has any shortcuts or not" test to detect
user unlock races.

Change-Id: I4c5ae34317b669dd8fcda466a960074b22e88d5a
2016-08-02 10:26:51 -07:00
Dianne Hackborn
747849e01a Add API demo for running multiple foreground services. am: 9302998b13
am: d9cdb23133

Change-Id: Ied29cf6325a76169b68b91a19fcebbb66b9a70b1
2016-08-02 17:21:38 +00:00
Dianne Hackborn
9302998b13 Add API demo for running multiple foreground services.
Change-Id: I44435f6e7750ccbbadf5e293dd10069c6cef94a4
2016-08-01 17:52:18 -07:00
Makoto Onuki
f91097c72f Fix demo launcher am: 74d5f56ed8
am: ad36445b18

Change-Id: I36b7f93212ef4599745ad9098e5daafd35db5057
2016-07-29 20:52:21 +00:00
Makoto Onuki
ad36445b18 Fix demo launcher
am: 74d5f56ed8

Change-Id: Ife01637a46eab56580a19daa0d56b981ffab9086
2016-07-29 20:44:15 +00:00
TreeHugger Robot
644dd1aa45 Merge "Fix demo launcher" into nyc-mr1-dev 2016-07-29 20:24:41 +00:00
Makoto Onuki
48b9543c84 Update sample app icons am: 038f4f7882
am: b5d2bd8628

Change-Id: Iace33ab5e3fcd1999db907d7a6a5fb116fd58676
2016-07-29 18:12:51 +00:00
Makoto Onuki
74d5f56ed8 Fix demo launcher
- pinShortcuts() needs to be passed all pinned shortcut IDs from the target app,
but originally it was passing those from the target *activity*.

- Also LauncherApps throws IllegalStateException when work profile is off.
Catch runtime exceptions and show a message.

Change-Id: I5a97c808ed7d9aff17bd11aa4ed28ee0efc330f0
2016-07-29 10:54:12 -07:00
Makoto Onuki
038f4f7882 Update sample app icons
Bug 30259354

Change-Id: I8fd049e821540c0253e055c967824222d3e0e3a4
2016-07-27 16:32:33 -07:00
Makoto Onuki
cbd0f79690 ShortcutManager sample application.
am: 8e1f716acc

Change-Id: I19f704791a9d289941ba630bb9d45430774bd9f2
2016-07-23 00:52:31 +00:00
Makoto Onuki
8e1f716acc ShortcutManager sample application.
This is slightly more practical than ShortuctDemo.

This app allows the user to publish shortcuts to websites.

Bug 30259354

Change-Id: I0e7358aadf016c75c4926595abbe6ce117d69c2d
2016-07-22 15:27:47 -07:00
Makoto Onuki
119b716550 ShortcutDemo: Add Japanese translation
am: 767491535c

Change-Id: I61c37a78c03490e7c349666d0830e23099c5e550
2016-07-14 00:02:12 +00:00
Makoto Onuki
767491535c ShortcutDemo: Add Japanese translation
Change-Id: Ic80e69bd62bc53742e13946a2a9c3a8d72ad1e8a
2016-07-13 13:46:40 -07:00
Makoto Onuki
1b342b02dd Merge \"ShortcutDemo: Add 2nd main activity with manifest shortcuts\" into nyc-mr1-dev
am: 0f3323555c

Change-Id: I2814cdfd8afab448715edc1845ec536330dbad07
2016-07-11 19:43:56 +00:00
Makoto Onuki
0f3323555c Merge "ShortcutDemo: Add 2nd main activity with manifest shortcuts" into nyc-mr1-dev 2016-07-11 18:36:12 +00:00
Alan Viverette
e67477c397 Merge commit '7999e48357ae233969cabfd6b78fa8d688e624ab' into manual_merge_7999e48
Change-Id: I8bc7e8c5d61d0139bb960ae8ce237393eaa0aa5f
2016-07-02 14:56:35 -04:00
Alan Viverette
7999e48357 Remove Support*Demos directories and update sdk.atree
The nyc-support-24.1-dev branch has been successfully moved
ahead of the nyc-mr1-dev branch, so we'll need this to fix
the build.

This reverts commit 52e76badf8.

Change-Id: Ib3d6cf5b52f6632854468983d0c2065b1c7e7d8b
2016-07-01 20:20:11 +00:00
Alan Viverette
52e76badf8 Revert "Remove Support*Demos directories and update sdk.atree" to fix build
Dependency has not landed in frameworks/support yet.

This reverts commit e84ef3afe8.

Change-Id: I699934121e00b785838e85984d3434ab76609783
2016-07-01 14:44:51 +00:00
John Reck
e84ef3afe8 Remove Support*Demos directories and update sdk.atree
These have been migrated to the frameworks/support project.

Cherry-Pick of 6f266e9557

Change-Id: Ice5f95b983bc6e1719cf84f4f564f3fe16af7c95
2016-06-28 12:34:36 -07:00
Makoto Onuki
4aa351c0ec ShortcutDemo: Add 2nd main activity with manifest shortcuts
To test b/29601844

Bug 29601844

Change-Id: I034947f62d5d1ece90f0c5fd0b7b26f48bea809e
2016-06-23 14:40:52 -07:00
Makoto Onuki
d88576db5a Shortcut Demo: Address API changes
am: 1cf985bff6

Change-Id: I14a4e6405fd7698703dcb952496407a2c40c17d8
2016-06-21 23:50:39 +00:00
Makoto Onuki
1cf985bff6 Shortcut Demo: Address API changes
Bug 29515722
Bug 29516909
Bug 29515090

Change-Id: I7214d1d75acb7550cb8181d076d0b7b938a04488
2016-06-21 11:37:35 -07:00
Makoto Onuki
88c67a6634 Shortcut Demo: Switch to new XML schema
am: 7621142253

Change-Id: I23f91ad1ad1b1fe86f7aab92d52a57e1c8bbc164
2016-06-17 20:40:20 +00:00
Makoto Onuki
7621142253 Shortcut Demo: Switch to new XML schema
Bug 29390156

Change-Id: I2311012f5c48ce7d150d4045c602489f95da78f9
2016-06-17 11:50:36 -07:00
Makoto Onuki
d725f9a280 Merge \"Shortcut demo: Add a notification with remote input\" into nyc-mr1-dev
am: bb325c7686

Change-Id: I3dfdd0fee1d20a6f7498b94c7920a27a7bca07f4
2016-06-16 17:21:09 +00:00