Commit Graph

1144 Commits

Author SHA1 Message Date
Chris Craik
82ff0214fb Merge "Disable plugin content copy when 0x0 pixels" 2011-10-03 16:45:37 -07:00
Chris Craik
771310eb99 Disable plugin content copy when 0x0 pixels
bug:5382635
Change-Id: I83f999d9e2dd0dc51a6c2f780f2f2b7add95a60a
2011-10-03 14:51:50 -07:00
Daniel Lehmann
1cf776aee1 Updated the sample
- Removed editing, because it is not ready for the sdk yet
 - Added sync of a default group
 - Demo for "View group"
 - Demo for "View Stream Item" and "View Stream Item Photo"
 - Demo for invite flow (at least show a dialog)
 - Hardcoded demo username and password into the dialog (it is in the
   source anyway)

Bug:5383087

Change-Id: I4cf18eb8e90df872f832ecd74f22d68de6099e60
2011-09-29 17:08:36 -07:00
Chet Haase
10cb19aefe Merge "DefaultLayoutAnimations should use GridLayout instead." 2011-09-29 07:48:57 -07:00
Scott Main
026370edef Merge "remove LOW_PROFILE flag when setting HIDE_NAVIGATION, because it's not needed in order to work" 2011-09-27 18:17:27 -07:00
Flavio Lerda
3726ce2f32 am e15c2737: Update minSdkVersion and targetSdkVersion.
* commit 'e15c273703765bba82eb2f1b9872074cdd090755':
  Update minSdkVersion and targetSdkVersion.
2011-09-27 13:10:46 -07:00
Chet Haase
e68d53fd04 DefaultLayoutAnimations should use GridLayout instead.
The 2-LinearLayout system the demo used to have had its quirks, but was
just plain awful once it ran on a smaller screen. The new GridLayout
makes for a much better experience.

Change-Id: Ie3fd65e125c82da8b0079f61bd91bf844dea9b03
2011-09-27 11:51:35 -07:00
Flavio Lerda
e15c273703 Update minSdkVersion and targetSdkVersion.
Bug: 5357790
Change-Id: I295639ff014090b95ce7eae8fcdb32a602594e6d
2011-09-27 08:59:34 +01:00
Scott Main
24060d3751 Merge "fix custom view sample to scale text based on screen density" 2011-09-21 18:15:44 -07:00
Scott Main
689a60dd25 fix custom view sample to scale text based on screen density
Change-Id: I2e08e90b7baa73a4e36bad9f6abb9364d7b471d1
2011-09-21 17:57:59 -07:00
Scott Main
a0038f1170 remove LOW_PROFILE flag when setting HIDE_NAVIGATION, because it's not needed in order to work
Change-Id: I4eb6aee12f00bc98d14e7f42476acaf75340ac26
2011-09-21 15:56:47 -07:00
Scott Main
c05bf09001 small HC Gallery updates to put alternative values in appropriate config and update manifest
Change-Id: If55961ef28b1be5e500618f0a485328f9433e443
2011-09-21 15:39:15 -07:00
Xavier Ducrohet
dda48a45e0 Move sdk components to API 14. DO NOT MERGE.
Cherry-pick from master 71be098

Change-Id: I9dc0245fdd19660a4b08d454892df02a02810749
2011-09-16 21:37:54 -07:00
Xavier Ducrohet
71be098e55 Move sdk components to API 14.
Change-Id: Ib56dce765dca77d8f6a69b962f7897d8eadec373
2011-09-16 10:38:37 -07:00
Svetoslav Ganov
1a4cc125d1 Update API demos to show ActionProvider demo for at least ICS
bug:5033542

Change-Id: Icea34fb21e04ee7c40ccca6894d9a24544d6c816
2011-09-14 19:42:45 -07:00
Scott Main
d21f82d678 Merge "rewrite HC Gallery app to support phones. In summary, this change:" 2011-09-14 14:14:09 -07:00
Stephen Hines
bbc0bd4936 Merge "Bump minimum SDK version to 14." 2011-09-09 15:59:38 -07:00
Stephen Hines
2f8b09d926 Bump minimum SDK version to 14.
BUG=5280704

Change-Id: Ib26b93f4b41b5c910afaa49b4420d9bd4272acd9
2011-09-09 14:49:44 -07:00
Scott Main
ddd0d0c656 rewrite HC Gallery app to support phones. In summary, this change:
- moves tablet-style layouts to layout-large* directories
- adds ContentActivity to host the ContentFragment when on phones
- adds an OnItemSelectedListener interface to TitlesFragment, which MainActivity
  implements in order to receive callbacks on click events to the list item and then
  pass the selected item to the ContentFragment in the manner appropriate for the
  current configuration... Specifically, when in two-pane mode, it updates the ContentFragment
  directly, and when in single-pane mode, it starts the ContentActivity with intent data
  about the selected item, which then updates the ContentFragment
