Commit Graph

90 Commits

Author SHA1 Message Date
Dianne Hackborn
b880eb4260 Update API demos to use new Fragment features.
In particular, use the new argument Bundle for passing runtime
data to fragments.  Simplifies the code some.

Change-Id: I248bfa0bf94b1599926038174baa4c7387ed8ba1
2010-08-12 17:19:06 -07:00
Chet Haase
84df83a5e2 Make fragments use the new animation system
Change-Id: I20b200c285336066d96cdb9cc37287d1168a1874
2010-08-11 16:41:49 -07:00
Adam Powell
72187805c3 Added simple demos for ActionBar
Change-Id: Ie0dbf0c2bad61f75825e832305205811f49459d1
2010-08-06 14:42:20 -07:00
Dianne Hackborn
d21c55665c Some tweaks to the loader API demo.
Unfinished, but checkpointing.

Change-Id: Ib832a6915847302e8bbb23c6cf111c932fdacabf
2010-08-05 18:20:35 -07:00
Oscar Montemayor
d53965f305 Attempting to add new Corp App to demo Global Proxy.
Making ApiDemos device admin able to set the Global Proxy.

Change-Id: I565ccf5d05b1c7d775aea968e99e04894c3f8b64
2010-08-04 16:02:39 -07:00
Andrew Stadler
45ae9c3def Cleanup fragment api demos
* Cleaned up extra whitespace & made vertical whitespace more consistent
* 100col wrap
* Remove unused imports
* Add @Override where necessary

Change-Id: I1ad404ffc4ce7fa9c4b661f7cc1783c86356316b
2010-08-03 17:39:20 -07:00
Dianne Hackborn
132ab286a1 Update preference example to show switching with fragments.
Change-Id: I2b1db31b5e1a0e83d843ad68b0a177048d2914f4
2010-08-03 17:07:45 -07:00
Scott Main
6e9821c667 change fragment stack button from "next" to "new fragment"
also move text in the dialog demo to the top to make dialogs easier to read

Change-Id: I76c44f773098e64c79465060efb4bb6edab1fa3a
2010-08-03 14:12:43 -07:00
Dianne Hackborn
721a184e0a Add new sample for multi-pane PreferenceActivity.
Also re-arrange all preference API demos to go in their own
package, since the preferfence APIs themselves are in their own package.

Change-Id: I305f77dc09748bb60d1de8a23d063db64c11bb1e
2010-08-03 10:39:14 -07:00
Dianne Hackborn
05c2cb0748 Add sample code for PreferenceFragment.
Change-Id: I64222124daa117a2ea61dc55f2e26af78d3689c2
2010-07-28 16:07:15 -07:00
Dianne Hackborn
cdb8af8170 Add API demo for DialogFragment.
Change-Id: Id02cba60d661f747c36bc113bd81a2b6fe45573a
2010-07-24 11:43:26 -07:00
Dianne Hackborn
97200cb52e No longer need to explicitly hide/show list.
Change-Id: Ie5690ad76576956cb46f8dcccb734e3ccbf9ac4d
2010-07-12 11:41:33 -07:00
Dianne Hackborn
b7879a7755 Update to follow LoaderManager API.
Also renaming the list samples to make it clearer what they are.

Change-Id: I91b209a32ad4dbf82982682884769d1cde8e3bc3
2010-07-09 18:43:38 -07:00
Dianne Hackborn
fc9a8e6260 Update to use new LoaderManager API.
Change-Id: I76c7e7210979742e4ab2140ee68fcaf2207505e5
2010-07-07 17:30:32 -07:00
Dianne Hackborn
3c68928dd8 New fragment sample.
This shows more complicated list interaction: using a loader
to populate the list with results from a cursor.  Makes use
of the new built-in empty message and indeterminant progress
features.

