Commit Graph

1885 Commits

Author SHA1 Message Date
Dianne Hackborn
7cf29a7636 Update for java docs.
Change-Id: I1a34e5d3aaf2b00717d65b3487a919f237738dc2
2013-04-11 19:10:54 -07:00
Dianne Hackborn
2f5f3c1d63 Merge "Issue #7341342 API request: way to determine current orientation..." into jb-mr2-dev 2013-04-12 00:08:39 +00:00
Nick Kralevich
2209abf694 Merge "Remove OptionalPermissions demo." into jb-mr2-dev 2013-04-11 19:52:20 +00:00
Nick Kralevich
0ceb4bb830 Remove OptionalPermissions demo.
Change-Id: Iabfdcfbf45c2a116e91681c05421deeedd9c9d27
2013-04-11 10:19:55 -07:00
Amith Yamasani
5c9ba3308f Fix some crashes in the sample
Change-Id: I8d03f8912d9a9932f8b24dd23d5f0dd21716dd0d
2013-04-10 18:49:18 -07:00
Dianne Hackborn
904e05075d Issue #7341342 API request: way to determine current orientation...
...to allow for orientation locking

Update API demo with new modes.

Change-Id: Ib9da3ada203407bace0968f4ee3db54f03ad559b
2013-04-10 17:36:20 -07:00
Jaikumar Ganesh
8a0799f2d6 Add Trigger Sensor API Demo.
Add sensor API demo for significant motion sensor.

Change-Id: Ie1a006523e4ef579384a580ddb117188a455dadf
2013-04-10 17:13:06 -07:00
Dianne Hackborn
b0c2615abb Merge "Update media controller sample." into jb-mr2-dev 2013-04-10 18:58:52 +00:00
Chiao Cheng
bcd56f9137 Merge "Adding example of querying for contact changes." into jb-mr2-dev 2013-04-10 17:54:24 +00:00
Ying Wang
63c613c742 Add liblog
Bug: 8580410
Change-Id: I25981e09574567b305f659b99d3a179942e1deb4
2013-04-09 21:42:59 -07:00
Chiao Cheng
0a010aef7f Adding example of querying for contact changes.
Bug: 8182147
Change-Id: I40a2b95b9e6ac0705b863e0e41f84654dfddaf5c
2013-04-08 14:52:16 -07:00
Dianne Hackborn
1abc05040f Update media controller sample.
Now use the new abstractions of TransportMediator.  Guess I should
also change the name of this sample to match it...  that'll be for
a future change. :)

Change-Id: I932f8215bba51dfaa1bd5766ab9551c9dc440657
2013-04-05 19:08:48 -07:00
Dianne Hackborn
a5e017432a Merge "Improve TransportController demo." into jb-mr2-dev 2013-04-05 01:40:49 +00:00
Dianne Hackborn
9b4e96dcb8 Improve TransportController demo.
This is an actually realistic implementation of a
video player.  It's still delibrately simple, but it's
not outright broken.  We now have our own media controller
since that is the only way to get something that actually
works, we use system UI flags to hide nav/status bar when
playing, we use the new TransportController APIs to go
into a formal playback state where we take audio focus.

Change-Id: I19ac171483637b8ee94c9c07aea39c11748cbc46
2013-04-04 18:36:56 -07:00
Dianne Hackborn
18eee4be72 Merge "Move media key handling to here." into jb-mr2-dev 2013-04-04 19:26:10 +00:00
Dianne Hackborn
e5d68096be Move media key handling to here.
Change-Id: I6b8c66ef465640951da4b36da53e7fda00e48d20
2013-04-04 12:25:28 -07:00
Jeff Brown
e808a4b6b2 Update after API refactoring.
Bug: 8175766
Change-Id: Ibcd86fbfb54c44d9a14e79fcd760991c48c5b2ad
2013-04-02 20:00:55 -07:00
Amith Yamasani
441165c7a5 Merge "App limits sample" into jb-mr2-dev 2013-03-30 01:52:02 +00:00
Amith Yamasani
447d1e3d6c App limits sample
Shows how to expose app restrictions for both simple types
and custom intents.

Change-Id: I95d422d1d637bd4bdb4f731d862975a160b65a50
2013-03-29 18:45:37 -07:00
Nick Kralevich
97e5ad6387 OptionalPermissions: fix call to buildPermissionRequestIntent
There's no need to call getApplication().

Change-Id: I56e8a6a4ab230275c70e240e53a893e05400f2f9
2013-03-28 15:14:28 -07:00
Nick Kralevich
2ad812d4aa Initial checkin: optional permissions sample code
This is an initial checkin of a small demonstration program
which demonstrates how optional permissions can be used.
This app can do three things, which require permissions:

