Hi Romain, thanks for ur replay. I totally agree with you that the @hide will be the better way. But I don't think the @hide really solve my question. I guess I don't make it quite clear.
The scenario is : 1. I have my eclipse and sdk installed on my PC (windows xp) 2. The android source tree stays in vmware (Ubuntu), the make also happens here. The question block me is: After I add some new method in framework, the process of make is fine. After that , I copy all 3 img file in mydroid/out/target/product/generic from Ubuntu to my windows SDK directory , overwrite the exists files. When I coding in eclipse, the IDE seems have no idea of the new method that I have add. The new added method will be treated as syntax error. So no apk will be created. I guess there are something more that I should do to let my eclipse recognize my new method. Give me a hand~ 2010/1/25 Romain Guy <[email protected]> > Do not add new public APIs this way. This is fine if you want to > contribute changes to the Android Open Source Project (and if they are > accepted of course) but if it's for your own version of the platform, > you should just make the method public and use the @hide javadoc tag > so that you don't need make update-api. > > On Mon, Jan 25, 2010 at 12:13 AM, sheng wang <[email protected]> wrote: > > Hi all, > > For some reason I need to add a new public method in Canvas.java just as > > bellow: > > /** > > * > > */ > > public Bitmap getBitmap() { > > if (mBitmap != null) { > > return mBitmap; > > } else { > > return null; > > } > > } > > After that I make update-api, then make successfully. > > the problem is when I develop in eclipse, the eclipse won't recognize the > > new getBitmap method and won't get apk build. > > Is there anything else I should do to let eclipse work with the new > method? > > Thx in advanc. > > Shawn > > > > -- > > 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]<android-developers%[email protected]> > > For more options, visit this group at > > http://groups.google.com/group/android-developers?hl=en > > > > -- > Romain Guy > Android framework engineer > [email protected] > > 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 [email protected] > To unsubscribe from this group, send email to > [email protected]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- 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

