On Fri, Jul 8, 2011 at 2:04 AM, rashmi <[email protected]> wrote: > Hi Mark, > I am working on froyo2.2 source code. My aim is to include the 'import > org.json.JSONObject' statement in aidl file. It is giving the build error - > 'couldn't find import for class org.json.JSONObject'. > > I also tried creating a project in Eclipse and including an aidl file with > import org.json.JSONObject. Even this project is also giving the same error. > Please give me solution for how to include json import in aidl.
You cannot use JSONObject in AIDL. Please read the AIDL documentation: http://developer.android.com/guide/developing/tools/aidl.html In particular, note the valid data types listed in "1. Create the .aidl file". -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training...At Your Office: http://commonsware.com/training -- 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

