Dianne,

In this particular case, the SlidingDrawer class is not "private", it
is "public" but it is in the
"package com.android.internal.widget" package. This ".internal." (and
the lack of official documentation on it) is the only clue you get
that this class is probably not intended to be used directly.

(I come from the world of Windows Mobile development where it is to a
large degree "a custom" to rely on some undocumented APIs to do what
you want to do, so that made me take that gamble, which in my case did
not pay of)

I actually did something similar to what you suggest - as my app was
already built around it - I end up creating my own implementation for
the SlidingDrawer - this way I know it will work with RC30, RC33 and
probably Cupcake.

I have to admit, the fact that the Android is an open source OS and we
have at all access the the source code to learn and diagnose issues,
is like a breath of fresh air after having to deal for many years in
the proprietary Windows world.

My only suggestion is that at least for the official releases RC30,
RC33 etc. that are being "pushed" to the end users - give us a way to
find what has changed in the APIs and what bugs have been fixed. I
simple change list will do, or an API checking tool or whatever other
means that you can think of.




On Feb 7, 10:48 pm, Dianne Hackborn <hack...@android.com> wrote:
> When a new SDK is posted, there is a complete API diff and overview of the
> changes.  However, there is very little change to the platform APIs in 1.1,
> so there isn't much to say about this one.  I'm not sure when an SDK for it
> will be available.
>
> Also, out of curiosity, how did you go about using the private class?  If
> you are actually using the SDK, you shouldn't be able to use any of the
> private classes, just to protect people from accidentally using things that
> will break on them.
>
> Finally, if there is a class like this in the internal implementation that
> you really want to use, just copy it out and build the copy in to your own
> code.  That way your code won't break when the system changes.
>
>
>
> On Sat, Feb 7, 2009 at 4:10 PM, Stefan <skyntc...@gmail.com> wrote:
>
> > Yes, I do agree that relying on private APIs is dangerous and should
> > be avoided for all the reasons you mention.
>
> > (The only reason I posted my findings is to save somebody the
> > debugging time as it was not obvious what was the reason at first)
>
> > This brings another related question. Is there a single place where we
> > as developers can see what has changed between the public releases of
> > the API's for example from RC30 => RC33? - (preferably both internal
> > and external changes)?
>
> > The only thing I could find is that RC33 has fixed several bugs and
> > added several features, but nothing specific about what has changed
> > and what bugs have been fixed.
>
> > Stefan
>
> > On Feb 7, 6:21 pm, Jean-Baptiste Queru <j...@android.com> wrote:
> > > Even worse, it hurts the entire ecosystem, by making users believe
> > > that plaftorm upgrades have bugs when in fact the applications are
> > > broken to start with.
>
> > > JBQ
>
> > > On Sat, Feb 7, 2009 at 3:18 PM, Romain Guy <romain...@google.com> wrote:
> > > > That means your app will break in cupcake though.
>
> > > > Please, please don't use private APIs, it only hurts the users :(
>
> > > > On Feb 7, 2009 1:43 PM, "Stefan" <skyntc...@gmail.com> wrote:
>
> > > > After digging a bit around in the source code, it looks like the
> > > > namespace used for the attributes of the "internal" widgets has
> > > > changed in RC33 from xmlns:android="
> >http://schemas.android.com/apk/res/
> > > > android" to some other namespace
> > > > (probably something likehttp://
> > schemas.android.com/apk/res/android.intenral
> > > > ??) and that caused the SlidingDrawer to not
> > > > find its attributes.
>
> > > > Well... one should never rely on internal classes, but... the
> > > > SlidingDrawer is actually so useful...
> > > > I am glad it will make it as an officially supported class.
>
> > > > On Feb 7, 4:34 pm, Romain Guy <romain...@google.com> wrote: > Even
> > worse,
> > > > SlidingDrawer will move ...
>
> > > >> On Sat, Feb 7, 2009 at 12:14 PM, Jean-Baptiste Queru <
> > j...@android.com>
> > > >> wrote: > > > Oh, ah, I had...
>
> > > >> > On Sat, Feb 7, 2009 at 11:28 AM, Romain Guy <romain...@google.com>
> > > >> > wrote: > > >> No, SlidingDraw...
>
> > > >> >> On Sat, Feb 7, 2009 at 7:18 AM, Jean-Baptiste Queru <
> > j...@android.com>
> > > >> >> wrote:
>
> > > >> >>> Can you please report this issue 
> > > >> >>> inhttp://b.android.com/?(a<http://b.android.com/?%28a>plain
>
> > > >> >>> copy-paste will do). > > >>> Thanks, > >>> JBQ >
>
> > > >> >>> On Sat, Feb 7, 2009 at 6:54 AM, Stefan <skyntc...@gmail.com>
> > wrote: >
> > > >> >>> > >>>> It appears that  ...
>
> > > >> >> romain...@android.com
>
> > > >> > >> Note: please don't send private questions to me, as I don't have
> > time
> > > >> > >> > >> to provide private...
>
> > > >> Romain Guy > Android framework engineer
>
> > > >> romain...@android.com
>
> > > >> > Note: please don't send private questions to me, as I don't have
> > time >
> > > >> > to provide private suppo...
>
> > > --
> > > Jean-Baptiste M. "JBQ" Queru
> > > Android Engineer, Google.
>
> --
> 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.  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
-~----------~----~----~----~------~----~------~--~---

Reply via email to