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] > 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] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

