[android-developers] Re: Parcelables / project.aidl in SDK 1.5

2009-06-22 Thread Chatur



On May 29, 7:55 am, Xavier Ducrohet x...@android.com wrote:
 It looks like you didn't create an aidl file for your File class.

 Look at the documentation 
 at:http://developer.android.com/guide/developing/tools/aidl.html#parcelable

 Xav



 Hi thanks guys, was facing the same issue.Got it fixed now.

 On Wed, May 27, 2009 at 11:14 AM, Henrique Machado nossoem...@gmail.com 
 wrote:

  I got this error when I try to create a aidl.
  here`s my UploadSInterface.aidl

  package br.com.android.pixelhouse.services;
  interface UploadSInterface {
         void execute(out File file);
         void cancelUpload();
  }

  now Fileparcelableclass
  ---
  package br.com.android.pixelhouse;

  import java.io.InputStream;

  import android.os.Parcel;
  import android.os.Parcelable;

  @SuppressWarnings(unchecked)
  public class File implementsParcelable{
         public static final int TYPE_IMAGE = 0;
         public static final int TYPE_VIDEO = 1;
         public static final int TYPE_MUSIC = 2;
         public static final int TYPE_OTHERS = 3;

         private InputStream input;
         private String description;
         private String name;
         private int type;

         public static finalParcelable.CreatorFileCREATOR = new
 Parcelable.Creator() {
                 public File createFromParcel(Parcel in) {return new 
  File(in);}

                 public Object[] newArray(int size) {
                         // TODO Auto-generated method stub
                         return null;
                 }
         };

         public File(InputStream input, String name, String description, int
  type) {
                 setInput(input);
                 setName(name);
                 setDescription(description);
                 setType(type);
         }

         public File(Parcel in) {
                 // TODO Auto-generated constructor stub
         }

         public InputStream getInput() {
                 return input;
         }

         public void setInput(InputStream input) {
                 this.input = input;
         }

         public String getDescription() {
                 return description;
         }

         public void setDescription(String description) {
                 this.description = description;
         }

         public String getName() {
                 return name;
         }

         public void setName(String name) {
                 this.name = name;
         }

         public int getType() {
                 return type;
         }

         public void setType(int type) {
                 this.type = type;
         }

         public int describeContents() {
                 return 0;
         }

         public void writeToParcel(Parcel dest, int flags) {
                 dest.writeValue(getInput());
                 dest.writeString(getName());
                 dest.writeString(getName());
                 dest.writeInt(getType());
         }
  }

  Here`s the thing,
  when I do my aidl class like it`s today I got
  parameter file (1) unknow type

  when I do this

  import br.com.pixelhouse.mymoto.services.File;
  interface UploadSInterface {
         void execute(out File file);
         void cancelUpload();
  }

  I got?
  couldn't find import for class br.com.pixelhouse.mymoto.services.File

  On 14 abr, 22:34, Xavier Ducrohet x...@android.com wrote:
  I have just realized something.

  If you create/editparcelabletype aidl files, this does not trigger a
  recompilation of the interface aidl files that depends on it. In fact,
  aidl files are only recompiled when the aidl file is touched.

  We'll do a quick fix for the final ADT 0.9 (which will most likely be
  a full recompilation of all aidl files whenever 1 aidl file is
  changed), and implement true dependency support later to minimize
  unneeded recompilations.

  Xav

  On Tue, Apr 14, 2009 at 2:02 PM, Xavier Ducrohet x...@android.com wrote:
   I just did a quick test following the information in the link I posted
   above and it is working for me.

   Make sure your aidl file declares the package it's in (like any java 
   class).

   Xav

   On Tue, Apr 14, 2009 at 1:05 PM, Xavier Ducrohet x...@android.com 
   wrote:
   oh I missed this message :(

   Let me do a quick test...

   On Tue, Apr 14, 2009 at 11:18 AM, Zach Hobbs ho...@helloandroid.com 
   wrote:

   Some more info:

   - I tried creating an aidl file with the same name as theParcelable
   class, and I get an error in the console like: path to class/
   class.aidl:1 interface package.class should be declared in a
   file called com.aidl. I tried declaring theParcelablein com.aidl and
   that didn't work either.

   - The documentation in 1.5 on AIDL still refers to the Android Tools
   Create Aidl preprocess file forParcelableclasses which is not
   available in ADT 0.9.  Should I open a bug for this?

   Thanks,
   Zach

   On Apr 14, 12:52 pm, Zach Hobbs 

[android-developers] Re: Parcelables / project.aidl in SDK 1.5

2009-05-28 Thread Henrique Machado

I got this error when I try to create a aidl.
here`s my UploadSInterface.aidl

package br.com.android.pixelhouse.services;
interface UploadSInterface {
void execute(out File file);
void cancelUpload();
}

now File parcelable class
---
package br.com.android.pixelhouse;

import java.io.InputStream;

import android.os.Parcel;
import android.os.Parcelable;

@SuppressWarnings(unchecked)
public class File implements Parcelable {
public static final int TYPE_IMAGE = 0;
public static final int TYPE_VIDEO = 1;
public static final int TYPE_MUSIC = 2;
public static final int TYPE_OTHERS = 3;

private InputStream input;
private String description;
private String name;
private int type;

public static final Parcelable.CreatorFileCREATOR = new
Parcelable.Creator() {
public File createFromParcel(Parcel in) {return new File(in);}

public Object[] newArray(int size) {
// TODO Auto-generated method stub
return null;
}
};


public File(InputStream input, String name, String description, int
type) {
setInput(input);
setName(name);
setDescription(description);
setType(type);
}

public File(Parcel in) {
// TODO Auto-generated constructor stub
}

public InputStream getInput() {
return input;
}

public void setInput(InputStream input) {
this.input = input;
}

public String getDescription() {
return description;
}

public void setDescription(String description) {
this.description = description;
}

public String getName() {
return name;
}

public void setName(String name) {
this.name = name;
}

public int getType() {
return type;
}

public void setType(int type) {
this.type = type;
}

public int describeContents() {
return 0;
}

public void writeToParcel(Parcel dest, int flags) {
dest.writeValue(getInput());
dest.writeString(getName());
dest.writeString(getName());
dest.writeInt(getType());
}
}



Here`s the thing,
when I do my aidl class like it`s today I got
parameter file (1) unknow type

when I do this

import br.com.pixelhouse.mymoto.services.File;
interface UploadSInterface {
void execute(out File file);
void cancelUpload();
}

I got?
couldn't find import for class br.com.pixelhouse.mymoto.services.File


