Commit Graph

120 Commits

Author SHA1 Message Date
Raphael
e0a265f558 SDK Manager: suggest install of new platforms, addons or extra packages.
Supports the new "android update sdk" action.

Change-Id: Ib096f1f024639018252c58d4f9c8872ead3c39b9
2009-10-12 14:00:45 -07:00
Android (Google) Code Review
e7ad6a5e40 Merge change I2fb42327 into eclair
* changes:
  SDK Manager: extra packages must respect min-tools-rev too.
2009-10-11 12:52:46 -04:00
Raphael
cce3d0d9ba SDK Manager: extra packages must respect min-tools-rev too.
SDK BUG 2040986

Change-Id: I2fb42327ff6d474fd8ad58fcd0725af3972ea026
2009-10-09 18:45:15 -07:00
Raphael
6f9c5895a7 SDK Manager: fix selection of non-expanded remote archives.
SDK BUG 2177033

Change-Id: I408e3edaa5a418df871ebf0da567468bf81189df
2009-10-09 17:34:30 -07:00
Raphael
31d0121f68 Fix adt-tests: remove UpdaterLogicTest
Also reverts UpdaterLogic as package-private and
adds some javadoc to it.

SDK BUG 2179267

Change-Id: I19644cc4c99ac70598f3cbcfface2f19d9999931
2009-10-09 14:32:48 -07:00
Android (Google) Code Review
4d59d18aba Merge change Ib18a32c1 into eclair
* changes:
  Minor label change (size -> resolution)
2009-10-09 17:20:52 -04:00
Xavier Ducrohet
a4454504a5 Minor label change (size -> resolution)
Also remove unused imports

Change-Id: Ib18a32c126bc913e3e0c14546d2ce693190be1d1
2009-10-09 13:41:56 -07:00
Raphael
8e8ad9d39f Fix continuous adt-test: UpdaterLogic is now public.
Also remove the make sdkuilib from create_tests_symlinks, since
adt-tests actually uses the one from adt.

SDK BUG 2177557

Change-Id: Ied6c54f1227ed73fb77723e016559357fc1c1ee2
2009-10-09 11:50:16 -07:00
Raphael
38169df333 SDK Updater: don't auto-expand archives when selecting a package
SDK BUG 2177033

Change-Id: I2c7af74e0dbbb3fc452e15e135b656a89bde4d31
2009-10-08 16:36:41 -07:00
Android (Google) Code Review
0947e82e4e Merge change Ica46d149 into eclair
* changes:
  SDK Updater: platform dependency on tools, addon dependency on platform.
2009-10-08 15:51:29 -04:00
Raphael
b192b0ef5b SDK Updater: platform dependency on tools, addon dependency on platform.
SDK BUG 2040986

Change-Id: Ica46d14939bb3a9bf499899a0bf571456d4c6017
2009-10-08 11:55:48 -07:00
Xavier Ducrohet
3a05612f59 Add hardware support to AVD creation dialog.
Change-Id: Ia20b55c788191b40159b5c38b66f1da333179ccc
2009-10-07 19:52:43 -07:00
Xavier Ducrohet
5e5e423346 New based dialog class.
This simply (for now) extends the jface dialog to properly
set it up.

Change-Id: I0d2bc2d10aad3811201f9d1df3efbfc87be50cb4
2009-10-07 16:04:23 -07:00
Xavier Ducrohet
2eae036a59 Update AVD creation UI to be easier for skin/sdcard.
BUG: 2162198