Change-Id: I04afb50879995bade286aab0eedfff40f6a5e304
2010-06-28 15:10:37 -07:00
Konstantin Lopyrev
991a1f530a Fix 2677197: Adding support for minimum number of complex characters to the Device Admin Sample App.
Change-Id: I7570f005ee665adc150e8c4fb92068b4d8dcdbb1
2010-06-21 16:59:31 -07:00
The Android Open Source Project
2da1d27f0f am 8467544d: merge from froyo-plus-aosp
Merge commit '8467544d4c8b4d23f1048775c145b087b73f2acf'

* commit '8467544d4c8b4d23f1048775c145b087b73f2acf':
  Cleaned up Samples by removing unsed imports and variables.
  Added missing classpathentry for DeskClock App, Bluetooth, obex, Gallery3D, Launcher2, GlobalSearch and Provision
  Removed unused Imports, Added Type Arguments, removed some Warnings by using unused Methods and Variables
  Reduced warnings by removing unused imports, unused variables and adding type arguments
2010-06-14 11:31:13 -07:00
The Android Open Source Project
10afb18820 merge from open-source master
Change-Id: Iedee6a43e23821175148324bc2502a33112e2d59
2010-06-14 09:26:36 -07:00
Dianne Hackborn
9c5d122a98 New fragment sample code for ListFragment and context menus.
Change-Id: I97c64fa4c4140c81c7d0147026ba558ba1a76d2e
2010-06-12 10:17:58 -07:00
Dianne Hackborn
fce9bfd563 Add API demo for fragment menus.
Change-Id: I85714938861dea06bb72f39dd7d1465c0d3926e4
2010-06-09 11:38:32 -07:00
The Android Open Source Project
48bf2d5efa am 74a0b220: am 740c3e2e: merge from open-source master 2010-06-02 07:30:55 -07:00
The Android Open Source Project
740c3e2e97 merge from open-source master
Change-Id: I02c592cc054ac16e494ca7a34673ffb562287b01
2010-06-02 07:23:24 -07:00
Konstantin Lopyrev
b00082c73a Fix 2673731: Adding support for password history to the Device Admin Sample App.
Change-Id: I1380ff9475c201d3c2ec2ec449b1103c3d55a3a7
2010-05-26 14:58:15 -07:00
Christian Mehlmauer
97d0e8ddb7 Removed unused Imports, Added Type Arguments, removed some Warnings by using unused Methods and Variables
Change-Id: I39a4eb2b17f3411b17fcc49cbbbe396e89fab24a
2010-05-21 19:34:32 +02:00
Christian Mehlmauer
62e6bdb0fe Updated deprecated Contacts API to ContactsContract
Change-Id: I1d51b5eba579e841d6024eec08670ae8ff595f94
2010-05-20 06:29:48 +02:00
Dianne Hackborn
165ca04d0e Add new fragment demo for changing with config.
This changes the FragmentLayout demo to show how the layout
(and entire UI flow) can easily be changed based on screen configuration
using fragments.  Here we have different UI for landscape vs portrait.

The old FragmentLayout demo is renamed to FragmentAnim and extended a
bit.

Various other tweaks to follow fragment API changes.

Change-Id: I8df918dbf32b3617cae2b20f77eb37d8211b8c89
2010-05-19 19:25:46 -07:00
The Android Open Source Project
41f49c540d am d350cf1b: am ca81fb41: merge from open-source master 2010-05-19 08:20:53 -07:00
The Android Open Source Project
ca81fb411a merge from open-source master
Change-Id: I4af8f65d1dfff3912f0057645943df78ddefc7ca
2010-05-19 08:13:51 -07:00
Christian Mehlmauer
9bfa323af1 Corrected StatusBarNotificationSample
Change-Id: I892e84198cfe288e673b81e8ffc331525fee09b8
2010-05-18 23:44:32 +02:00
The Android Open Source Project
562d456ba8 am 3dcb1f7a: am c043a97c: merge from open-source master 2010-05-18 09:34:21 -07:00
The Android Open Source Project
c043a97c9f merge from open-source master
Change-Id: Ib0c6bef7b527a79c9902046889e29a4bccd0ab87
2010-05-18 09:27:19 -07:00
Christian Mehlmauer
b88f42b361 Removed Calls to deprecated API
Change-Id: Ia94734637df6aa7b8b08417c49a3485f34f1b94c
2010-05-17 23:43:43 +02:00
Dianne Hackborn
68f9ae5d18 New API demo of Fragment.startActivityForResult().
Change-Id: I87c5851bfaf3fa84bf57c101bab05b9a1911585d
2010-05-14 10:28:30 -07:00
Dianne Hackborn
edb8628b41 Update fragment API demos for new fragment APIs:
- Correctly work with state saving and restoring.
- Add new sample showing a fragment that is retained across activities.

