Commit Graph

3414 Commits

Author SHA1 Message Date
Makoto Onuki
d4c3e6f7a4 Merge "Don't assume getActivity() is @NonNull" 2016-12-02 16:35:04 +00:00
Makoto Onuki
ea9c4b3b05 Don't assume getActivity() is @NonNull
Test: Manual testing.
Change-Id: I871a8b4341cfa32c142c2f7a84fc1b2b5ca32271
2016-12-01 08:44:23 -08:00
Nasir Khan
3a746f6b2f 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 am: 8dc5ea8f13
am: 2d693fd83b

Change-Id: I4fbbf382ff165eab2bbf9bef2c1678841eda01dc
2016-11-30 20:16:21 +00:00
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
TreeHugger Robot
3d87989183 Merge "Add tooltip demo to ApiDemos" 2016-11-22 22:15:47 +00:00
Vladislav Kaznacheev
922dea9376 Add tooltip demo to ApiDemos
Test: launch com.example.android.apis.view.Tooltips
Bug: 31515376
Change-Id: I5456740c4e93105c5058c198b22f4fd7634f3b46
2016-10-20 15:28:25 -07:00
Robert Carr
bde918648d API Demos: Specify rotation animation in manifest
Just an example of specifying rotation animation
in manifest.

Test: Try running the activity and verify the rotation animation is crossfade
Change-Id: I4481c0fd317fa4f472822159288bd5521cc52ec2
2016-10-19 14:49:18 -07:00
TreeHugger Robot
ab87b42182 Merge "Include seamless rotation mode in API Demo." 2016-10-19 01:50:24 +00:00
Robert Carr
3ca1a928a4 Include seamless rotation mode in API Demo.
Test: Try the RotationAnimation activity of API demos.
Change-Id: I4f3aba54d310ecbe06776190a4096c71fdf85d24
2016-10-18 14:42:10 -07:00
Trevor Johns
434b838861 docs: Add new samples for N MR1 am: 0af1e772c4 am: 2b4561c639 am: fb01ea0180 am: 969d9efc63
am: 6b945e5cc6

Change-Id: I1ffb10b74af951206ce53cb2dd1fd471d22ae7c5
2016-10-18 17:21:50 +00: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
dd2e50bc3b Syncing latest sample prebuilts for mnc-dev. am: 697d71f7cc am: dbd82b9b22 am: 99136d6c64
am: 8467f3ec07

Change-Id: I74ef7ac933e992623974fffe2076f21192161ad8
2016-09-29 05:47:54 +00: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
38a507379e docs: Add AccelerometerPlay sample to prebuilts am: ef51b0db8e am: 2fbc4b7d6a am: 2da40e2ef5
am: 008955c28f

Change-Id: I0badb6002b7904d5c0999802246709a0adf10edd
2016-08-28 11:38:37 +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
45684520ab Update shortcut sample am: 8d2a8f05c7 am: 252f0b4be1
am: c46c66135e

Change-Id: Ic581babe55bec179066362f610e0f0001b9819bc
2016-08-19 22:22:35 +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
f2769f4137 docs: Update prebuilts for nyc-dev samples am: a374bcd44d am: d77e9cdd0e am: 3a6ac95ade
am: ba014ece08

Change-Id: I5a42eb8110bc67c314e50761571d926524ee7adf
2016-08-12 19:27:25 +00: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
5ef4e2ed5e Shortcut launcher demo: am: 5671322243 am: 0d48acccb2
am: 2f5a91de94

Change-Id: I1bed5d17868cd6536452cad48aef48bd4e0f90b1
2016-08-02 20:57:21 +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
Dianne Hackborn
4db704280a Add API demo for running multiple foreground services. am: 9302998b13 am: d9cdb23133
am: 747849e01a

Change-Id: I2471450a92de5d22c8fba8abb6587bbc2c9b0c63
2016-08-02 17:29:35 +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
45f14bb46d Fix demo launcher am: 74d5f56ed8 am: ad36445b18
am: f91097c72f

Change-Id: I264d5bc2836a2dd98e948efb6464b737b5a4e080
2016-07-29 21:17:06 +00: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
cbf3de1216 Update sample app icons am: 038f4f7882 am: b5d2bd8628
am: 48b9543c84

Change-Id: I5d063c7cf96c4cd6f65959e2a0641f2c62eeabe4
2016-07-29 18:19:38 +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