On 14 abr, 22:34, Xavier Ducrohet x...@android.com wrote:
 I have just realized something.

 If you create/edit parcelable type aidl files, this does not trigger a
 recompilation of the interface aidl files that depends on it. In fact,
 aidl files are only recompiled when the aidl file is touched.

 We'll do a quick fix for the final ADT 0.9 (which will most likely be
 a full recompilation of all aidl files whenever 1 aidl file is
 changed), and implement true dependency support later to minimize
 unneeded recompilations.

 Xav



 On Tue, Apr 14, 2009 at 2:02 PM, Xavier Ducrohet x...@android.com wrote:
  I just did a quick test following the information in the link I posted
  above and it is working for me.

  Make sure your aidl file declares the package it's in (like any java class).

  Xav

  On Tue, Apr 14, 2009 at 1:05 PM, Xavier Ducrohet x...@android.com wrote:
  oh I missed this message :(

  Let me do a quick test...

  On Tue, Apr 14, 2009 at 11:18 AM, Zach Hobbs ho...@helloandroid.com 
  wrote:

  Some more info:

  - I tried creating an aidl file with the same name as the Parcelable
  class, and I get an error in the console like: path to class/
  class.aidl:1 interface package.class should be declared in a
  file called com.aidl. I tried declaring the Parcelable in com.aidl and
  that didn't work either.

  - The documentation in 1.5 on AIDL still refers to the Android Tools
  Create Aidl preprocess file for Parcelable classes which is not
  available in ADT 0.9.  Should I open a bug for this?

  Thanks,
  Zach

  On Apr 14, 12:52 pm, Zach Hobbs ho...@helloandroid.com wrote:
  I'm attempting to get build my project with the early preview SDK,
  targeting 1.1 and am having problems getting AIDL files to recognize
  imports for Parcelables. In the previous ADT you could right click on
  your project, hit Android Tools and have an option something like
  Generate AIDL for Parcelables.  This would create a file
  project.aidl in your project's root containing a line for each
  Parceable in your project.

  With the new SDK/ADT anytime I try to import a Parcelable in 

[android-developers] Re: Parcelables / project.aidl in SDK 1.5

2009-05-28 Thread Xavier Ducrohet

It looks like you didn't create an aidl file for your File class.

Look at the documentation at:
http://developer.android.com/guide/developing/tools/aidl.html#parcelable

Xav

On Wed, May 27, 2009 at 11:14 AM, Henrique Machado nossoem...@gmail.com wrote:

 I got this error when I try to create a aidl.
 here`s my UploadSInterface.aidl

 package br.com.android.pixelhouse.services;
 interface UploadSInterface {
        void execute(out File file);
        void cancelUpload();
 }

 now File parcelable class
 ---
 package br.com.android.pixelhouse;

 import java.io.InputStream;

 import android.os.Parcel;
 import android.os.Parcelable;

 @SuppressWarnings(unchecked)
 public class File implements Parcelable {
        public static final int TYPE_IMAGE = 0;
        public static final int TYPE_VIDEO = 1;
        public static final int TYPE_MUSIC = 2;
        public static final int TYPE_OTHERS = 3;

        private InputStream input;
        private String description;
        private String name;
        private int type;

        public static final Parcelable.CreatorFileCREATOR = new
 Parcelable.Creator() {
                public File createFromParcel(Parcel in) {return new File(in);}

                public Object[] newArray(int size) {
                        // TODO Auto-generated method stub
                        return null;
                }
        };


        public File(InputStream input, String name, String description, int
 type) {
                setInput(input);
                setName(name);
                setDescription(description);
                setType(type);
        }

        public File(Parcel in) {
                // TODO Auto-generated constructor stub
        }

        public InputStream getInput() {
                return input;
        }

        public void setInput(InputStream input) {
                this.input = input;
        }

        public String getDescription() {
                return description;
        }

        public void setDescription(String description) {
                this.description = description;
        }

        public String getName() {
                return name;
        }

        public void setName(String name) {
                this.name = name;
        }

        public int getType() {
                return type;
        }

        public void setType(int type) {
                this.type = type;
        }

        public int describeContents() {
                return 0;
        }

        public void writeToParcel(Parcel dest, int flags) {
                dest.writeValue(getInput());
                dest.writeString(getName());
                dest.writeString(getName());
                dest.writeInt(getType());
        }
 }



 Here`s the thing,
 when I do my aidl class like it`s today I got
 parameter file (1) unknow type

 when I do this

 import br.com.pixelhouse.mymoto.services.File;
 interface UploadSInterface {
        void execute(out File file);
        void cancelUpload();
 }

 I got?
 couldn't find import for class br.com.pixelhouse.mymoto.services.File


 On 14 abr, 22:34, Xavier Ducrohet x...@android.com wrote:
 I have just realized something.

 If you create/edit parcelable type aidl files, this does not trigger a
 recompilation of the interface aidl files that depends on it. In fact,
 aidl files are only recompiled when the aidl file is touched.

 We'll do a quick fix for the final ADT 0.9 (which will most likely be
 a full recompilation of all aidl files whenever 1 aidl file is
 changed), and implement true dependency support later to minimize
 unneeded recompilations.

 Xav



 On Tue, Apr 14, 2009 at 2:02 PM, Xavier Ducrohet x...@android.com wrote:
  I just did a quick test following the information in the link I posted
  above and it is working for me.

  Make sure your aidl file declares the package it's in (like any java 
  class).

  Xav

  On Tue, Apr 14, 2009 at 1:05 PM, Xavier Ducrohet x...@android.com wrote:
  oh I missed this message :(

  Let me do a quick test...

  On Tue, Apr 14, 2009 at 11:18 AM, Zach Hobbs ho...@helloandroid.com 
  wrote:

  Some more info:

  - I tried creating an aidl file with the same name as the Parcelable
  class, and I get an error in the console like: path to class/
  class.aidl:1 interface package.class should be declared in a
  file called com.aidl. I tried declaring the Parcelable in com.aidl and
  that didn't work either.

  - The documentation in 1.5 on AIDL still refers to the Android Tools
  Create Aidl preprocess file for Parcelable classes which is not
  available in ADT 0.9.  Should I open a bug for this?

  Thanks,
  Zach

  On Apr 14, 12:52 pm, Zach Hobbs ho...@helloandroid.com wrote:
  I'm attempting to get build my project with the early preview SDK,
  targeting 1.1 and am having problems getting AIDL files to recognize
  imports for Parcelables. In the previous ADT you could right click on
  

[android-developers] Re: Parcelables / project.aidl in SDK 1.5

2009-04-17 Thread squalus

I have this same problem.  The sdk is *supposed* to generate a .java
with an interface by the same name as the one you describe in the
aidl.

The mac sdk seems to have a bug where this doesn't happen.  I've found
this to be the case in sdk 1.1 and 1.5 preview.  The same code works
ok on my linux installation of the 1.1 sdk though

Anyone out there know what the deal is with the mac sdk and aidl's?

On Apr 16, 2:15 pm, ludovic.perrier barbapa...@gmail.com wrote:
 hello

 IJotifyService.aidl interface in com.thoout.droitify

 package com.thoout.droidify;

 //import java.util.List;
 import de.felixbruns.jotify.media.Playlist;
 import de.felixbruns.jotify.media.Track;
 import de.felixbruns.jotify.media.Album;
 import de.felixbruns.jotify.media.Artist;

 interface IJotifyService
 {
     int login(String login, String pass);
     ListPlaylist getPlaylists();

 }

 Aidl parcelable class in de.felixbruns.jotify.media

 package de.felixbruns.jotify.media;
 parcelable Playlist;

 Playlist have Track member who have Artist and Album member all these
 class implement Parcelable

 In de.felixbruns.jotify.media there are:
 Plalist.java
 Playlist.aidl
 Album.java
 Album.aidl
 Track.java
 Track.aidl
 Artist.java
 Artist.aidl

 I have also random problem build error is:
 Errors during build.
   Errors running builder 'Android Pre Compiler' on project 'droidify'.
   Resource '/droidify/gen/de/felixbruns/jotify' does not exist.

 or

 Errors during build.
   Errors running builder 'Android Pre Compiler' on project 'droidify'.
   Resource '/droidify/gen/com/thoout/droitify' does not exist.

 I'am on mac

 Ludo

 On 16 avr, 22:33, Xavier Ducrohet x...@android.com wrote: Unless you post 
 youraidlfile, it's going to be hard to help you.

  Xav

  On Thu, Apr 16, 2009 at 1:11 PM, ludovic.perrier barbapa...@gmail.com 
  wrote:

   finaly it's not good

   My building process is infinite and blocked at 24%
   I see that the generated IService.Java (of my Service.aidl) file is
   update each 5 second! and the console display this warning:

   [2009-04-16 22:10:41 - MyProject] warning: Ignoring InnerClasses
   attribute for an anonymous inner class that doesn't come with an
   associated EnclosingMethod attribute. (This class was probably
   produced by a broken compiler.)

   Please help me...

   On 16 avr, 19:12, ludovic.perrier barbapa...@gmail.com wrote:
   I have found!

   When parcelableaidlfile is in other package
   we must set an import on parcelable class inaidlinterface

   Happy Codding!

   On 16 avr, 18:56, ludovic.perrier barbapa...@gmail.com wrote:

Hello

I have the same problem, and it don't work yet. I have a question, new
mechanism works ifaidlinterface file isn't in same package ofaidl
parcelable class?

Ludo

On 15 avr, 03:34, Xavier Ducrohet x...@android.com wrote:

 I have just realized something.

 If you create/edit parcelable typeaidlfiles, this does not trigger a
 recompilation of the interfaceaidlfiles that depends on it. In 
 fact,aidlfiles are only recompiled when theaidlfile is touched.

 We'll do a quick fix for the final ADT 0.9 (which will most likely be
 a full recompilation of allaidlfiles whenever 1aidlfile is
 changed), and implement true dependency support later to minimize
 unneeded recompilations.

 Xav

 On Tue, Apr 14, 2009 at 2:02 PM, Xavier Ducrohet x...@android.com 
 wrote:
  I just did a quick test following the information in the link I 
  posted
  above and it is working for me.

  Make sure youraidlfile declares the package it's in (like any java 
  class).

  Xav

  On Tue, Apr 14, 2009 at 1:05 PM, Xavier Ducrohet 
  x...@android.com wrote:
  oh I missed this message :(

  Let me do a quick test...

  On Tue, Apr 14, 2009 at 11:18 AM, Zach Hobbs 
  ho...@helloandroid.com wrote:

  Some more info:

  - I tried creating anaidlfile with the same name as the 
  Parcelable
  class, and I get an error in the console like: path to class/
  class.aidl:1 interface package.class should be declared in 
  a
  file called com.aidl. I tried declaring the Parcelable in 
  com.aidland
  that didn't work either.

  - The documentation in 1.5 onAIDLstill refers to the Android 
  Tools
  CreateAidlpreprocess file for Parcelable classes which is not
  available in ADT 0.9.  Should I open a bug for this?

  Thanks,
  Zach

  On Apr 14, 12:52 pm, Zach Hobbs ho...@helloandroid.com wrote:
  I'm attempting to get build my project with the early preview 
  SDK,
  targeting 1.1 and am having problems gettingAIDLfiles to 
  recognize
  imports for Parcelables. In the previous ADT you could right 
  click on
  your project, hit Android Tools and have an option something 
  like
  GenerateAIDLfor Parcelables.  This would create a file
  project.aidlin your project's root containing a line 

[android-developers] Re: Parcelables / project.aidl in SDK 1.5

2009-04-16 Thread ludovic.perrier

Hello

I have the same problem, and it don't work yet. I have a question, new
mechanism works if aidl interface file isn't in same package of aidl
parcelable class?

Ludo

On 15 avr, 03:34, Xavier Ducrohet x...@android.com wrote:
 I have just realized something.

 If you create/edit parcelable typeaidlfiles, this does not trigger a
 recompilation of the interfaceaidlfiles that depends on it. In fact,aidlfiles 
 are only recompiled when theaidlfile is touched.

 We'll do a quick fix for the final ADT 0.9 (which will most likely be
 a full recompilation of allaidlfiles whenever 1aidlfile is
 changed), and implement true dependency support later to minimize
 unneeded recompilations.

 Xav



 On Tue, Apr 14, 2009 at 2:02 PM, Xavier Ducrohet x...@android.com wrote:
  I just did a quick test following the information in the link I posted
  above and it is working for me.

  Make sure youraidlfile declares the package it's in (like any java class).

  Xav

  On Tue, Apr 14, 2009 at 1:05 PM, Xavier Ducrohet x...@android.com wrote:
  oh I missed this message :(

  Let me do a quick test...

  On Tue, Apr 14, 2009 at 11:18 AM, Zach Hobbs ho...@helloandroid.com 
  wrote:

  Some more info:

  - I tried creating anaidlfile with the same name as the Parcelable
  class, and I get an error in the console like: path to class/
  class.aidl:1 interface package.class should be declared in a
  file called com.aidl. I tried declaring the Parcelable in com.aidland
  that didn't work either.

  - The documentation in 1.5 onAIDLstill refers to the Android Tools
  CreateAidlpreprocess file for Parcelable classes which is not
  available in ADT 0.9.  Should I open a bug for this?

  Thanks,
  Zach

  On Apr 14, 12:52 pm, Zach Hobbs ho...@helloandroid.com wrote:
  I'm attempting to get build my project with the early preview SDK,
  targeting 1.1 and am having problems gettingAIDLfiles to recognize
  imports for Parcelables. In the previous ADT you could right click on
  your project, hit Android Tools and have an option something like
  GenerateAIDLfor Parcelables.  This would create a file
  project.aidlin your project's root containing a line for each
  Parceable in your project.

  With the new SDK/ADT anytime I try to import a Parcelable in anAIDL
  file I get Couldn't find import for class ...  even though I still
  have the project.aidlfile in the project's root.  Also, the option to
  generate theAIDLfor the Parcelables is no longer available.  Anyone
  know how to get your Parcelables noticed in the new SDK?

  Thanks,
  Zach

  --
  Xavier Ducrohet
  Android Engineer, Google.

  --
  Xavier Ducrohet
  Android Engineer, Google.

 --
 Xavier Ducrohet
 Android Engineer, Google.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Parcelables / project.aidl in SDK 1.5

2009-04-16 Thread ludovic.perrier

I have found!

When parcelable aidl file is in other package
we must set an import on parcelable class in aidl interface

Happy Codding!

On 16 avr, 18:56, ludovic.perrier barbapa...@gmail.com wrote:
 Hello

 I have the same problem, and it don't work yet. I have a question, new
 mechanism works ifaidlinterface file isn't in same package ofaidl
 parcelable class?

 Ludo

 On 15 avr, 03:34, Xavier Ducrohet x...@android.com wrote:

  I have just realized something.

  If you create/edit parcelable typeaidlfiles, this does not trigger a
  recompilation of the interfaceaidlfiles that depends on it. In 
  fact,aidlfiles are only recompiled when theaidlfile is touched.

  We'll do a quick fix for the final ADT 0.9 (which will most likely be
  a full recompilation of allaidlfiles whenever 1aidlfile is
  changed), and implement true dependency support later to minimize
  unneeded recompilations.

  Xav

  On Tue, Apr 14, 2009 at 2:02 PM, Xavier Ducrohet x...@android.com wrote:
   I just did a quick test following the information in the link I posted
   above and it is working for me.

   Make sure youraidlfile declares the package it's in (like any java class).

   Xav

   On Tue, Apr 14, 2009 at 1:05 PM, Xavier Ducrohet x...@android.com wrote:
   oh I missed this message :(

   Let me do a quick test...

   On Tue, Apr 14, 2009 at 11:18 AM, Zach Hobbs ho...@helloandroid.com 
   wrote:

   Some more info:

   - I tried creating anaidlfile with the same name as the Parcelable
   class, and I get an error in the console like: path to class/
   class.aidl:1 interface package.class should be declared in a
   file called com.aidl. I tried declaring the Parcelable in com.aidland
   that didn't work either.

   - The documentation in 1.5 onAIDLstill refers to the Android Tools
   CreateAidlpreprocess file for Parcelable classes which is not
   available in ADT 0.9.  Should I open a bug for this?

   Thanks,
   Zach

   On Apr 14, 12:52 pm, Zach Hobbs ho...@helloandroid.com wrote:
   I'm attempting to get build my project with the early preview SDK,
   targeting 1.1 and am having problems gettingAIDLfiles to recognize
   imports for Parcelables. In the previous ADT you could right click on
   your project, hit Android Tools and have an option something like
   GenerateAIDLfor Parcelables.  This would create a file
   project.aidlin your project's root containing a line for each
   Parceable in your project.

   With the new SDK/ADT anytime I try to import a Parcelable in anAIDL
   file I get Couldn't find import for class ...  even though I still
   have the project.aidlfile in the project's root.  Also, the option to
   generate theAIDLfor the Parcelables is no longer available.  Anyone
   know how to get your Parcelables noticed in the new SDK?

   Thanks,
   Zach

   --
   Xavier Ducrohet
   Android Engineer, Google.

   --
   Xavier Ducrohet
   Android Engineer, Google.

  --
  Xavier Ducrohet
  Android Engineer, Google.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Parcelables / project.aidl in SDK 1.5

2009-04-16 Thread ludovic.perrier

finaly it's not good

My building process is infinite and blocked at 24%
I see that the generated IService.Java (of my Service.aidl) file is
update each 5 second! and the console display this warning:

[2009-04-16 22:10:41 - MyProject] warning: Ignoring InnerClasses
attribute for an anonymous inner class that doesn't come with an
associated EnclosingMethod attribute. (This class was probably
produced by a broken compiler.)

Please help me...

On 16 avr, 19:12, ludovic.perrier barbapa...@gmail.com wrote:
 I have found!

 When parcelableaidlfile is in other package
 we must set an import on parcelable class inaidlinterface

 Happy Codding!

 On 16 avr, 18:56, ludovic.perrier barbapa...@gmail.com wrote:

  Hello

  I have the same problem, and it don't work yet. I have a question, new
  mechanism works ifaidlinterface file isn't in same package ofaidl
  parcelable class?

  Ludo

  On 15 avr, 03:34, Xavier Ducrohet x...@android.com wrote:

   I have just realized something.

   If you create/edit parcelable typeaidlfiles, this does not trigger a
   recompilation of the interfaceaidlfiles that depends on it. In 
   fact,aidlfiles are only recompiled when theaidlfile is touched.

   We'll do a quick fix for the final ADT 0.9 (which will most likely be
   a full recompilation of allaidlfiles whenever 1aidlfile is
   changed), and implement true dependency support later to minimize
   unneeded recompilations.

   Xav

   On Tue, Apr 14, 2009 at 2:02 PM, Xavier Ducrohet x...@android.com wrote:
I just did a quick test following the information in the link I posted
above and it is working for me.

Make sure youraidlfile declares the package it's in (like any java 
class).

Xav

On Tue, Apr 14, 2009 at 1:05 PM, Xavier Ducrohet x...@android.com 
wrote:
oh I missed this message :(

Let me do a quick test...

On Tue, Apr 14, 2009 at 11:18 AM, Zach Hobbs ho...@helloandroid.com 
wrote:

Some more info:

- I tried creating anaidlfile with the same name as the Parcelable
class, and I get an error in the console like: path to class/
class.aidl:1 interface package.class should be declared in a
file called com.aidl. I tried declaring the Parcelable in com.aidland
that didn't work either.

- The documentation in 1.5 onAIDLstill refers to the Android Tools
CreateAidlpreprocess file for Parcelable classes which is not
available in ADT 0.9.  Should I open a bug for this?

Thanks,
Zach

On Apr 14, 12:52 pm, Zach Hobbs ho...@helloandroid.com wrote:
I'm attempting to get build my project with the early preview SDK,
targeting 1.1 and am having problems gettingAIDLfiles to recognize
imports for Parcelables. In the previous ADT you could right click on
your project, hit Android Tools and have an option something like
GenerateAIDLfor Parcelables.  This would create a file
project.aidlin your project's root containing a line for each
Parceable in your project.

With the new SDK/ADT anytime I try to import a Parcelable in anAIDL
file I get Couldn't find import for class ...  even though I still
have the project.aidlfile in the project's root.  Also, the option to
generate theAIDLfor the Parcelables is no longer available.  Anyone
know how to get your Parcelables noticed in the new SDK?

Thanks,
Zach

--
Xavier Ducrohet
Android Engineer, Google.

--
Xavier Ducrohet
Android Engineer, Google.

   --
   Xavier Ducrohet
   Android Engineer, Google.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Parcelables / project.aidl in SDK 1.5

2009-04-16 Thread Xavier Ducrohet

Unless you post your aidl file, it's going to be hard to help you.

Xav

On Thu, Apr 16, 2009 at 1:11 PM, ludovic.perrier barbapa...@gmail.com wrote:

 finaly it's not good

 My building process is infinite and blocked at 24%
 I see that the generated IService.Java (of my Service.aidl) file is
 update each 5 second! and the console display this warning:

 [2009-04-16 22:10:41 - MyProject] warning: Ignoring InnerClasses
 attribute for an anonymous inner class that doesn't come with an
 associated EnclosingMethod attribute. (This class was probably
 produced by a broken compiler.)

 Please help me...

 On 16 avr, 19:12, ludovic.perrier barbapa...@gmail.com wrote:
 I have found!

 When parcelableaidlfile is in other package
 we must set an import on parcelable class inaidlinterface

 Happy Codding!

 On 16 avr, 18:56, ludovic.perrier barbapa...@gmail.com wrote:

  Hello

  I have the same problem, and it don't work yet. I have a question, new
  mechanism works ifaidlinterface file isn't in same package ofaidl
  parcelable class?

  Ludo

  On 15 avr, 03:34, Xavier Ducrohet x...@android.com wrote:

   I have just realized something.

   If you create/edit parcelable typeaidlfiles, this does not trigger a
   recompilation of the interfaceaidlfiles that depends on it. In 
   fact,aidlfiles are only recompiled when theaidlfile is touched.

   We'll do a quick fix for the final ADT 0.9 (which will most likely be
   a full recompilation of allaidlfiles whenever 1aidlfile is
   changed), and implement true dependency support later to minimize
   unneeded recompilations.

   Xav

   On Tue, Apr 14, 2009 at 2:02 PM, Xavier Ducrohet x...@android.com 
   wrote:
I just did a quick test following the information in the link I posted
above and it is working for me.

Make sure youraidlfile declares the package it's in (like any java 
class).

Xav

On Tue, Apr 14, 2009 at 1:05 PM, Xavier Ducrohet x...@android.com 
wrote:
oh I missed this message :(

Let me do a quick test...

On Tue, Apr 14, 2009 at 11:18 AM, Zach Hobbs ho...@helloandroid.com 
wrote:

Some more info:

- I tried creating anaidlfile with the same name as the Parcelable
class, and I get an error in the console like: path to class/
class.aidl:1 interface package.class should be declared in a
file called com.aidl. I tried declaring the Parcelable in com.aidland
that didn't work either.

- The documentation in 1.5 onAIDLstill refers to the Android Tools
CreateAidlpreprocess file for Parcelable classes which is not
available in ADT 0.9.  Should I open a bug for this?

Thanks,
Zach

On Apr 14, 12:52 pm, Zach Hobbs ho...@helloandroid.com wrote:
I'm attempting to get build my project with the early preview SDK,
targeting 1.1 and am having problems gettingAIDLfiles to recognize
imports for Parcelables. In the previous ADT you could right click 
on
your project, hit Android Tools and have an option something like
GenerateAIDLfor Parcelables.  This would create a file
project.aidlin your project's root containing a line for each
Parceable in your project.

With the new SDK/ADT anytime I try to import a Parcelable in anAIDL
file I get Couldn't find import for class ...  even though I still
have the project.aidlfile in the project's root.  Also, the option 
to
generate theAIDLfor the Parcelables is no longer available.  Anyone
know how to get your Parcelables noticed in the new SDK?

Thanks,
Zach

--
Xavier Ducrohet
Android Engineer, Google.

--
Xavier Ducrohet
Android Engineer, Google.

   --
   Xavier Ducrohet
   Android Engineer, Google.


 




-- 
Xavier Ducrohet
Android Engineer, Google.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Parcelables / project.aidl in SDK 1.5

2009-04-16 Thread ludovic.perrier

hello

IJotifyService.aidl interface in com.thoout.droitify

package com.thoout.droidify;

//import java.util.List;
import de.felixbruns.jotify.media.Playlist;
import de.felixbruns.jotify.media.Track;
import de.felixbruns.jotify.media.Album;
import de.felixbruns.jotify.media.Artist;


interface IJotifyService
{
int login(String login, String pass);
ListPlaylist getPlaylists();
}

Aidl parcelable class in de.felixbruns.jotify.media

package de.felixbruns.jotify.media;
parcelable Playlist;

Playlist have Track member who have Artist and Album member all these
class implement Parcelable

In de.felixbruns.jotify.media there are:
Plalist.java
Playlist.aidl
Album.java
Album.aidl
Track.java
Track.aidl
Artist.java
Artist.aidl

I have also random problem build error is:
Errors during build.
  Errors running builder 'Android Pre Compiler' on project 'droidify'.
  Resource '/droidify/gen/de/felixbruns/jotify' does not exist.

or

Errors during build.
  Errors running builder 'Android Pre Compiler' on project 'droidify'.
  Resource '/droidify/gen/com/thoout/droitify' does not exist.

I'am on mac

Ludo


On 16 avr, 22:33, Xavier Ducrohet x...@android.com wrote:
 Unless you post youraidlfile, it's going to be hard to help you.

 Xav



 On Thu, Apr 16, 2009 at 1:11 PM, ludovic.perrier barbapa...@gmail.com wrote:

  finaly it's not good

  My building process is infinite and blocked at 24%
  I see that the generated IService.Java (of my Service.aidl) file is
  update each 5 second! and the console display this warning:

  [2009-04-16 22:10:41 - MyProject] warning: Ignoring InnerClasses
  attribute for an anonymous inner class that doesn't come with an
  associated EnclosingMethod attribute. (This class was probably
  produced by a broken compiler.)

  Please help me...

  On 16 avr, 19:12, ludovic.perrier barbapa...@gmail.com wrote:
  I have found!

  When parcelableaidlfile is in other package
  we must set an import on parcelable class inaidlinterface

  Happy Codding!

  On 16 avr, 18:56, ludovic.perrier barbapa...@gmail.com wrote:

   Hello

   I have the same problem, and it don't work yet. I have a question, new
   mechanism works ifaidlinterface file isn't in same package ofaidl
   parcelable class?

   Ludo

   On 15 avr, 03:34, Xavier Ducrohet x...@android.com wrote:

I have just realized something.

If you create/edit parcelable typeaidlfiles, this does not trigger a
recompilation of the interfaceaidlfiles that depends on it. In 
fact,aidlfiles are only recompiled when theaidlfile is touched.

We'll do a quick fix for the final ADT 0.9 (which will most likely be
a full recompilation of allaidlfiles whenever 1aidlfile is
changed), and implement true dependency support later to minimize
unneeded recompilations.

Xav

On Tue, Apr 14, 2009 at 2:02 PM, Xavier Ducrohet x...@android.com 
wrote:
 I just did a quick test following the information in the link I 
 posted
 above and it is working for me.

 Make sure youraidlfile declares the package it's in (like any java 
 class).

 Xav

 On Tue, Apr 14, 2009 at 1:05 PM, Xavier Ducrohet x...@android.com 
 wrote:
 oh I missed this message :(

 Let me do a quick test...

 On Tue, Apr 14, 2009 at 11:18 AM, Zach Hobbs 
 ho...@helloandroid.com wrote:

 Some more info:

 - I tried creating anaidlfile with the same name as the Parcelable
 class, and I get an error in the console like: path to class/
 class.aidl:1 interface package.class should be declared in a
 file called com.aidl. I tried declaring the Parcelable in 
 com.aidland
 that didn't work either.

 - The documentation in 1.5 onAIDLstill refers to the Android Tools
 CreateAidlpreprocess file for Parcelable classes which is not
 available in ADT 0.9.  Should I open a bug for this?

 Thanks,
 Zach

 On Apr 14, 12:52 pm, Zach Hobbs ho...@helloandroid.com wrote:
 I'm attempting to get build my project with the early preview SDK,
 targeting 1.1 and am having problems gettingAIDLfiles to recognize
 imports for Parcelables. In the previous ADT you could right 
 click on
 your project, hit Android Tools and have an option something 
 like
 GenerateAIDLfor Parcelables.  This would create a file
 project.aidlin your project's root containing a line for each
 Parceable in your project.

 With the new SDK/ADT anytime I try to import a Parcelable in 
 anAIDL
 file I get Couldn't find import for class ...  even though I 
 still
 have the project.aidlfile in the project's root.  Also, the 
 option to
 generate theAIDLfor the Parcelables is no longer available.  
 Anyone
 know how to get your Parcelables noticed in the new SDK?

 Thanks,
 Zach

 --
 Xavier Ducrohet
 Android Engineer, Google.

 --
 Xavier Ducrohet
 Android Engineer, Google.

--
Xavier Ducrohet
Android 

[android-developers] Re: Parcelables / project.aidl in SDK 1.5

2009-04-16 Thread Xavier Ducrohet

Errors during build.
 Errors running builder 'Android Pre Compiler' on project 'droidify'.
 Resource '/droidify/gen/de/felixbruns/jotify' does not exist.

Lets fix this one first.

There's a bug in ADT 0.9_pre where those folders are not created
automatically. We've fixed it on our side, but you'll simply have to
create them manually (jsut once, unless you do a clean).

This may fix your other issues. let me know.

Xav

On Thu, Apr 16, 2009 at 2:15 PM, ludovic.perrier barbapa...@gmail.com wrote:

 hello

 IJotifyService.aidl interface in com.thoout.droitify

 package com.thoout.droidify;

 //import java.util.List;
 import de.felixbruns.jotify.media.Playlist;
 import de.felixbruns.jotify.media.Track;
 import de.felixbruns.jotify.media.Album;
 import de.felixbruns.jotify.media.Artist;


 interface IJotifyService
 {
    int login(String login, String pass);
    ListPlaylist getPlaylists();
 }

 Aidl parcelable class in de.felixbruns.jotify.media

 package de.felixbruns.jotify.media;
 parcelable Playlist;

 Playlist have Track member who have Artist and Album member all these
 class implement Parcelable

 In de.felixbruns.jotify.media there are:
 Plalist.java
 Playlist.aidl
 Album.java
 Album.aidl
 Track.java
 Track.aidl
 Artist.java
 Artist.aidl

 I have also random problem build error is:
 Errors during build.
  Errors running builder 'Android Pre Compiler' on project 'droidify'.
  Resource '/droidify/gen/de/felixbruns/jotify' does not exist.

 or

 Errors during build.
  Errors running builder 'Android Pre Compiler' on project 'droidify'.
  Resource '/droidify/gen/com/thoout/droitify' does not exist.

 I'am on mac

 Ludo


 On 16 avr, 22:33, Xavier Ducrohet x...@android.com wrote:
 Unless you post youraidlfile, it's going to be hard to help you.

 Xav



 On Thu, Apr 16, 2009 at 1:11 PM, ludovic.perrier barbapa...@gmail.com 
 wrote:

  finaly it's not good

  My building process is infinite and blocked at 24%
  I see that the generated IService.Java (of my Service.aidl) file is
  update each 5 second! and the console display this warning:

  [2009-04-16 22:10:41 - MyProject] warning: Ignoring InnerClasses
  attribute for an anonymous inner class that doesn't come with an
  associated EnclosingMethod attribute. (This class was probably
  produced by a broken compiler.)

  Please help me...

  On 16 avr, 19:12, ludovic.perrier barbapa...@gmail.com wrote:
  I have found!

  When parcelableaidlfile is in other package
  we must set an import on parcelable class inaidlinterface

  Happy Codding!

  On 16 avr, 18:56, ludovic.perrier barbapa...@gmail.com wrote:

   Hello

   I have the same problem, and it don't work yet. I have a question, new
   mechanism works ifaidlinterface file isn't in same package ofaidl
   parcelable class?

   Ludo

   On 15 avr, 03:34, Xavier Ducrohet x...@android.com wrote:

I have just realized something.

If you create/edit parcelable typeaidlfiles, this does not trigger a
recompilation of the interfaceaidlfiles that depends on it. In 
fact,aidlfiles are only recompiled when theaidlfile is touched.

We'll do a quick fix for the final ADT 0.9 (which will most likely be
a full recompilation of allaidlfiles whenever 1aidlfile is
changed), and implement true dependency support later to minimize
unneeded recompilations.

Xav

On Tue, Apr 14, 2009 at 2:02 PM, Xavier Ducrohet x...@android.com 
wrote:
 I just did a quick test following the information in the link I 
 posted
 above and it is working for me.

 Make sure youraidlfile declares the package it's in (like any java 
 class).

 Xav

 On Tue, Apr 14, 2009 at 1:05 PM, Xavier Ducrohet x...@android.com 
 wrote:
 oh I missed this message :(

 Let me do a quick test...

 On Tue, Apr 14, 2009 at 11:18 AM, Zach Hobbs 
 ho...@helloandroid.com wrote:

 Some more info:

 - I tried creating anaidlfile with the same name as the Parcelable
 class, and I get an error in the console like: path to class/
 class.aidl:1 interface package.class should be declared in a
 file called com.aidl. I tried declaring the Parcelable in 
 com.aidland
 that didn't work either.

 - The documentation in 1.5 onAIDLstill refers to the Android 
 Tools
 CreateAidlpreprocess file for Parcelable classes which is not
 available in ADT 0.9.  Should I open a bug for this?

 Thanks,
 Zach

 On Apr 14, 12:52 pm, Zach Hobbs ho...@helloandroid.com wrote:
 I'm attempting to get build my project with the early preview 
 SDK,
 targeting 1.1 and am having problems gettingAIDLfiles to 
 recognize
 imports for Parcelables. In the previous ADT you could right 
 click on
 your project, hit Android Tools and have an option something 
 like
 GenerateAIDLfor Parcelables.  This would create a file
 project.aidlin your project's root containing a line for each
 Parceable in your project.

 With the 

[android-developers] Re: Parcelables / project.aidl in SDK 1.5

2009-04-16 Thread ludovic.perrier

When I haven't the folder error the build is infinite blocked at 24%
in gen directory I haven't the /de/felixbruns/jotify/

The message display in console (in loop)
[2009-04-16 23:30:00 - droidify] warning: Ignoring InnerClasses
attribute for an anonymous inner class that doesn't come with an
associated EnclosingMethod attribute. (This class was probably
produced by a broken compiler.)


On 16 avr, 23:27, Xavier Ducrohet x...@android.com wrote:
 Errors during build.
  Errors running builder 'Android Pre Compiler' on project 'droidify'.
  Resource '/droidify/gen/de/felixbruns/jotify' does not exist.

 Lets fix this one first.

 There's a bug in ADT 0.9_pre where those folders are not created
 automatically. We've fixed it on our side, but you'll simply have to
 create them manually (jsut once, unless you do a clean).

 This may fix your other issues. let me know.

 Xav



 On Thu, Apr 16, 2009 at 2:15 PM, ludovic.perrier barbapa...@gmail.com wrote:

  hello

  IJotifyService.aidlinterface in com.thoout.droitify

  package com.thoout.droidify;

  //import java.util.List;
  import de.felixbruns.jotify.media.Playlist;
  import de.felixbruns.jotify.media.Track;
  import de.felixbruns.jotify.media.Album;
  import de.felixbruns.jotify.media.Artist;

  interface IJotifyService
  {
     int login(String login, String pass);
     ListPlaylist getPlaylists();
  }

 Aidlparcelable class in de.felixbruns.jotify.media

  package de.felixbruns.jotify.media;
  parcelable Playlist;

  Playlist have Track member who have Artist and Album member all these
  class implement Parcelable

  In de.felixbruns.jotify.media there are:
  Plalist.java
  Playlist.aidl
  Album.java
  Album.aidl
  Track.java
  Track.aidl
  Artist.java
  Artist.aidl

  I have also random problem build error is:
  Errors during build.
   Errors running builder 'Android Pre Compiler' on project 'droidify'.
   Resource '/droidify/gen/de/felixbruns/jotify' does not exist.

  or

  Errors during build.
   Errors running builder 'Android Pre Compiler' on project 'droidify'.
   Resource '/droidify/gen/com/thoout/droitify' does not exist.

  I'am on mac

  Ludo

  On 16 avr, 22:33, Xavier Ducrohet x...@android.com wrote:
  Unless you post youraidlfile, it's going to be hard to help you.

  Xav

  On Thu, Apr 16, 2009 at 1:11 PM, ludovic.perrier barbapa...@gmail.com 
  wrote:

   finaly it's not good

   My building process is infinite and blocked at 24%
   I see that the generated IService.Java (of my Service.aidl) file is
   update each 5 second! and the console display this warning:

   [2009-04-16 22:10:41 - MyProject] warning: Ignoring InnerClasses
   attribute for an anonymous inner class that doesn't come with an
   associated EnclosingMethod attribute. (This class was probably
   produced by a broken compiler.)

   Please help me...

   On 16 avr, 19:12, ludovic.perrier barbapa...@gmail.com wrote:
   I have found!

   When parcelableaidlfile is in other package
   we must set an import on parcelable class inaidlinterface

   Happy Codding!

   On 16 avr, 18:56, ludovic.perrier barbapa...@gmail.com wrote:

Hello

I have the same problem, and it don't work yet. I have a question, new
mechanism works ifaidlinterface file isn't in same package ofaidl
parcelable class?

Ludo

On 15 avr, 03:34, Xavier Ducrohet x...@android.com wrote:

 I have just realized something.

 If you create/edit parcelable typeaidlfiles, this does not trigger a
 recompilation of the interfaceaidlfiles that depends on it. In 
 fact,aidlfiles are only recompiled when theaidlfile is touched.

 We'll do a quick fix for the final ADT 0.9 (which will most likely 
 be
 a full recompilation of allaidlfiles whenever 1aidlfile is
 changed), and implement true dependency support later to minimize
 unneeded recompilations.

 Xav

 On Tue, Apr 14, 2009 at 2:02 PM, Xavier Ducrohet x...@android.com 
 wrote:
  I just did a quick test following the information in the link I 
  posted
  above and it is working for me.

  Make sure youraidlfile declares the package it's in (like any 
  java class).

  Xav

  On Tue, Apr 14, 2009 at 1:05 PM, Xavier Ducrohet 
  x...@android.com wrote:
  oh I missed this message :(

  Let me do a quick test...

  On Tue, Apr 14, 2009 at 11:18 AM, Zach Hobbs 
  ho...@helloandroid.com wrote:

  Some more info:

  - I tried creating anaidlfile with the same name as the 
  Parcelable
  class, and I get an error in the console like: path to class/
  class.aidl:1 interface package.class should be declared 
  in a
  file called com.aidl. I tried declaring the Parcelable in 
  com.aidland
  that didn't work either.

  - The documentation in 1.5 onAIDLstill refers to the Android 
  Tools
  CreateAidlpreprocess file for Parcelable classes which is not
  available in ADT 0.9.  Should I open a bug for this?

  

[android-developers] Re: Parcelables / project.aidl in SDK 1.5

2009-04-16 Thread ludovic.perrier

I have create the folder after the launch of build (for infinite loop)
and it's ok my apk is build
Thanks for your help

On 16 avr, 23:32, ludovic.perrier barbapa...@gmail.com wrote:
 When I haven't the folder error the build is infinite blocked at 24%
 in gen directory I haven't the /de/felixbruns/jotify/

 The message display in console (in loop)
 [2009-04-16 23:30:00 - droidify] warning: Ignoring InnerClasses
 attribute for an anonymous inner class that doesn't come with an
 associated EnclosingMethod attribute. (This class was probably
 produced by a broken compiler.)

 On 16 avr, 23:27, Xavier Ducrohet x...@android.com wrote:

  Errors during build.
   Errors running builder 'Android Pre Compiler' on project 'droidify'.
   Resource '/droidify/gen/de/felixbruns/jotify' does not exist.

  Lets fix this one first.

  There's a bug in ADT 0.9_pre where those folders are not created
  automatically. We've fixed it on our side, but you'll simply have to
  create them manually (jsut once, unless you do a clean).

  This may fix your other issues. let me know.

  Xav

  On Thu, Apr 16, 2009 at 2:15 PM, ludovic.perrier barbapa...@gmail.com 
  wrote:

   hello

   IJotifyService.aidlinterface in com.thoout.droitify

   package com.thoout.droidify;

   //import java.util.List;
   import de.felixbruns.jotify.media.Playlist;
   import de.felixbruns.jotify.media.Track;
   import de.felixbruns.jotify.media.Album;
   import de.felixbruns.jotify.media.Artist;

   interface IJotifyService
   {
      int login(String login, String pass);
      ListPlaylist getPlaylists();
   }

  Aidlparcelable class in de.felixbruns.jotify.media

   package de.felixbruns.jotify.media;
   parcelable Playlist;

   Playlist have Track member who have Artist and Album member all these
   class implement Parcelable

   In de.felixbruns.jotify.media there are:
   Plalist.java
   Playlist.aidl
   Album.java
   Album.aidl
   Track.java
   Track.aidl
   Artist.java
   Artist.aidl

   I have also random problem build error is:
   Errors during build.
    Errors running builder 'Android Pre Compiler' on project 'droidify'.
    Resource '/droidify/gen/de/felixbruns/jotify' does not exist.

   or

   Errors during build.
    Errors running builder 'Android Pre Compiler' on project 'droidify'.
    Resource '/droidify/gen/com/thoout/droitify' does not exist.

   I'am on mac

   Ludo

   On 16 avr, 22:33, Xavier Ducrohet x...@android.com wrote:
   Unless you post youraidlfile, it's going to be hard to help you.

   Xav

   On Thu, Apr 16, 2009 at 1:11 PM, ludovic.perrier barbapa...@gmail.com 
   wrote:

finaly it's not good

My building process is infinite and blocked at 24%
I see that the generated IService.Java (of my Service.aidl) file is
update each 5 second! and the console display this warning:

[2009-04-16 22:10:41 - MyProject] warning: Ignoring InnerClasses
attribute for an anonymous inner class that doesn't come with an
associated EnclosingMethod attribute. (This class was probably
produced by a broken compiler.)

Please help me...

On 16 avr, 19:12, ludovic.perrier barbapa...@gmail.com wrote:
I have found!

When parcelableaidlfile is in other package
we must set an import on parcelable class inaidlinterface

Happy Codding!

On 16 avr, 18:56, ludovic.perrier barbapa...@gmail.com wrote:

 Hello

 I have the same problem, and it don't work yet. I have a question, 
 new
 mechanism works ifaidlinterface file isn't in same package ofaidl
 parcelable class?

 Ludo

 On 15 avr, 03:34, Xavier Ducrohet x...@android.com wrote:

  I have just realized something.

  If you create/edit parcelable typeaidlfiles, this does not 
  trigger a
  recompilation of the interfaceaidlfiles that depends on it. In 
  fact,aidlfiles are only recompiled when theaidlfile is touched.

  We'll do a quick fix for the final ADT 0.9 (which will most 
  likely be
  a full recompilation of allaidlfiles whenever 1aidlfile is
  changed), and implement true dependency support later to minimize
  unneeded recompilations.

  Xav

  On Tue, Apr 14, 2009 at 2:02 PM, Xavier Ducrohet 
  x...@android.com wrote:
   I just did a quick test following the information in the link I 
   posted
   above and it is working for me.

   Make sure youraidlfile declares the package it's in (like any 
   java class).

   Xav

   On Tue, Apr 14, 2009 at 1:05 PM, Xavier Ducrohet 
   x...@android.com wrote:
   oh I missed this message :(

   Let me do a quick test...

   On Tue, Apr 14, 2009 at 11:18 AM, Zach Hobbs 
   ho...@helloandroid.com wrote:

   Some more info:

   - I tried creating anaidlfile with the same name as the 
   Parcelable
   class, and I get an error in the console like: path to 
   class/
   class.aidl:1 interface package.class should be declared 
   in a
   file 

[android-developers] Re: Parcelables / project.aidl in SDK 1.5

2009-04-15 Thread Zach Hobbs

Thanks for the info.  Looks like my problem was that I was declaring
the parcelable with the whole package like :

package package
parcelable package.parcelable

it worked if I just declared the parcelable like parelable
parcelable.

Thanks,
Zach


On Apr 14, 9:34 pm, Xavier Ducrohet x...@android.com wrote:
 I have just realized something.

 If you create/edit parcelable type aidl files, this does not trigger a
 recompilation of the interface aidl files that depends on it. In fact,
 aidl files are only recompiled when the aidl file is touched.

 We'll do a quick fix for the final ADT 0.9 (which will most likely be
 a full recompilation of all aidl files whenever 1 aidl file is
 changed), and implement true dependency support later to minimize
 unneeded recompilations.

 Xav



 On Tue, Apr 14, 2009 at 2:02 PM, Xavier Ducrohet x...@android.com wrote:
  I just did a quick test following the information in the link I posted
  above and it is working for me.

  Make sure your aidl file declares the package it's in (like any java class).

  Xav

  On Tue, Apr 14, 2009 at 1:05 PM, Xavier Ducrohet x...@android.com wrote:
  oh I missed this message :(

  Let me do a quick test...

  On Tue, Apr 14, 2009 at 11:18 AM, Zach Hobbs ho...@helloandroid.com 
  wrote:

  Some more info:

  - I tried creating an aidl file with the same name as the Parcelable
  class, and I get an error in the console like: path to class/
  class.aidl:1 interface package.class should be declared in a
  file called com.aidl. I tried declaring the Parcelable in com.aidl and
  that didn't work either.

  - The documentation in 1.5 on AIDL still refers to the Android Tools
  Create Aidl preprocess file for Parcelable classes which is not
  available in ADT 0.9.  Should I open a bug for this?

  Thanks,
  Zach

  On Apr 14, 12:52 pm, Zach Hobbs ho...@helloandroid.com wrote:
  I'm attempting to get build my project with the early preview SDK,
  targeting 1.1 and am having problems getting AIDL files to recognize
  imports for Parcelables. In the previous ADT you could right click on
  your project, hit Android Tools and have an option something like
  Generate AIDL for Parcelables.  This would create a file
  project.aidl in your project's root containing a line for each
  Parceable in your project.

  With the new SDK/ADT anytime I try to import a Parcelable in an AIDL
  file I get Couldn't find import for class ...  even though I still
  have the project.aidl file in the project's root.  Also, the option to
  generate the AIDL for the Parcelables is no longer available.  Anyone
  know how to get your Parcelables noticed in the new SDK?

  Thanks,
  Zach

  --
  Xavier Ducrohet
  Android Engineer, Google.

  --
  Xavier Ducrohet
  Android Engineer, Google.

 --
 Xavier Ducrohet
 Android Engineer, Google.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Parcelables / project.aidl in SDK 1.5

2009-04-14 Thread Zach Hobbs

Some more info:

- I tried creating an aidl file with the same name as the Parcelable
class, and I get an error in the console like: path to class/
class.aidl:1 interface package.class should be declared in a
file called com.aidl. I tried declaring the Parcelable in com.aidl and
that didn't work either.

- The documentation in 1.5 on AIDL still refers to the Android Tools
 Create Aidl preprocess file for Parcelable classes which is not
available in ADT 0.9.  Should I open a bug for this?

Thanks,
Zach



On Apr 14, 12:52 pm, Zach Hobbs ho...@helloandroid.com wrote:
 I'm attempting to get build my project with the early preview SDK,
 targeting 1.1 and am having problems getting AIDL files to recognize
 imports for Parcelables. In the previous ADT you could right click on
 your project, hit Android Tools and have an option something like
 Generate AIDL for Parcelables.  This would create a file
 project.aidl in your project's root containing a line for each
 Parceable in your project.

 With the new SDK/ADT anytime I try to import a Parcelable in an AIDL
 file I get Couldn't find import for class ...  even though I still
 have the project.aidl file in the project's root.  Also, the option to
 generate the AIDL for the Parcelables is no longer available.  Anyone
 know how to get your Parcelables noticed in the new SDK?

 Thanks,
 Zach
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Parcelables / project.aidl in SDK 1.5

2009-04-14 Thread Xavier Ducrohet

Hello,

sorry we forgot to mention this change in the release notes.

The old mechanism in ADT 0.8 that made you create a project.aidl
(which contained the list of your parcelable classes) is gone.

While it worked, it was not compatible with build with Ant as it
prevented you from creating .aild files for your classes. The new
mechanism is similar to creating aidl files for ant.

It is explained here:
http://developer.android.com/guide/developing/tools/aidl.html
Just ignore the special case of Eclipse/ADT

Basically, on top of creating aild files for your interfaces, you must
create aidl files for your classes that inherits parcelables, and
place them next to the .java file.
(Look in the section Pass by value Parameters using Parcelables)

Xav

On Tue, Apr 14, 2009 at 9:52 AM, Zach Hobbs ho...@helloandroid.com wrote:

 I'm attempting to get build my project with the early preview SDK,
 targeting 1.1 and am having problems getting AIDL files to recognize
 imports for Parcelables. In the previous ADT you could right click on
 your project, hit Android Tools and have an option something like
 Generate AIDL for Parcelables.  This would create a file
 project.aidl in your project's root containing a line for each
 Parceable in your project.

 With the new SDK/ADT anytime I try to import a Parcelable in an AIDL
 file I get Couldn't find import for class ...  even though I still
 have the project.aidl file in the project's root.  Also, the option to
 generate the AIDL for the Parcelables is no longer available.  Anyone
 know how to get your Parcelables noticed in the new SDK?

 Thanks,
 Zach
 




-- 
Xavier Ducrohet
Android Engineer, Google.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Parcelables / project.aidl in SDK 1.5

2009-04-14 Thread Xavier Ducrohet

oh I missed this message :(

Let me do a quick test...

On Tue, Apr 14, 2009 at 11:18 AM, Zach Hobbs ho...@helloandroid.com wrote:

 Some more info:

 - I tried creating an aidl file with the same name as the Parcelable
 class, and I get an error in the console like: path to class/
 class.aidl:1 interface package.class should be declared in a
 file called com.aidl. I tried declaring the Parcelable in com.aidl and
 that didn't work either.

 - The documentation in 1.5 on AIDL still refers to the Android Tools
 Create Aidl preprocess file for Parcelable classes which is not
 available in ADT 0.9.  Should I open a bug for this?

 Thanks,
 Zach



 On Apr 14, 12:52 pm, Zach Hobbs ho...@helloandroid.com wrote:
 I'm attempting to get build my project with the early preview SDK,
 targeting 1.1 and am having problems getting AIDL files to recognize
 imports for Parcelables. In the previous ADT you could right click on
 your project, hit Android Tools and have an option something like
 Generate AIDL for Parcelables.  This would create a file
 project.aidl in your project's root containing a line for each
 Parceable in your project.

 With the new SDK/ADT anytime I try to import a Parcelable in an AIDL
 file I get Couldn't find import for class ...  even though I still
 have the project.aidl file in the project's root.  Also, the option to
 generate the AIDL for the Parcelables is no longer available.  Anyone
 know how to get your Parcelables noticed in the new SDK?

 Thanks,
 Zach
 




-- 
Xavier Ducrohet
Android Engineer, Google.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Parcelables / project.aidl in SDK 1.5

2009-04-14 Thread Xavier Ducrohet

I just did a quick test following the information in the link I posted
above and it is working for me.

Make sure your aidl file declares the package it's in (like any java class).

Xav

On Tue, Apr 14, 2009 at 1:05 PM, Xavier Ducrohet x...@android.com wrote:
 oh I missed this message :(

 Let me do a quick test...

 On Tue, Apr 14, 2009 at 11:18 AM, Zach Hobbs ho...@helloandroid.com wrote:

 Some more info:

 - I tried creating an aidl file with the same name as the Parcelable
 class, and I get an error in the console like: path to class/
 class.aidl:1 interface package.class should be declared in a
 file called com.aidl. I tried declaring the Parcelable in com.aidl and
 that didn't work either.

 - The documentation in 1.5 on AIDL still refers to the Android Tools
 Create Aidl preprocess file for Parcelable classes which is not
 available in ADT 0.9.  Should I open a bug for this?

 Thanks,
 Zach



 On Apr 14, 12:52 pm, Zach Hobbs ho...@helloandroid.com wrote:
 I'm attempting to get build my project with the early preview SDK,
 targeting 1.1 and am having problems getting AIDL files to recognize
 imports for Parcelables. In the previous ADT you could right click on
 your project, hit Android Tools and have an option something like
 Generate AIDL for Parcelables.  This would create a file
 project.aidl in your project's root containing a line for each
 Parceable in your project.

 With the new SDK/ADT anytime I try to import a Parcelable in an AIDL
 file I get Couldn't find import for class ...  even though I still
 have the project.aidl file in the project's root.  Also, the option to
 generate the AIDL for the Parcelables is no longer available.  Anyone
 know how to get your Parcelables noticed in the new SDK?

 Thanks,
 Zach
 




 --
 Xavier Ducrohet
 Android Engineer, Google.




-- 
Xavier Ducrohet
Android Engineer, Google.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Parcelables / project.aidl in SDK 1.5

2009-04-14 Thread Xavier Ducrohet

I have just realized something.

If you create/edit parcelable type aidl files, this does not trigger a
recompilation of the interface aidl files that depends on it. In fact,
aidl files are only recompiled when the aidl file is touched.

We'll do a quick fix for the final ADT 0.9 (which will most likely be
a full recompilation of all aidl files whenever 1 aidl file is
changed), and implement true dependency support later to minimize
unneeded recompilations.

Xav

On Tue, Apr 14, 2009 at 2:02 PM, Xavier Ducrohet x...@android.com wrote:
 I just did a quick test following the information in the link I posted
 above and it is working for me.

 Make sure your aidl file declares the package it's in (like any java class).

 Xav

 On Tue, Apr 14, 2009 at 1:05 PM, Xavier Ducrohet x...@android.com wrote:
 oh I missed this message :(

 Let me do a quick test...

 On Tue, Apr 14, 2009 at 11:18 AM, Zach Hobbs ho...@helloandroid.com wrote:

 Some more info:

 - I tried creating an aidl file with the same name as the Parcelable
 class, and I get an error in the console like: path to class/
 class.aidl:1 interface package.class should be declared in a
 file called com.aidl. I tried declaring the Parcelable in com.aidl and
 that didn't work either.

 - The documentation in 1.5 on AIDL still refers to the Android Tools
 Create Aidl preprocess file for Parcelable classes which is not
 available in ADT 0.9.  Should I open a bug for this?

 Thanks,
 Zach



 On Apr 14, 12:52 pm, Zach Hobbs ho...@helloandroid.com wrote:
 I'm attempting to get build my project with the early preview SDK,
 targeting 1.1 and am having problems getting AIDL files to recognize
 imports for Parcelables. In the previous ADT you could right click on
 your project, hit Android Tools and have an option something like
 Generate AIDL for Parcelables.  This would create a file
 project.aidl in your project's root containing a line for each
 Parceable in your project.

 With the new SDK/ADT anytime I try to import a Parcelable in an AIDL
 file I get Couldn't find import for class ...  even though I still
 have the project.aidl file in the project's root.  Also, the option to
 generate the AIDL for the Parcelables is no longer available.  Anyone
 know how to get your Parcelables noticed in the new SDK?

 Thanks,
 Zach
 




 --
 Xavier Ducrohet
 Android Engineer, Google.




 --
 Xavier Ducrohet
 Android Engineer, Google.




-- 
Xavier Ducrohet
Android Engineer, Google.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---