- Change CameraSample.java to CameraActivity.java for name conventions
- Moves all menu strings into string resources
- Fixes camera sample to properly handle front-facing camera on other devices (was broken
  on nexus s and on g-slate)
- Fixes camera sample to handle resume state after the camera has changed (for example, when
  switched to a different camera, it would crash on resume)
- Moves various code around between classes as appropriate for the fragment handling the
  action. For example, move the ActionBar.TabListener implementation to the TitlesFragment
  (was originally impemented by the MainActivity)
- Adds logic to support devices without camera and properly declare the camera in manifest as such
- Maintains the state of hidden titles list across restarts

Change-Id: I27a39a68dee37325c0c3607aa0b56ab6c134d026
2011-09-06 18:24:49 -07:00
Adam Powell
758f6d0ab5 Add switch demo
Added default on state and a listener triggering a toast.

Change-Id: I79a89801d878b08fee55919e92044cd71f47108c
2011-08-31 11:23:02 -07:00
Dianne Hackborn
648e25f0c7 Dang you, TabHost.
Change-Id: I937cd0748fe0c44d6cd642637321aa6eb550cf91
2011-08-29 18:39:21 -07:00
Brian Carlstrom
974b1d6742 Removed --target-api option from dx.
Change-Id: Ia0d633edfe414061bb313f43c45f9ef55b45f380
2011-08-24 00:20:48 -07:00
Jeff Brown
ce77ef5f1d Enhance the TouchPaint sample with stylus support.
Added basic stylus and hover support to the sample to illustrate
the usage of pressure, size, orientation, distance, tilt and tool type
information.

Change-Id: I1689adc38d5904870e005300b3317c44c214fc08
2011-08-19 15:01:39 -07:00
Narayan Kamath
e6e13cdc7f Fix a typo in the sample engine settings.
This causes the engine settings dialog to not inflate.

bug:5188172

Change-Id: I813c007e6f20b63ed47458028afc7d9022e602b6
2011-08-19 12:57:01 +01:00
Daniel Lehmann
3335843705 Include the new activity classes in the samples
Bug:5135808
Change-Id: I08244836b57564e108f3b36e520a3cce95158cc7
2011-08-14 15:45:28 -07:00
Chet Haase
7c4ad87f6b Merge "Fix issues in LayoutAnimationsHideShow demo." 2011-08-11 12:16:11 -07:00
Amith Yamasani
d9e0c41a75 Merge "Remove old fashioned expand/collapse techniques in SearchView examples." 2011-08-11 11:42:41 -07:00
Chet Haase
dd722e4680 Fix issues in LayoutAnimationsHideShow demo.
There were various minor issues with this app that made it not work
correctly in some situations (the APPEARING animation was basically a no-op,
and disabling the custom animations disabled animations altogether).

Change-Id: I20aba9551043a63c21d26208ae7cd0395cde01cb
2011-08-11 11:36:33 -07:00
Dianne Hackborn
b30b356f20 Merge "New API demo for installing/uninstalling applications." 2011-08-11 11:35:55 -07:00
Amith Yamasani
5591368aec Remove old fashioned expand/collapse techniques in SearchView examples.
These are not the recommended patterns any more.

Bug: 5086888
Change-Id: If354ea5af0eaff33d0e572177a9e804d899d07e1
2011-08-10 18:36:11 -07:00
Dianne Hackborn
ddea282ae9 New API demo for installing/uninstalling applications.
Change-Id: Idaaf2003a6a34f2859887be32c82416ba4d06852
2011-08-10 10:37:23 -07:00
Chris Craik
1ac352eb59 Merge "updated Animation Plugin for NativeWindow interface" 2011-08-09 17:23:32 -07:00
Chris Craik
aceb2e3bda updated Animation Plugin for NativeWindow interface
bug:5114637

Uses new ANativeWindow plugin API, supports either software rendering or GL
rendering via flag in RenderingThread.h

Note: Currently crashes on close