* Vibrate the device (android.permission.VIBRATE)
* Access the internet (android.permission.INTERNET)
* Get the phone number (android.permission.READ_PHONE_STATE)

At install time, this app has zero permissions.  However, the app can
request that the user grant permissions, based on pressing the "Prompt"
button. The user can then choose to allow or deny the permissions.

Known bugs and limitations:
* Once a permission is granted, it currently cannot be revoked by the
application nor the user.
* Due to the way it's implemented, the INTERNET permission requires a
restart of the application. That isn't in the sample code.
* Getting the device phone number doesn't make sense for a tablet.

This code was mostly written by klyubin@google.com with heavy
modification by myself.

Change-Id: I620db52c4a1f10ac7aa604ba34f77f7ec03af023
2013-03-27 16:54:04 -07:00
Jeff Sharkey
ccf3ef27ce Merge "Remove reference to <root-path>." into jb-mr2-dev 2013-03-26 17:13:12 +00:00
Jeff Sharkey
29045946c0 Remove reference to <root-path>.
Bug: 8409523
Change-Id: I42834e33d0d664977dca9277ae364d2cf8986d07
2013-03-25 16:16:51 -07:00
Fabrice Di Meglio
e7b90faf8f Merge "Fix ExpandableList1 sample" into jb-mr2-dev 2013-03-25 21:20:25 +00:00
Scott Main
8e2b7c5d3f am e92f6467: am 35964ea6: am 449326f1: am d49fbdbc: add support library JAR to sample
* commit 'e92f6467d0c85c7f2f8f5f5dc1dbfb8695f8c545':
  add support library JAR to sample
2013-03-25 09:02:54 -07:00
Scott Main
e92f6467d0 am 35964ea6: am 449326f1: am d49fbdbc: add support library JAR to sample
* commit '35964ea619381ed65aa04ea2e5071ebaa1b56f92':
  add support library JAR to sample
2013-03-25 09:00:26 -07:00
Jeff Brown
fbe0890bb4 Rename methods of RouteController.
Add basic support for returning stream ids.

Change-Id: Iaa11980e6195e23bd598075cb066c6234f000198
2013-03-22 19:46:23 -07:00
Fabrice Di Meglio
de817c95df Fix ExpandableList1 sample
- also increase android:targetSdkVersion to 17

Change-Id: Ibceb38f5514a7c321f75d267e40c338c0340b1ef
2013-03-22 16:28:46 -07:00
Dianne Hackborn
d2655277cd Add TransportController API demo.
Change-Id: Id852ac8de1bcfbfba2d9e8557664c1aaa1e75df4
2013-03-22 14:28:52 -07:00
Scott Main
d49fbdbcc1 add support library JAR to sample
Change-Id: I15c30e19606a0b3415d5883bced4c2f56fd703fa
2013-03-22 09:53:15 -07:00
Jeff Brown
84e6be0c69 Add action bar support library samples.
These samples are simply ported from the ApiDemos package
with package names updated to use the support library
implementation instead.

Bug: 8175766
Change-Id: Idfa35708d4db65a201a20c3726bb18663c2c0a81
2013-03-20 18:20:18 -07:00
Jeff Brown
63c90a5512 Add grid layout support library samples.
These samples are simply ported from the ApiDemos package
with package names updated to use the support library
implementation instead.

Bug: 8175766
Change-Id: Ib24c1250ed7571353f606422734a4660f382b368
2013-03-20 18:20:18 -07:00
Jeff Brown
bda0c73168 Move media router samples to new Support7Demos project.
Add media router support library to SDK build.

Bug: 8175766
Change-Id: I2f333d40ad39e820e8d706a7dab086241692a861
2013-03-20 18:20:18 -07:00
Elliott Hughes
16617b1712 am 48f4a1f8: am 8c4c7b6a: Merge "Use H rather than k in date/time formats."
* commit '48f4a1f86e59c97a0a67d520ff0daa3726e2f62b':
  Use H rather than k in date/time formats.
2013-03-20 09:52:38 -07:00
Elliott Hughes
48f4a1f86e am 8c4c7b6a: Merge "Use H rather than k in date/time formats."
* commit '8c4c7b6a9851554371f94aef9f09813a7f0bc14e':
  Use H rather than k in date/time formats.
2013-03-20 09:47:31 -07:00
Adam Koch
bae0692c9c am 5004577d: am 303c2c87: am 0a605d37: am 90808a36: am bc1a645f: Contacts Provider Training Class - Sample App Initial Commit This is the sample app for the Contacts Provider Android training class. It\'s a basic master/detail view with a list of contacts in the maste
* commit '5004577dbaf1719c787ce610189151531c70652d':
  Contacts Provider Training Class - Sample App Initial Commit This is the sample app for the Contacts Provider Android training class. It's a basic master/detail view with a list of contacts in the master and contact name, photo and mailing addresses in the detail. This sample app is backward compatible to API level 7 and also optimized for all screen sizes.
