Re: [android-developers] Problem with new market and supporting screens?

2010-12-12 Thread Dianne Hackborn
On Sun, Dec 12, 2010 at 6:48 PM, Brill Pappin  wrote:

> I thought I ran into a problem supporting the install location tag where it
> would not allow me to use it in a 2.1 build.
> It may be that I needed to update my SDK (which has now been done
> recently).
>

android:installLocation was introduced in 2.2, so you need to compile
against the 2.2 SDK to build an app that uses it.  This does not prevent the
app from working on 2.1 (or earlier), however, as long as it explicitly
specifies android:minSdkVersion to say it is compatible with earlier
versions.

-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Problem with new market and supporting screens?

2010-12-12 Thread Brill Pappin
Ok, maybe I'm mistaken on this then.


I thought I ran into a problem supporting the install location tag
where it would not allow me to use it in a 2.1 build.
It may be that I needed to update my SDK (which has now been done
recently).


I'll check it again and report back here if that still the case.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Problem with new market and supporting screens?

2010-12-12 Thread Dianne Hackborn
On Sun, Dec 12, 2010 at 9:10 AM, Brill Pappin  wrote:

> Really what I'm concerned about is having to build with a future version of
> the UI and having my 2.1 users excluded.
> Since Eclipse validates the XML, I've had a few problems adding elements
> for for 2.2 in a 2.1 build.
>

You should build against the version of the SDK with the features you are
using; if you want to run on older versions of the platform put
android:minSdkVersion="" in your manifest and of course test that you
actually work on that version.


> I still want the 2.2 elements for those using it, but it needs to fail
> gracefully so that users still on 2.1 just ignore the tags.
>

Can you point to a specific problem?  I don't know of any situation where an
older version of the platform choked on tags (or attributes) from a newer
one.


> At the moment, the XML schema's won't allow you to do that. If the new
> manifest elements don't fall back (if the schema's are not updated to allow
> the new elements) its going to make developing in anything but the most
> recent SDK impossible.
>

Sorry, I don't really follow what you are saying here.  Lots and lots of
apps build against newer versions of the platform to use the features there,
but support running on older versions.  This is pretty easy to do.
 *Especially* for things like XML attributes and tags in the manifest, since
older versions won't even be aware of them.

-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Problem with new market and supporting screens?

2010-12-12 Thread TreKing
On Sun, Dec 12, 2010 at 11:10 AM, Brill Pappin  wrote:

> Since Eclipse validates the XML, I've had a few problems adding elements
> for for 2.2 in a 2.1 build.
>

You should be building against the latest platform version you plan to
support. When it runs on a device with an older version, new, unrecognized
tags are ignored.


> I still want the 2.2 elements for those using it, but it needs to fail
> gracefully so that users still on 2.1 just ignore the tags.
>

That's the way it works ...


> At the moment, the XML schema's won't allow you to do that. If the new
> manifest elements don't fall back (if the schema's are not updated to allow
> the new elements) its going to make developing in anything but the most
> recent SDK impossible.
>

Huh?


> Unfortunately we can't assume that all users will (or are able) to update
> to whatever is latest.
>

Of course not - with how fast Android gets updated and how slow (or
reluctant) carriers are to updated, it seems there are always going to be a
good number of people running "an older version".

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Problem with new market and supporting screens?

2010-12-12 Thread Brill Pappin
Really what I'm concerned about is having to build with a future
version of the UI and having my 2.1 users excluded.
Since Eclipse validates the XML, I've had a few problems adding
elements for for 2.2 in a 2.1 build.


I still want the 2.2 elements for those using it, but it needs to fail
gracefully so that users still on 2.1 just ignore the tags.


At the moment, the XML schema's won't allow you to do that. If the new
manifest elements don't fall back (if the schema's are not updated to
allow the new elements) its going to make developing in anything but
the most recent SDK impossible.


Unfortunately we can't assume that all users will (or are able) to
update to whatever is latest.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Problem with new market and supporting screens?

2010-12-12 Thread Dianne Hackborn
I would generally recommend people do NOT use the 
feature.  It is there for a very specific purpose (I assume the
documentation will describe this), but for most apps it will cause more harm
than good.   is still the recommended approach, as it
follows the model of separating screen size from density.  Trying to do
otherwise will lead to fragile applications and new and fun problems for
you.

On Sun, Dec 12, 2010 at 4:28 AM, Mark Murphy wrote:

