Commit Graph

5759 Commits

Author SHA1 Message Date
Anirudh Dewani
fea911d535 Network detection sample using TelephonyManager
Change-Id: Iaa5b66a2eda07fd9de4ea613209226dd4ee64abd

Conflicts:

	samples/ApiDemos/AndroidManifest.xml
2011-06-23 12:07:57 +05:30
Raphael
320d10ef62 Package the 2 llvm-rs-cc versions in the Windows SDK.
Change-Id: I7ae8f95b1e173ecc1c5efd6200dfce63b79d9b6c
2011-06-22 15:27:49 -07:00
Xavier Ducrohet
79aa3cea3a Prepare new plat-tools SDK component with 2 llvm versions.
The output of the platform tree build is llvm-rs-cc-2 and should
be used for apps targeting 12+. This is encoded in llvm-rs-cc.txt

The older (HC) version of llvm-rs-cc is copied from the prebuilt
and is used for apps targeting 11+.

Until new tools that can read/process llvm-rs-cc.txt are released,
old tools will use the HC version of llvm-rs-cc which ensure
proper compatibility.

Change-Id: Iddb924409cc9238531bf1a0448b14b7eac3396a5
2011-06-22 15:27:44 -07:00
Dianne Hackborn
102041a8bc SDK only: add documentation tags.
Also fix up the new support API demo documentation.

Change-Id: I7a6945ffafa6a93cd394d5ce5729d6f9dfc0a183
2011-06-16 14:38:03 -07:00
Adam Powell
b0b4bcfc31 DO NOT MERGE. Only impacts SDK. Integrate from master.
Update for ViewPager changes

Change-Id: Ib7024ae0ba2759a8477f267438b7b3a35ae51d23
2011-06-16 00:42:18 -07:00
Xavier Ducrohet
47d88948c9 Update sdk files for the mr2 sdk.
Change-Id: Ia40fc45be7be93fbe12103f057f50b99fe6e2797
2011-06-15 15:30:27 -07:00
Anirudh Dewani
b79c8d0583 Merge "Adding resizeMode to widget samples." into honeycomb-mr2 2011-06-15 10:57:44 -07:00
Dianne Hackborn
b181a0d1a8 Merge "New API demos showing use of tabs with fragments." into honeycomb-mr2 2011-06-13 16:33:26 -07:00
Dianne Hackborn
be6b6b494f New API demos showing use of tabs with fragments.
Also various cleanup in other demos.

Change-Id: I4f5669117e28312bcd4b28795c5eca5f4ab6dcfb
2011-06-13 16:27:17 -07:00
Bruno Oliveira
6f24f89ccb Merge "Adds the Random Music Player sample." into honeycomb-mr2 2011-06-13 14:25:26 -07:00
Anirudh Dewani
cd5e69361d Adding resizeMode to widget samples.
Change-Id: I60e43f4f2f3726f7b268f532f2da86913df72982
2011-06-10 16:46:40 +05:30
Ying Wang
e4ccbd68ec Use a function to package android support libraries.
Change-Id: I52240b31fba7728b74d57fd806a93988e3ac8fe9
2011-06-07 11:25:07 -07:00
Bruno Oliveira
b30a3010f5 Adds the Random Music Player sample.
This sample illustrates how to write an application that plays media
in the background, handles streaming media from the network and
reacts appropriately to system events like headphone disconnection and
audio focus changes, and also uses the notification system to
keep the user informed about what is happening.

This CL is a cherrypick of the old CL 104495 (originally in
honeycomb-mr1) into honeycomb-mr2. Original CL:
https://android-git.corp.google.com/g/#change,104495

Change-Id: Ib8b15ee920300adc093a8b52c17bd9c251ac74ca
2011-06-07 01:09:21 -04:00
Xavier Ducrohet
80f8442291 Add v13 to the compatibility package.
Also remove ApiDemos from the package and instead
add each library-specific sample app to each v##
folder.

