If you compile against the android.jar distributed with the SDK and point your IDE to this jar file for code completion, then you won't have any trouble. The non-public APIs are identified with the @hide annotation in the code.
On Tue, Oct 21, 2008 at 11:10 AM, tauntz <[EMAIL PROTECTED]> wrote: > > Ok, understood, these methods are non-public and reserved for Google > applications only ;) > > Would it be imaginable that (some time in the future) all non-public > APIs are in the com.google* domain and not in the same domain as all > the public classes (android.*)? > Currently it's a little confusing if I look at the source of some > Google app and see that it uses (for example) the method > lookupProviderCategoryFromId(..) from the class > android.provider.Contacts.ContactMethods. Now the public API has a > class with the exact same name and package but without the method that > Google uses so I always have to manually check if a method or constant > exists in the public API documentation when looking through the source > code (and after that I have to check if it also exists in the real SDK > since the SDK and the API documentation are also not the same). It > would be much easier if public and non-public stuff is in separate > packages (like com.sun.* in instead of java.* (J2SE)). > Just my 2 cents.. > > > And congrats again to the team! :) > Tauno > > > > On Tue, Oct 21, 2008 at 8:27 PM, hackbod <[EMAIL PROTECTED]> wrote: >> >> And further than that, people writing third party applications MUST >> develop them against the SDK, not against the open source release. >> Otherwise you can easily use non-public APIs, and thus break in a >> future release. >> >> On Oct 21, 10:14 am, "Romain Guy" <[EMAIL PROTECTED]> wrote: >>> It is the same source code. The SDK contains only the public APIs. >>> >>> >>> >>> On Tue, Oct 21, 2008 at 10:12 AM, tauntz <[EMAIL PROTECTED]> wrote: >>> >>> > Good news! Congratulations Android team! >>> >>> > Just a note about the release: >>> > This source code (looking at tag android-1.0 or head release-1.0) is >>> > clearly not the one that the 1.0r1 SDK uses. There are countless >>> > methods/classes in the source that are not present in the 1.0r1 SDK >>> > release (for example: >>> > android.provider.Contacts.ContactMethods.lookupProviderCategoryFromId(..) >>> > etc..) >>> >>> > So that leads me to the following questions: >>> > 1) what version of the code (1.0r1 or the one that was just released >>> > or some other variant) is on the G1? >>> > 2) when will we have access to the new SDK? (yes, I know I could >>> > compile it myself from the source but I'm talking about compiled >>> > binaries onhttp://code.google.com/android/download.html) >>> >>> > hackbod? >>> >>> > Tauno >>> >>> > On Tue, Oct 21, 2008 at 6:36 PM, Timbobsteve <[EMAIL PROTECTED]> wrote: >>> >>> >> Congratulations to the Android Development team, Google Employees and >>> >> the entire OpenSource community. Today is a great day for developers who >>> >> enjoy freedom and developing with freedom in mind. >>> >>> >> Viva 'la Android! >>> >>> >> Al Sutton wrote: >>> >>>http://source.android.com/ >>> >>> >>> For those that missed the announcements. >>> >>> >>> Al. >>> >>>http://andappstore.com/ >>> >>> -- >>> Romain Guywww.curious-creature.org >> > >> > > > > -- Romain Guy www.curious-creature.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