Change-Id: I47bf273a730a1bf6e0c3f47fb5247f02d06259a5
2009-10-06 17:06:51 -07:00
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
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
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
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
Raphael
3d4dec9184 BUG 2040986 : SDK Updater, platform dependency on tools 2009-08-12 18:12:33 -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
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
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
531749469d SDK Updater: fix main window to resize.
BUG 2038860
2009-08-06 11:39:39 -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
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
Xavier Ducrohet
91e0a8bb9c Fix minor typo and duplicated entry in sdk.atree 2009-07-28 16:28:09 -07:00
Xavier Ducrohet
c5b9a676e7 Prevent SDK Updater progress dialog from showing off screen. 2009-07-27 15:39:42 -07:00
Xavier Ducrohet
bc8b16505e Prevent SDK updater dialog from showing offscreen. 2009-07-27 15:26:10 -07:00
Xavier Ducrohet
e5bfd50ece Also filter the list of Archives to only show the compatible ones. 2009-07-23 18:02:07 -07:00
Xavier Ducrohet
fbeb74a610 Add a checkbox to only show packages that are updates or new. 2009-07-23 17:07:01 -07:00
Xavier Ducrohet
ecc85daf7b Fix loading of user repository and add refresh when adding/removing. 2009-07-23 14:43:49 -07:00
Xavier Ducrohet
ce359b0e8a Generalize usage of AndroidVersion instead of Api level in the SDK packages.
Platform, add-on and doc packages used to use Api Level to figure out
upgrade logic. This is replaced by AndroidVersion to properly handle
codename versions.
2009-07-21 13:48:37 -07:00
Xavier Ducrohet
f2869cf9a9 Add support for preview versions of platforms.
ro.build.version.codename is a new property indicating whether a platform
is in its release form (value = REL) or in development (value = dev branch
name such as Donut). When the codename indicates a development/preview version
then the API level must be ignored and this codename is used as a unique
identifier of the platform.

IAndroidTarget has been changed to return an instance of a new class
AndroidVersion instead of the api level directly. This class helps deals with
the logic of comparing version from targets or devices.

This change impacts all of the sdk manager to deal with targets identified by
codename instead of api level. This in turn impacts everything that relies
on the sdkmanager: ADT (build, launch, project creation), the AVD manager,
the SDK updater.
2009-07-20 18:11:21 -07:00
Android (Google) Code Review
9412517b3f Merge change 6651 into donut
* changes:
  AVD Selector: Add a "Start" button to launch the selected AVD in a new emulator. Doesn't detect if the AVD is already running; instead prints the emulator error.
2009-07-09 12:53:30 -07:00
Raphael
3684b06a4f AVD Selector: Add a "Start" button to launch the selected AVD in a
new emulator. Doesn't detect if the AVD is already running; instead
prints the emulator error.
2009-07-09 15:37:09 -04:00
Raphael
009801b0ad SDK Updater: detect when install addon or tools to deal with
updating or restarting adb.
2009-07-02 21:41:20 -07:00
Xavier Ducrohet
59fc8c9d06 All actions in AdvManager now receives their own ISdkLog.
Also added 'update' action to AvdSelector.
2009-07-01 03:14:06 -07:00
Xavier Ducrohet
1ceaaeae68 Add tooltips and a legend (AVD selector)
Also added some TODOs
2009-07-01 01:26:22 -07:00
Raphael
ee763d1307 SDK Updater: Better handling of fetch errors.
The remote page now shows fetch errors in the tree.
Using refresh tries to reload error sources.
2009-06-30 11:29:51 -07:00
Xavier Ducrohet
6c3fa89aad Properly enable/disable buttons in the AVD selector.
Also fixed a small issue with selection in the checkbox
mode.
2009-06-30 07:37:32 -07:00
Xavier Ducrohet
e78015c12d Plug the Android SDK window as the AVD manager.
- the "manager" button on the AVD selector (when not in manager
  will open the Android SDK window

- the AVD manager in the eclipse toolsbar open the Android SDK
  window as well.

Still left to do:
- remove the now obsolete AVD wizard
- figure out what to do with the other pages.
2009-06-30 06:38:30 -07:00
Xavier Ducrohet
f0ac8e8a09 AVD creation dialog. 2009-06-30 05:17:00 -07:00