Change-Id: I2932bbb91c7122c122973902d1fcd159ca899381
2011-06-06 19:21:45 -07:00
Dianne Hackborn
7ffb7d4b2f Update pager demos to match new v4 ViewPager API.
Change-Id: I3b0f3382d56b477868b5a5fbf5af22fa83c3e06a
2011-06-06 15:01:45 -07:00
Dianne Hackborn
47f569e460 Lost and found.
Change-Id: I3aa4824e2c2157be715d93b698963c54dd98e099
2011-06-03 12:31:09 -07:00
Andy Stadler
7e408e8be4 Merge "DO NOT MERGE Replacement sample code for DevicePolicyManager api." into honeycomb-mr2 2011-06-03 10:24:20 -07:00
Dianne Hackborn
72d2e5c1b9 New demos for the v13 support library.
Change-Id: I79a727f987d3b21274e1f9ee6359caa2231c258b
2011-06-02 19:44:57 -07:00
Andy Stadler
547494ef8a DO NOT MERGE Replacement sample code for DevicePolicyManager api.
* UI is organized into multiple screens to make it easier to understand
* More feedback about local vs global (aggregate) policies
* Uses preference fragments for modern appearance

Backport of: I075161d389942786e6c95483becbff7ebe847078

Change-Id: Ie88c1577b2ebae124615cc4b45968851cf11187e
2011-06-02 16:39:17 -07:00
Dianne Hackborn
10c33528e0 Extract support lib samples out of ApiDemos and in to their own app.
Change-Id: I2ca344e5f1b44c4825de938c9a4f9375a523ede5
2011-05-27 18:40:15 -07:00
Dianne Hackborn
193d98ec18 Add new API demo for -swNNNdp resource qualifier.
Also clean up the demo for the w/h qualifiers to use numbers
that are the same as what we will be recommending.

Change-Id: I87ed35d8dfcb41985e19f450f7853f883effd207
2011-05-19 18:23:29 -07:00
Xavier Ducrohet
7748c429c9 Updated revision for the compatibility library.
Change-Id: I217fd11dc2458490e6981e9f614ce5770ba329c1
2011-05-18 13:36:36 -07:00
Dianne Hackborn
d9012d1bfa DO NOT MERGE. Integrate API demo work from master.
New API demo for the support library FragmentPager class.

Add API demo for new -wNNNdp and -hNNNdp configs.

Add new API demo for implementing a custom loader.

Also turn the fragment cursor list demo into a loader cursor demo.
2011-05-13 13:31:52 -07:00
Mike Lockwood
cd39282253 Add USB MissleLauncher sample program
This is sample code that controls a USB missle launcher using USB host APIs

Change-Id: Ic4201faccc4562bf114c70d50b0cab6a00d28a98
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-05-03 17:56:51 -04:00
Mike Lockwood
3385faf4e6 Add AdbTest sample program
This sample implements the "adb logcat" command using USB host APIs.

Change-Id: Ifbf122e99358bd3a1cd2a7967c364ffd59f003b3
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-05-03 17:55:19 -04:00
Winson Chung
b02ad50d1a Making the sample weather widget vertically resizeable.
Change-Id: I0301004a703b501cf135e0750512ad9070aff59c
2011-03-28 15:46:29 -07:00
Xavier Ducrohet
9775ffe5fd Merge "Update SDK files to API 12/Android 3.1" into honeycomb-mr1 2011-03-28 15:27:26 -07:00
Xavier Ducrohet
a6f8392dc7 Update SDK files to API 12/Android 3.1
Change-Id: I630413dab4f6859623a9c1aa44b54abe6ef392b8
2011-03-28 15:23:37 -07:00
Raphael
4cc9a1e942 Merge 48023786cf: 'Generate SDK Repository XML.' Do not merge.
When the "sdk_repo" modified is used during the SDK build,
this also generates the repository.xml and addon.xml files
for the new SDK repository packages and places them in
the DIST_DIR.

Example usage:
  make -j 16 PRODUCT-sdk-sdk showcommands sdk_repo dist DIST_DIR=/dist/sdk
  make -j 16 PRODUCT-google_sdk-sdk_addon showcommands sdk_repo dist DIST_DIR=/dist/addon

Also merges 3ea87ca65f
  'Fix XMLNS detection in SDK Repo XSD files.'
  to prevent a merge conflict later on.

Change-Id: Ic9832e71456d76f849406e641792f4285ffbf649
2011-03-25 17:45:21 -07:00
Xavier Ducrohet
57931c3ddb Move samples to 12.
Change-Id: Ic56f5f9e59ce601db37b593b2e715793f6c3473c
2011-03-21 17:38:04 -07:00
Romain Guy
bc411cdd02 Merge 520c90cc from master. do not merge.
Don't crash because of hardware acceleration.