2013-03-19 11:31:23 -07:00
Adam Koch
5004577dba am 303c2c87: am 0a605d37: am 90808a36: am bc1a645f: Contacts Provider Training Class - Sample App Initial Commit This is the sample app for the Contacts Provider Android training class. It\'s a basic master/detail view with a list of contacts in the master and contact
* commit '303c2c87f893d144e6982f1b2ad097141fe25ea7':
  Contacts Provider Training Class - Sample App Initial Commit This is the sample app for the Contacts Provider Android training class. It's a basic master/detail view with a list of contacts in the master and contact name, photo and mailing addresses in the detail. This sample app is backward compatible to API level 7 and also optimized for all screen sizes.
2013-03-19 11:30:12 -07:00
Adam Koch
90808a363f am bc1a645f: Contacts Provider Training Class - Sample App Initial Commit This is the sample app for the Contacts Provider Android training class. It\'s a basic master/detail view with a list of contacts in the master and contact name, photo and mailing addresses in th
* commit 'bc1a645f26a30fd95e68043b608038537b7c798f':
  Contacts Provider Training Class - Sample App Initial Commit This is the sample app for the Contacts Provider Android training class. It's a basic master/detail view with a list of contacts in the master and contact name, photo and mailing addresses in the detail. This sample app is backward compatible to API level 7 and also optimized for all screen sizes.
2013-03-19 11:25:44 -07:00
Adam Koch
bc1a645f26 Contacts Provider Training Class - Sample App Initial Commit
This is the sample app for the Contacts Provider Android training
class. It's a basic master/detail view with a list of contacts in the
master and contact name, photo and mailing addresses in the detail.
This sample app is backward compatible to API level 7 and also
optimized for all screen sizes.

Change-Id: I83fe6beae9fd4c3fe710426b7dd0863e094cbc89
2013-03-19 12:40:00 -04:00
Elliott Hughes
da6181c891 Use H rather than k in date/time formats.
Bug: 8359981
Change-Id: Ica1741aafc801d017252f74189aca0946bed9a0f
2013-03-18 16:29:12 -07:00
Fabrice Di Meglio
65e58fe5c9 Fix #8185319 Need to put Android BidiFormatter into the Support Library
- add demo into Support4Demos

Change-Id: I041144510c907dd1639ea56c45321486d86fe859
2013-03-14 12:00:10 -07:00
Jaikumar Ganesh
a54d53a656 Revert "Add Trigger Sensor API Demo."
This reverts commit 50435d3e6f.
2013-03-13 14:58:01 -07:00
Jeff Brown
fd5a3f30de Samples for media router support library.
Change-Id: I3c578f61e310b552b0dd372dc27c709c35193bbd
2013-03-12 21:34:38 -07:00
Jaikumar Ganesh
50435d3e6f Add Trigger Sensor API Demo.
Add sensor API demo for significant motion sensor.

Change-Id: I9d55fef52bdda2b804003bb07d6d977f13cda5b0
2013-03-12 14:13:21 -07:00
Jeff Sharkey
dafe2546c9 Merge "Example code for FileProvider." into jb-mr2-dev 2013-03-12 17:13:16 +00:00
Michael Wright
def9515cb0 Merge "Update ApiDemos to use new input source check" into jb-mr2-dev 2013-03-12 02:10:47 +00:00
Roman Nurik
574bec3b90 am 573642d8: am f3084087: am ee77f868: am 85364937: Add InteractiveChart sample code for update to Gestures training class.
* commit '573642d8e9fdb5fbd1d2a7cd9a0a9fe0204eacd7':
  Add InteractiveChart sample code for update to Gestures training class.
2013-03-11 16:31:38 -07:00
Roman Nurik
573642d8e9 am f3084087: am ee77f868: am 85364937: Add InteractiveChart sample code for update to Gestures training class.
* commit 'f308408752736df3e67362584dbad5899ba58d71':
  Add InteractiveChart sample code for update to Gestures training class.
2013-03-11 16:29:03 -07:00
Roman Nurik
85364937ce Add InteractiveChart sample code for update to Gestures training class.
Change-Id: I1e245cd6735d54603174045ca557057763861469
2013-03-11 16:22:53 -07:00
Michael Wright
8f48506e2d Update ApiDemos to use new input source check
Change-Id: Iab20881dca49cfef66fa35396942cdb5045137aa
2013-03-11 15:57:21 -07:00