Contribution : Adding Android SDK automatically when starting Eclipse first time

46 views
Skip to first unread message

snpe

unread,
Oct 18, 2010, 10:42:56 AM10/18/10
to Android Contributors
Requirements:

- 3th party want to bundle Android SDK with their application as we do
on http://www.snpe.rs/sad/overview.html (you can check the
http://screencast.com/t/MzMyYmZiN screencast). However, this feature
requires patching ADT plugin.

Solution:

ADT plugin would check Java system variable (com.android.sdk.home, for
instance) and if exists valid SDK on this location then it would be
set the Android SDK Eclipse preference to this value and load SDK from
this location. The user would can change this location (the Android
SDK Eclipse preference have priority if it exists).

This feature can be usable for executing tests against Android SDK
too.

I have prepared patch. Would you like me to move patch in ADT master
and upload change ?

Xavier Ducrohet

unread,
Oct 18, 2010, 2:42:02 PM10/18/10
to android...@googlegroups.com
Hi,

I don't think we want any 3rd party to bundle the SDK in an Eclipse
based product.
Instead, I would prefer them to have the ability to download the SDK
from the repository on first launch (with the ability to skip the
install).

This will guarantee that the SDK that gets installed is always the
latest one. Also, we are starting to have a lot of platforms and it
makes no sense to bundle all of them. The UI should force the
developers to install the required packages (such as the tools), but
then choose which component they want (basically almost the same as
the SDK Updater).

Xav

--
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.

Please do not send me questions directly. Thanks!

Manfred Moser

unread,
Oct 18, 2010, 2:58:16 PM10/18/10
to android...@googlegroups.com
What about Motodev Studio for Android? Is there some pressure on them
to contribute back instead of rolling their own?

Haris Peco

unread,
Oct 18, 2010, 3:30:15 PM10/18/10
to android...@googlegroups.com
Hi,

I didn't mind that 3rd part bundle any platforms than just SDK
(http://dl.google.com/android/android-sdk_r07-windows.zip, for
instance).
Actually, it is possible that you (Google) include this SDK as Eclipse
bundle in ADT update site (it is simple). ADT would configure SDK on
first startup and the user can download some platforms in standard way
or plugin can offer him to download them. In this way, setting Eclipse
environment for the development Android application would be much
simpler.
If SDK bundle contains any platform, it is possible to execute plugin
tests easy with valid target (my second reason for this feature is
also important; maybe more important).

Do you agree with the following scenario :

- if ADT doesn't found system variable, it is old behavior; we can
offer dialog for download and install SDK and some platform(s)
- if ADT find system variable, then it check and set SDK

Additional, ADT would set any default device if there is SDK and there
is no one device.

Regards,
Peco

Haris Peco

unread,
Oct 18, 2010, 4:35:30 PM10/18/10
to android...@googlegroups.com
Hello,

I don't know anything about Motodev Studio for Android. I am
independent developer and I have tried to implement this feature in
my Android development application. You can take a look at
http://www.snpe.rs/sad/overview.html
Is there this feature in Motodev Studio ?

Best regards,
Haris Peco

snpe

unread,
Oct 19, 2010, 5:41:26 PM10/19/10
to Android Contributors
Manfred,

I have downloaded Motodev Studio and it haven't that feature.

Regards,
Peco

On Oct 18, 10:35 pm, Haris Peco <snp...@gmail.com> wrote:
> Hello,
>
> I don't know anything about Motodev Studio for Android. I am
> independent developer and  I have tried to implement this feature in
> my Android development application. You can take a look athttp://www.snpe.rs/sad/overview.html
> Is there this feature in Motodev Studio ?
>
> Best regards,
> Haris Peco
>
> On Mon, Oct 18, 2010 at 8:58 PM, Manfred Moser <mosa...@gmail.com> wrote:
> > What about Motodev Studio for Android? Is there some pressure on them
> > to contribute back instead of rolling their own?
>
> > On Mon, Oct 18, 2010 at 11:42 AM, Xavier Ducrohet <x...@android.com> wrote:
> >> Hi,
>
> >> I don't think we want any 3rd party to bundle the SDK in an Eclipse
> >> based product.
> >> Instead, I would prefer them to have the ability to download the SDK
> >> from the repository on first launch (with the ability to skip the
> >> install).
>
> >> This will guarantee that the SDK that gets installed is always the
> >> latest one. Also, we are starting to have a lot of platforms and it
> >> makes no sense to bundle all of them. The UI should force the
> >> developers to install the required packages (such as the tools), but
> >> then choose which component they want (basically almost the same as
> >> the SDK Updater).
>
> >> Xav
>
> >> On Mon, Oct 18, 2010 at 7:42 AM, snpe <snp...@gmail.com> wrote:
> >>> Requirements:
>
> >>> - 3th party want to bundle Android SDK with their application as we do
> >>> onhttp://www.snpe.rs/sad/overview.html(you can check the
> >>>http://screencast.com/t/MzMyYmZiNscreencast). However, this feature