Change-Id: I70554d5c7637b768cf815bb9f57a5d3e2c49066d
2011-03-18 16:20:28 -07:00
Xavier Ducrohet
d73e1584d5 Add android-support-v4.jar to the apidemo samples in the SDK package.
Change-Id: I07a9723152ffc4f08bbfd254e886986ec0429509
2011-03-17 12:10:10 -07:00
Scott Main
900a1c1cf1 am 62c9b6cb: Merge "fix density sample to state density type rather than screen size" into honeycomb
* commit '62c9b6cb1479c24e07bc81b61b77905d13998b41':
  fix density sample to state density type rather than screen size
2011-03-16 12:13:58 -07:00
Scott Main
62c9b6cb14 Merge "fix density sample to state density type rather than screen size" into honeycomb 2011-03-16 12:03:07 -07:00
Scott Main
882b22d698 fix density sample to state density type rather than screen size
Change-Id: I3d8fd592c914c648b9ebb19fd585f7a20a882427
2011-03-16 10:30:17 -07:00
Xavier Ducrohet
07815cd01d Remove the pre-made notice file from platform-tools.
A change in build.git now puts the one that's automatically
generated.

Change-Id: Idced9ea6176152400189203b84809c9a5a3fd92e
2011-03-15 13:29:38 -07:00
Ying Wang
b0948c5a6e am b058af05: Disable ccache when using mingw.
* commit 'b058af052efa1dccf38eef8993008920088ff188':
  Disable ccache when using mingw.
2011-03-11 14:11:11 -08:00
Ying Wang
b058af052e Disable ccache when using mingw.
Change-Id: I40ec9f6dfbf54b362b8a87cde7774b396b46b063
2011-03-11 13:59:34 -08:00
Jeff Brown
0d4619cc48 Merge "Update samples to use new getMotionRanges() API." into honeycomb-mr1 2011-03-09 18:33:55 -08:00
Dianne Hackborn
6b3f9b3ac9 Clean up support library samples.
Move them off into their own directory, so it is less confusing to
find them.

Also put in some additional samples -- throttle and arguments.

And add some docs.

Change-Id: I221e56c7ff203934796979bb5ed7ab8835f84b83
2011-03-08 18:18:10 -08:00
Jeff Brown
cb34b7c07a Update samples to use new getMotionRanges() API.
Change-Id: I6b67b7cd1f739b5b52ac32745f52bf0a092480a0
2011-03-08 17:35:22 -08:00
Daniel Sandler
f6ab64affe Merge "Restore CAMERA permission to ApiDemos." into honeycomb-mr1 2011-03-04 10:42:15 -08:00
Daniel Sandler
6044514d0d Restore CAMERA permission to ApiDemos.
Bug: 3512448
Change-Id: I6a80e7f0f9406e084fec9b626abb19cb24b4fe3d
2011-03-04 10:38:04 -05:00
Dianne Hackborn
af3c92d501 Merge "New API demo showing arguments to fragments." into honeycomb-mr1 2011-03-03 22:23:17 -08:00
Dianne Hackborn
7f308f27bf New API demo showing arguments to fragments.
Change-Id: I5bc41bb23b7ac6a6d7cbbd08cec67879dc4ae2fe
2011-03-03 22:20:11 -08:00
Andy Stadler
04631234e9 Add emailcommon to classpath
Change-Id: Ia7ebfbc1c154883f9ace40ce5060a85cf471eaa2
2011-03-03 16:40:26 -08:00
Shih-wei Liao
45e0abddcf Merge "Make AndroidManifest.xml's activity match what's in Java files" 2011-03-02 21:26:25 -08:00
Ying Wang
f566bf1d88 Merge "Add android-support-v4.jar to sdk." 2011-03-02 21:22:59 -08:00
Kenny Root
f57cc7f77b Merge "Switch demo to use new delete observer" 2011-03-02 08:50:46 -08:00
Shih-wei Liao
7cd58489c9 Make AndroidManifest.xml's activity match what's in Java files
Change-Id: I9489d32a715a1aa7f8449495b7c1101a1ad1eac6
2011-03-01 18:21:44 -08:00