Commit Graph

1131 Commits

Author SHA1 Message Date
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
Jeff Hamilton
9d7ed78e7a Fix crashes when NFC isn't supported.
Change-Id: I638a1e4e5d7a0b5d4f84668e134b13457aeaa879
2011-07-20 23:22:00 -05:00
Svetoslav Ganov
575c0c3e5c Fixing the action provider demo
1. Fixed a bug the the way the URI was set to the
   intent.

2. Added code to copy a private raw resource to a
   publicly readable file that is to be shared.

Change-Id: Ib7ee172b2a4a890ce77911d0ef1c3ea3b24e69c9
2011-07-19 13:19:47 -07:00
Brett Chabot
e2e7ec9429 Build all samples against SDK.
Change-Id: I9ea35c07a7f9d2e2a42d952101e99528fd68fb6c
2011-07-15 17:31:33 -07:00
Svetoslav Ganov
ddece2d84d Adding ActionProvider demo.
Change-Id: If0f540cd796ced27f392f1c31d20ab5ab34e5c3e
2011-07-14 18:00:14 -07:00
Xavier Ducrohet
08786e05eb am dd0457ad: am d5394e8f: am d8a9cfce: Fix sample package API level.
* commit 'dd0457ad254943448a8f3df2082ec2d66e0e6223':
  Fix sample package API level.
2011-07-13 14:54:00 -07:00
Jeff Brown
04a4d9a0fc Remove the simulator target from all makefiles.
Bug: 5010576

Change-Id: I3af1c8fb9b1b558a1c03212a2bb1834095c806da
2011-07-11 22:11:50 -07:00
Xavier Ducrohet
d8a9cfce8d Fix sample package API level.
Change-Id: I8bf67e3fdb21e4aca966c3721b75024241bade73
2011-07-11 13:36:09 -07:00
Debashish Chatterjee
4534229ae8 Copied over latest changes to VoicemailContract api.
In addition, modified VoicemailProviderHelpers to use "source_package" uri
parameter instead of deprecated /source/ path for source specific uri
and stop using other deprecated fields.

Change-Id: Ia9570de2d9823ea27d57f7d602348d2a2826f2e8
2011-07-04 13:25:27 +01:00
Jason Sams
5250126200 Merge "Convert fountain from RSSurfaceView to RSTextureView." 2011-07-01 17:41:47 -07:00
Dianne Hackborn
d79a09095c New API demo showing how to make a resource reference.
Change-Id: I450d70432debc9d7f58a7f6597628dacc0225ddd
2011-07-01 15:08:44 -07:00
Jason Sams
4c99800244 Convert fountain from RSSurfaceView to RSTextureView.
Change-Id: Ia4fec4338f3fb11cfbacf1acd64c88e5954afd7d
2011-07-01 13:56:57 -07:00
Jeff Brown
f53e7c9863 ApiDemos: Fix array indexing bug in game controller demo.
Change-Id: Ic7f1ce8bed39b2c10dd0e583c3ad118095f14752
2011-06-30 12:01:10 -07:00
Dianne Hackborn
d9344bb5fd Merge "Add API demo for LocalBroadcastManager." 2011-06-28 14:42:35 -07:00