> These tags do not exist in Android 2.3. Ms. Hackborn has indicated
> that they will exist in a future version of Android, and my guess is
> that means Honeycomb.
>
> That being said, you might need to target Honeycomb to get the ADT
> support for those tags at that time -- I don't use Eclipse enough to
> have a good sense of how it handles this sort of thing.
>
> On Sun, Dec 12, 2010 at 7:18 AM, Kostya Vasilyev 
> wrote:
> > I wonder if it'll be necessary to build with Android 2.3 to use these new
> > tags, or just using a recent version of ADT will work too.
> >
> > -- Kostya
> >
> > 12.12.2010 15:02, Mark Murphy пишет:
> >>
> >> The new XML tags (  and  or
> >> whatever that second one was) are for an upcoming version of Android.
> >> There is no point having in having those tags in there now,
> >> considering that we do not know what they look like.
> >>
> >> The  element is important, though.
> >>
> >> On Sat, Dec 11, 2010 at 11:19 PM, Brill Pappin  wrote:
> >>>
> >>> Right now my app is built for 2.1.
> >>> However I can see a situation where I try to add the new XML tags to
> tell
> >>> the market what screens I support, but the tags are not in the manifest
> >>> schema which of course will prevent a build.
> >>> Does anyone else think this is going to be a problem?
> >>>
> >>> --
> >>> You received this message because you are subscribed to the Google
> >>> Groups "Android Developers" group.
> >>> To post to this group, send email to
> android-developers@googlegroups.com
> >>> To unsubscribe from this group, send email to
> >>> android-developers+unsubscr...@googlegroups.com
> >>> For more options, visit this group at
> >>> http://groups.google.com/group/android-developers?hl=en
> >>
> >>
> >
> >
> > --
> > Kostya Vasilyev -- WiFi Manager + pretty widget --
> > http://kmansoft.wordpress.com
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> > http://groups.google.com/group/android-developers?hl=en
> >
>
>
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9
> Available!
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Problem with new market and supporting screens?

2010-12-12 Thread Mark Murphy
These tags do not exist in Android 2.3. Ms. Hackborn has indicated
that they will exist in a future version of Android, and my guess is
that means Honeycomb.

That being said, you might need to target Honeycomb to get the ADT
support for those tags at that time -- I don't use Eclipse enough to
have a good sense of how it handles this sort of thing.

On Sun, Dec 12, 2010 at 7:18 AM, Kostya Vasilyev  wrote:
> I wonder if it'll be necessary to build with Android 2.3 to use these new
> tags, or just using a recent version of ADT will work too.
>
> -- Kostya
>
> 12.12.2010 15:02, Mark Murphy пишет:
>>
>> The new XML tags (  and  or
>> whatever that second one was) are for an upcoming version of Android.
>> There is no point having in having those tags in there now,
>> considering that we do not know what they look like.
>>
>> The  element is important, though.
>>
>> On Sat, Dec 11, 2010 at 11:19 PM, Brill Pappin  wrote:
>>>
>>> Right now my app is built for 2.1.
>>> However I can see a situation where I try to add the new XML tags to tell
>>> the market what screens I support, but the tags are not in the manifest
>>> schema which of course will prevent a build.
>>> Does anyone else think this is going to be a problem?
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to android-developers@googlegroups.com
>>> To unsubscribe from this group, send email to
>>> android-developers+unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/android-developers?hl=en
>>
>>
>
>
> --
> Kostya Vasilyev -- WiFi Manager + pretty widget --
> http://kmansoft.wordpress.com
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9
Available!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Problem with new market and supporting screens?

2010-12-12 Thread Kostya Vasilyev
I wonder if it'll be necessary to build with Android 2.3 to use these 
new tags, or just using a recent version of ADT will work too.


-- Kostya

12.12.2010 15:02, Mark Murphy пишет:

The new XML tags (  and  or
whatever that second one was) are for an upcoming version of Android.
There is no point having in having those tags in there now,
considering that we do not know what they look like.

The  element is important, though.

On Sat, Dec 11, 2010 at 11:19 PM, Brill Pappin  wrote:

Right now my app is built for 2.1.
However I can see a situation where I try to add the new XML tags to tell
the market what screens I support, but the tags are not in the manifest
schema which of course will prevent a build.
Does anyone else think this is going to be a problem?

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en






--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Problem with new market and supporting screens?

2010-12-12 Thread Mark Murphy
The new XML tags ( and  or
whatever that second one was) are for an upcoming version of Android.
There is no point having in having those tags in there now,
considering that we do not know what they look like.

The  element is important, though.

On Sat, Dec 11, 2010 at 11:19 PM, Brill Pappin  wrote:
> Right now my app is built for 2.1.
> However I can see a situation where I try to add the new XML tags to tell
> the market what screens I support, but the tags are not in the manifest
> schema which of course will prevent a build.
> Does anyone else think this is going to be a problem?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en



-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9
Available!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Problem with new market and supporting screens?

2010-12-11 Thread Brill Pappin
Right now my app is built for 2.1.


However I can see a situation where I try to add the new XML tags to
tell the market what screens I support, but the tags are not in the
manifest schema which of course will prevent a build.


Does anyone else think this is going to be a problem?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en