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
- we define __SIZE_TYPE__ and __PTRDIFF_TYPE__ in symbols
because for some reason Eclipse barfs on stddef.h otherwise.
This seems to solve the problem entirely.
- removed symbols for HAVE_xxx because those should come
from AndroidConfig.h
NOTE: make sure to set
${ProjDirPath}/build/core/combo/include/arch/linux-arm/AndroidConfig.h
in Eclipse's "Paths and Symbols" / "Include Files" tab. This tab is
NOT shown by default, it needs to be enabled in the global
preference panel under "C/C++" / "Property Pages Settings".
As far as I can tell this setting is not exportable.
Change-Id: I1aa185b4b3564118cb9da19b2f932b7b37b81167
This fixes the build error:
development/build/sdk.atree:66: couldn't locate source file:
bin/llvm-rs-cc
Previously llvm-rs-cc was indirectly required via some intermediate
targets and now the chain is broken.
Change-Id: I722eee80deb03b219a16fe1c18fe87439ac8ff98
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
1. __set_errno is deprecated and subject to removal in future release
2. elf.h is seen to be included alone, causing compilation error due
to undefined uint32_t and uint64_t
Change-Id: I4ca348a8ba0689eb3880622dcf5c53be470c57e8