Change-Id: Ia7338a6c38c0ca9db02c19814d99b29970cc7b8e
2011-08-09 16:34:30 -07:00
Daniel Lehmann
a6826891f9 Merge "Start service intent when contact is being displayed" 2011-08-09 14:49:58 -07:00
Daniel Lehmann
af2e1dccbc Start service intent when contact is being displayed
Bug:5138185
Change-Id: I32e239e4af564bb876d1eb021f31b2fd6287feaf
2011-08-09 13:42:08 -07:00
Debashish Chatterjee
a583cd15f7 Merge "VoicemaiProviderDemoApp changed to use api from sdk." 2011-08-09 00:07:33 -07:00
Chet Haase
e3239b8d24 Fix fill behavior in an old AnimationSet demo.
FillEnabled/FillBefore/FillAfter have somewhat non-intuitive behavior.
The demo didn't work at all as intended, so I changed the animation resource
to reflect the actual behavior desired (delay starting the child animations
in the inner AnimationSet and avoid having those animations set the transform
before they start)

Change-Id: I135842091902ba243851dad0104f86e1b8605053
2011-08-08 16:30:34 -07:00
Debashish Chatterjee
d407959ada VoicemaiProviderDemoApp changed to use api from sdk.
Voicemail content provider APIs are now part of the SDK. This CL gets
rid of the local copy of VoicemailContracts and instead uses the APIs
from the SDK.

Key differences between the old and latest APIs
- voicemail permission renamed from READ_WRITE_OWN_VOICEMAILS to
  ADD_VOICEMAIL
- voicemail state is a hidden field, so not part of the API. Demo app
  should not use it.
- Use IS_READ field instead of NEW.

Change-Id: Ib142eb02bb89eed32a7976b66132893a98aba466
2011-08-08 17:58:40 +01:00
Daniel Sandler
173fb98b2d Demonstration of the various fullscreen modes:
FLAG_FULLSCREEN,
  SYSTEM_UI_FLAG_LOW_PROFILE,
  SYSTEM_UI_FLAG_HIDE_NAVIGATION.

Bug: 5052456
Change-Id: I3c23caa83a66b585ae1102e3d473f6e4f096840d
2011-08-04 16:47:02 -04:00
Luca Zanolin
37a152d1ae Merge "Show how to use broadcast for accessing voice search settings." 2011-08-04 02:51:50 -07:00
Luca Zanolin
50b7e75061 Show how to use broadcast for accessing voice search settings.
Change-Id: Ie17e377cd1814b58e00a56e8dfb84fc66cd88985
2011-08-04 09:50:21 +01:00
Stephen Hines
e036a5f1cb Remove Runtime exit() function from Balls app.
This prevents a nasty teardown bug that was causing segfaults during atexit().
It is more than sufficient to call onStop() in this case to properly release
all resources.

Change-Id: If9ea892074382f9ea194da3d75771aae3b529053
2011-08-02 17:11:34 -07:00
Dianne Hackborn
65b7786636 New API showing the various new service binding flags.
Change-Id: I2c19388c1c8b8386d77183c1e1f3aa9eef85cd46
2011-07-29 01:49:10 -07:00
Svetoslav Ganov
7dd37fbbed Adding a missing documentation of the ActionProvider ActionBar sample.
Change-Id: I09772305953f7684388603f3f34ec21c64a09067
2011-07-28 17:50:04 -07:00
Makoto Onuki
b2ebc5c6ce Merge "Support new intent INVITE_CONTACT introduced in v14" 2011-07-26 15:15:47 -07:00
Makoto Onuki
23e15c5d41 Support new intent INVITE_CONTACT introduced in v14
SampleSyncAdapter uses INVITE_CONTACT to add a raw contact to an existing
contact.

INVITE_CONTACT is treated in the save way as ACTION_INSERT, except:
- The incoming intent won't have the account extra, so always use the first
  account found.
- The name field will be prepopulated with the display name of the passed
  account.

Bug 5061956

Change-Id: Ica1263fe54150dbc0e79389ebdf2a0e748a7c840
2011-07-26 14:47:07 -07:00
Jason Sams
6b63b54036 Merge "Fix sample to use API 14." 2011-07-26 12:19:21 -07:00
Romain Guy
c35d058e8d Add new API demos for fragment custom animations.
Change-Id: Ia4339d4e4c1617907a9c707e1b8c2309b303e267
2011-07-25 16:29:00 -07:00
Amith Yamasani
ea5c0b0f87 New SearchView expansion using ActionBar feature.
Change-Id: Ib0a4bdc45af65fdeeb354ee02de02b251fec471d
2011-07-25 13:17:05 -07:00
Jason Sams
16f8525aaf Fix sample to use API 14.
Change-Id: Iba9cb731a80f32972d61b8d7e55b4881cb81d36c
2011-07-21 17:22:40 -07:00