Commit Graph

220 Commits

Author SHA1 Message Date
Xavier Ducrohet
d280d2363e Monintor resolution/size chooser dialog
This simple dialog lets the user choose a screen size (from a fixed list) and
a resolution (as returned by SWT's Display class).

This is used by the AVD start options dialog to help users figure out
the pixel density of their monitor.

Change-Id: I3eec0e7fac850c82e836d2bc0291a491f29f516e
2009-10-02 15:16:06 -07:00
Xavier Ducrohet
d13d440d43 Emulator launch options dialog.
This is displayed when clicking the Start button in the AVD manager.

The dialog allows to easily scale the emulator to match an arbitrary screen size
and to wipe the user data if needed.

The required monitor dpi is computed using java.awt.Toolkit, but (at least
on MacOS) it doesn't return the correct value, so it can be user supplied.
It's stored at least while the app is running and if possible in the settings
of the ADV/SDK Manager/Updater.

The wipe-data and scale flags are stored and reused while the app keeps
running as well.

Change-Id: Ia2f3ff5f4de285a3d505c6914d6b89cc663be284
2009-10-02 12:35:10 -07:00
Xavier Ducrohet
8677a1704e Replace icon template with new style and multiple densities.
The icon in the templates of ADT was medium density only.
I added new densities (high and low), as well as updated to
the new Eclair style. Also added a version for Ant project.

Updated ADT and sdklib to deal with creating new projects
with all 3 icons.

In case of Ant project, this is done only if the icons
are present in the target platforms.

For ADT, this is done only if the project target donut
or later. Older project still have only one icon located
in drawable/

Change-Id: I77069a1e4902ef395d490526aabc40a26e33d4ca
2009-09-30 20:46:00 -07:00
Xavier Ducrohet
cc02b85ba6 Add support for 'android update test-project'.
This is only to be used to update the location of the main project.
To update other properties, 'update project' can be used.

Change-Id: I96ff44295460c7e331953263abccea17108d5a70
2009-09-28 16:30:13 -07:00
Android (Google) Code Review
eafb009baf Merge change I663d4cb7 into eclair
* changes:
  Update the project creation (from the command line):
2009-09-28 16:33:57 -04:00
Xavier Ducrohet
98b9c10e63 Parse add-on supplied layout devices.
Add-ons are expected to provide a file called devices.xml in their root
folder. The XML schema for this file is
	eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/sdk/layout-configs.xsd

I slightly fixed the schema so that normal screen size use the token
"normal" instead of "medium" to match the resource qualifier.

To round up the feature, the following changes are included:
- getEnum in the resource qualifier enum has been made public. There's no
sense in keeping it private and it'll help with people possibly using
valueOf which behaves differently (case sensitive so
ScreenSize.valueOf("normal") fails, while getEnum on the same string succeed.
- Updated the device configuration UI to deal with missing list of
devices while the SDK loads.

Change-Id: Ib1b01007d2ae7fd6398172c3549b2686c33d48be
2009-09-27 21:54:09 -07:00
Xavier Ducrohet
c51d184216 Update the project creation (from the command line):
- Make the distinction between the activity class name, manifest entry,
  fully-qualified name, and tested activity for the template place-holders.
  Test activity names now directly contain the full name (including the
  "Test" prefix) instead of the template adding it.
  This is required by the new 'create test-project'

- New action: create test-project
  This requires a path to the main project. It reads the package, activity
  name and target from the main project.
  The activity is read from the manifest and can be in a more complex form
  than previously expected (for instance .subpackage.MyClass, instead of
  simply MyClass). This is what required the re-work the activity related
  template place holders.
  Options:
   -m --main Location path of the project to test, relative to the new
             project [required]
   -n --name Project name
   -p --path Location path of the new project [required]

   Example: for 2 projects MyProject and MyTests located in the same folder,
            calling from their parent folder.

     android create test-project -p MyTests -m ../MyProject

- build.properties now only gets application.package for older targets
  as the new one get it directly from XPath

- Remove AndroidXPathFactory from the anttasks project as it was already
  in sdklib which is a dependency.

- Removed IntelliJ templates for the SDK. We haven't supported them for
  a while, and now that IntelliJ has built-in support for Android, it's
  not that useful anymore.

While there is the command line parameters for 'update test-project'
it's not yet implemented.

Change-Id: I663d4cb7f439bb2abfe866f893e58f4d13aff975
2009-09-27 18:08:00 -07:00
Xavier Ducrohet
0f61aa6470 Sync DDMS/Traceview/Android version on the repository source.
All apps now read source.properties located in SDK/tools
to know which version they. This is used in about box display
and in ping usage.

Change-Id: I6620c3eb703c32bfcdfd96e6a27bffc7a123b974
2009-09-25 15:18:37 -07:00
Piotr Gurgul
28265ed42f Add auto-generated tested.project.dir property
Adds tested.project.dir=".." to ProjectDir/tests/build.properties in order
to indicate automatically that this is a test project and point the
tested project directory.
2009-09-22 13:58:28 -07:00
Android (Google) Code Review
28e5f75c74 Merge change 24918 into eclair
* changes:
  Put back support for hardware.ini at the top level of an add-on.
2009-09-15 18:50:59 -04:00
Raphael
8151879a7d SDK Updater: fix wrong error when unable to get repository.xml
BUG 2095530

Change-Id: I19622378b8da049f1c3416b8e0951ecc1f7475f0
2009-09-14 15:35:54 -07:00
Xavier Ducrohet
80c767f761 Put back support for hardware.ini at the top level of an add-on.
Change-Id: Ifb4e567e69f0f5e6ffde8f98c636336cf1289e42
2009-09-14 14:14:09 -07:00
Raphael
2196fd0317 android tool: support --target symbolic target names
BUG 2056746

Change-Id: I579e58f7c63cf404cd11af394f41ed7f998593ce
2009-09-10 16:06:32 -07:00
Xavier Ducrohet
e17ff22563 Support for hardware.ini per skin in add-ons.
Change-Id: Iab230f09504a7df34faa6a27c121a79ef1ffd603
2009-09-09 16:25:44 -07:00
Raphael
a7bb36d181 SDK Updter: change window title to match ADT
Also change the name displayed by the "android" wrapping scripts.

Change-Id: I663e1dcadfef7caf2e42138e39b1237f08091c77
2009-09-02 15:17:22 -07:00
Xavier Ducrohet
338bc1cc45 Move from arbitrary resource filters to fix ones
Resource filters are used when generating additional APK containing only
specific resources.
The previous UI allowed for any type of filters, but we are moving to a
simpler way with fixed filters.
The first one is the density. Selecting the filter will generate 4 APKs per
application: default (all resources), hdpi (only hdpi/nodpi and default
resources), mdpi, ldpi.
2009-08-25 17:17:15 -07:00
Piotr Gurgul
3259661b26 Ant properties names legacy support
Support for old property names in SetupTask.java, in order to maintain
compatibility with Donut and earlier.
2009-08-25 16:48:17 -07:00
Piotr Gurgul
2968aa3020 Ant properties names changed
application-package to application.package
sdk-location to sdk.dir
android-jar to android.jar
android-aidl to android.aidl
in order to make their names compliant with the ant standards and rest
of the property names.
Properties names in alias rules deliberately ommited in this CL.
Some minor style changes introduced.
2009-08-24 23:06:56 -07:00
Android (Google) Code Review
9a7b2700fd Merge change 21645 into donut
* changes:
  Make SSL error a bit more human readable.
2009-08-18 10:30:43 -07:00
Xavier Ducrohet
78247ff85e Make SSL error a bit more human readable. 2009-08-17 18:04:45 -07:00
Android (Google) Code Review
b172b1a5b0 Merge change 21617 into donut
* changes:
  ADT Export wizard now calls ZipAlign
2009-08-17 17:13:01 -07:00
Xavier Ducrohet
ed235c7891 ADT Export wizard now calls ZipAlign 2009-08-17 16:07:11 -07:00
Raphael
729fc9355d SDK Updater, restart ADB after updating tool/addon package.
There's a new setting for this too.

BUG 1922590
2009-08-17 12:10:30 -07:00
Raphael
12366c81fc BUG 1922588: SDK Updater, Needs better license display 2009-08-16 21:14:05 -07:00
Android (Google) Code Review
7ab6ca5451 Merge change 21301 into donut
* changes:
  BUG 1922590 : SDK Updater, customize message for Windows preventing a directory from being renamed.
2009-08-14 14:10:03 -07:00
Raphael
e7e8bb5382 BUG 1922590 : SDK Updater, customize message for Windows preventing
a directory from being renamed.
2009-08-14 11:38:50 -07:00
Xavier Ducrohet
954e80e5ca Make the Ant script sign and zipalign release builds.
It will also align debug builds.
BUG: 2052744
2009-08-13 21:13:53 -07:00
Android (Google) Code Review
a2b55f835b Merge change 21034 into donut
* changes:
  On project creation, put the app package in build.properties
2009-08-13 11:27:20 -07:00
Xavier Ducrohet
5b13066ef1 On project creation, put the app package in build.properties
This enabled 'ant uninstall' to work.
Also, add an error message to the uninstall rules in case the property
is not defined.

BUG: 2050451
2009-08-13 11:18:28 -07:00
Raphael
3d4dec9184 BUG 2040986 : SDK Updater, platform dependency on tools 2009-08-12 18:12:33 -07:00
Xavier Ducrohet
4e7bb1b603 Properly update the new path of the AVD during an 'android avd move'
BUG: 2048358
2009-08-11 20:23:10 -07:00
Android (Google) Code Review
093fff996e Merge change 20808 into donut
* changes:
  BUG 2039245 : Need to show something in the source if there are no available package
2009-08-11 15:44:37 -07:00
Raphael
8585e68b40 BUG 2039245 : Need to show something in the source if there are no available package
Also moves the "Show updates only" checkbox around.
2009-08-11 14:35:15 -07:00
Raphael
609b375a03 BUG 2041701: Release notes content/link in SDK Updater schema 2009-08-11 13:53:16 -07:00
Android (Google) Code Review
ce0155aaea Merge change 20520 into donut
* changes:
  Fix IAndroidTarget#isCompatibleBaseFor() for add-ons
2009-08-10 16:58:58 -07:00
Xavier Ducrohet
5c0fcdca73 Fix IAndroidTarget#isCompatibleBaseFor() for add-ons
BUG: 2042277
2009-08-10 12:45:10 -07:00
Raphael
1cf0c7fe0e BUG 2042088 : SDK Updater: we want to keep getenv(TEMP_SDK_URL)
Renamed the getenv and added one for user sources.
Added a (naive) check to prevent duplicate URLs.

Also fixed the repositoy.xml download error message, it was not displaying the reason of failure correctly.
2009-08-07 16:36:19 -07:00
Raphael
904ef4d8a4 BUG 2041688 : SDK Updater: better description of extra packages 2009-08-07 14:21:18 -07:00
Android (Google) Code Review
36e0ac795e Merge change 20389 into donut
* changes:
  Fix some display string that contained an unused %s and an NPE
2009-08-07 10:30:22 -07:00
Xavier Ducrohet
5ae5e3da1b Fix some display string that contained an unused %s and an NPE
This makes the android app crash when the XML cannot be validated.
2009-08-06 19:29:21 -07:00
Xavier Ducrohet
3a2c7273ee Fix some minor typo
BUG: 2039797
2009-08-06 17:59:52 -07:00
Android (Google) Code Review
097ba88d53 Merge change 20363 into donut
* changes:
  Make android.bat copy commons-compress to tmp with the other jar files.
2009-08-06 17:13:39 -07:00
Xavier Ducrohet
48b3b5efc2 Make android.bat copy commons-compress to tmp with the other jar files.
BUG: 2039759
2009-08-06 17:12:09 -07:00
Raphael
26cdbb788a SDK Updater: Fix to allow install from directory URL (i.e. auto-guess the
repository.xml correctly.)

BUG 2039080

Also removed some misc Eclipse 3.5 warnings.
2009-08-06 12:51:22 -07:00
Raphael
531749469d SDK Updater: fix main window to resize.
BUG 2038860
2009-08-06 11:39:39 -07:00
Xavier Ducrohet
2f6bd734c0 Fix comparison of 2 doc packages that have the same codename/revision.
This made the Donut_r1 doc show up as upgrade to the donut_r1 doc.
BUG: 2037448
2009-08-05 19:31:04 -07:00
Xavier Ducrohet
6d673960b0 Fix NPE that prevented any package w/o license to be installed.
java.util.Properties#setProperty() doesn't like it when the value is null
which was the case when a package had no license.

Made sure it won't happen on other properties than the license as well.

Also improved error display when an unexpected Throwable is thrown during
install (Stack Call is now display if the Throwable has no message).

BUG:2037085
2009-08-05 17:13:00 -07:00
Xavier Ducrohet
bd13370117 Fix PlatformTarget#compareTo(IAndroidTarget) again. 2009-08-03 13:46:27 -07:00
Xavier Ducrohet
c74ace1ebd Support packages with no license. 2009-07-30 12:28:17 -07:00
Xavier Ducrohet
9057041cf8 Adds call back to the SDK updater for SDK content notifications.
Make ADT reload the SDK when a new package is installed/removed through the
SDK Updater.
2009-07-29 17:36:21 -07:00