Change-Id: I7b1e02135177e69e9fff23fcc55e86d93a75c7e0
2010-05-13 11:13:47 -07:00
Dianne Hackborn
09fa09cff2 Update to follow fragment APIs.
Change-Id: If7f4d2465590cd27aed04d2675498fbe59474728
2010-05-07 11:31:43 -07:00
Dianne Hackborn
d2d93d0b17 Update fragment samples to show back stacks and layout.
Change-Id: I016f87dc3b7433d0600a9a9308f666a36c5a98ca
2010-05-06 11:57:56 -07:00
Dianne Hackborn
5a076f43d5 First simple Fragment API demo.
Change-Id: I8d21485bc12445fe8a670796ddbc3e5ef57fd390
2010-04-19 15:09:36 -07:00
Jim Miller
68230c3f72 Fix 2527411: Extend sample DPM app to test setMaximumTimeToLock()
Change-Id: I1a0ff93a27d7d27b66acbacf953eb0984e85e4cf
2010-03-29 20:22:06 -07:00
Dianne Hackborn
c1f107a257 Add new quality constant.
Change-Id: I386438485a921ec94ed1047936ca182c04bce410
2010-03-22 17:02:46 -07:00
Dianne Hackborn
c48b3d9b71 Move DeviceAdmin APIs to android.app.admin. 2010-02-26 18:25:03 -08:00
Dianne Hackborn
bae0f4fd87 Add new MessengerService API demo.
Also refactor the LocalService demo to be more ammenable to being
used for sample code in the java docs.
2010-02-18 16:26:12 -08:00
Dianne Hackborn
0a4b90cb68 Fix issue #2420412: API review: DeviceAdmin API changes 2010-02-17 10:30:09 -08:00
Andrew Stadler
1f91425318 Cleanups to Device Admin sample code
1.  Rename SampleDeviceAdmin to DeviceAdminSample where it appears in
    filenames.  This makes it easier to find when scanning directories.
2.  Fix bug in max password length handling
3.  Add a toast to warn user that entering values in "Password Attempts"
    box has real consequences.
2010-02-08 21:00:05 -08:00
Dianne Hackborn
906d338680 Update to follow device policy "mode" to "quality" change. 2010-01-29 17:16:11 -08:00
Dianne Hackborn
c518e3ac44 Update to follow device policy API changes. 2010-01-28 13:16:10 -08:00
Dianne Hackborn
d51a50c766 More device admin work:
- Example warning message when disabling.
- UI to set maximum failed password attempts.
2010-01-26 18:04:54 -08:00
Dianne Hackborn
cc4ee91892 Start implementing UI for changing requested policies. 2010-01-21 14:30:29 -08:00
Dianne Hackborn
c86ba3199d Initial sample code for writing a device policy. 2010-01-16 18:01:37 -08:00
Romain Guy
74192eafec Deprecate fill_parent and introduce match_parent.
Bug: #2361749.
2010-01-08 15:11:18 -08:00
Dirk Dougherty
a276296490 Merge commit 'e897c1b4' into manualmerge
Conflicts:
	samples/ApiDemos/src/com/example/android/apis/app/_index.html
2009-12-15 23:27:22 -08:00