Xavier Ducrohet

unread,
Nov 9, 2010, 3:14:40 PM11/9/10
to android...@googlegroups.com
HI Peco,

At this time, I think the only thing we would look into is downloading
the SDK components on first start from our own repository.

Since we already maintain our repository, there's little point in
maintaining an Eclipse repository for the SDK as well.

I think it should work this way:

On first launch only, detect there is no preferences set for the
Android SDK and display a UI to either
- point to an SDK
- download one to a specified location. This in turn open the SDK
Updater UI (or a simplified version of it) to select which platform to
download.

Alternatively, for the 2nd option, we can automatically choose a
location for the SDK so that all the user has to do really is choose
which platform he/she wants from a very simplified and easy UI.

Xav

Raphaël Moll

unread,
Nov 9, 2010, 3:31:39 PM11/9/10
to android...@googlegroups.com
I'm very much in favor of that. Also we should just select the single most recent platform by default for first starters.

The SDK updater UI needs a serious revamp to simplify it, and this could be part of it.

R/

snpe

unread,
Nov 9, 2010, 6:02:17 PM11/9/10
to Android Contributors
Hello Xavier, Raphaël,

Would you like that UI dialog be displayed when Eclipse (with ADT
plugin) be launched first time (in this case we have to add
earlyStartup ext.point) or when ADT plugin be started first time ?
Since, downloading SDK and some Android platform lasts, I think that
we have to ask user if she/he want do that.

Peco
> > >>> onhttp://www.snpe.rs/sad/overview.html(you can check the
> > >>>http://screencast.com/t/MzMyYmZiNscreencast). However, this feature

snpe

unread,
Nov 13, 2010, 12:09:56 PM11/13/10
to Android Contributors
Xavier, Raphaël ,

I suppose that you want this feature in ADT 8.0.0 (git master branch).
However, SDK Tools r7 isn't compatible with ADT 8.0.0.
I could create SDK master(AOSP) with local URL for testing purpose,
but it would be good if there is any rule to get URL of latest SDK ?
For instance, the http://dl.google.com/android/android-sdk-<OS>.zip
URL would redirect to latest SDK (currently, to
http://dl.google.com/android/android-sdk_r07-<OS>.zip).
OS can be linux_x86, windows or mac_x86.
Is something similar possible ?

Regards,
Peco


On Nov 9, 9:31 pm, Raphaël Moll <r...@android.com> wrote:
> > >>> onhttp://www.snpe.rs/sad/overview.html(you can check the
> > >>>http://screencast.com/t/MzMyYmZiNscreencast). However, this feature

snpe

unread,
Nov 22, 2010, 4:51:19 PM11/22/10
to Android Contributors
Please see http://groups.google.com/group/android-contrib/browse_thread/thread/fcc2ad8ec9f34475.

On Nov 13, 6:09 pm, snpe <snp...@gmail.com> wrote:
> Xavier, Raphaël ,
>
> I suppose that you want this feature in ADT 8.0.0 (git master branch).
> However, SDK Tools r7 isn't compatible with ADT 8.0.0.
> I could create SDK master(AOSP) with local URL for testing purpose,
> but it would be good if there is any rule to get URL of latest SDK ?
> For instance, thehttp://dl.google.com/android/android-sdk-<OS>.zip
> URL would redirect to latest SDK (currently, tohttp://dl.google.com/android/android-sdk_r07-<OS>.zip).
> > > >>> onhttp://www.snpe.rs/sad/overview.html(youcan check the

Xavier Ducrohet

unread,
Nov 24, 2010, 8:50:03 PM11/24/10
to android...@googlegroups.com
Hi,

I saw your other message and just replied.

Note that ADT 8.0.0 is complete and in tools_r8.
Master now builds ADT 9.0.0

Both of them indeed only work with an SDK build from AOSP.

We are looking at providing daily builds as binary archive, but I
think a test repository will be tough. We'll look into it though.

Xav

Reply all
Reply to author
Forward
0 new messages