On Thu, Sep 24, 2009 at 5:23 PM, Mauricio Porto <[email protected]> wrote: > > Hi, > > I am trying to build an image based on the Android source code that > should include my own code. > > The problem is that the "import android.graphics.Bitmap;" in my > IMyService.aidl can not resolved. > > The IMyService.aidl looks like: > > package org.myorg; > import android.graphics.Bitmap; > interface IMyService { > void method01(in Bitmap bmp); > } > > My classes are in the "packages/apps/MyApp" path. > > I know that the solution should be in my Android.mk file, but I can > not figure out how. > > Can someone help me?
I know that you already solved your problem but I think it's useful to post the answer here anyway, since other people may have to deal with the same situation: LOCAL_AIDL_INCLUDES := frameworks/base/graphics/java or # FRAMEWORKS_BASE_JAVA_SRC_DIRS comes from build/core/pathmap.mk LOCAL_AIDL_INCLUDES := $(FRAMEWORKS_BASE_JAVA_SRC_DIRS) BTW, the variable is mentioned but not documented in the Android Platform Developer's Guide[1]. I found it almost accidentally in frameworks/base/Android.mk, from which I took the comment about FRAMEWORKS_BASE_JAVA_SRC_DIRS. References 1. http://pdk.android.com/online-pdk/guide/build_cookbook.html -- Casantos
-- 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

