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
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
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
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
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
* 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.
* 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.
* 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.
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
Shows simple usage of FileProvider to share a private thumbnail
across process boundaries. Also serves as sample code for javadoc
on FileProvider.
Bug: 7005318
Change-Id: I0ca12977a3832c7c2ac1c254d411a547ffee0a51
This serves as a complete, formal layout, with attributes
and all that good stuff. Intended for use as sample code
in the java docs.
Change-Id: Ic45b9387d724bf574e2bfb8970b26c7b47fc0a2b
- Buttons for showing/hiding action bar and system UI
in the basic action bar demo.
- New system UI demo that uses a non-overlay action bar.
Change-Id: Id3fbaa77365476489c558a2a43855a01f383551c