I think that I do the retrotranslator process correctly. The problem
is in

  AnnotationAuthor aAuthor=new AnnotationAuthor();

I do not know what the problem is,
and the code of AnnotationAuthor class is the next:

package org.proof;

public class AnnotationAuthor{
        @Author (id=1,name="Sergio",surname="Martin")
        private String strString;
        @Author (id=2,name="Jhon",surname="Brown")
        private String strString;

        public  String getStrString(){
                return strString;
        }
        public void setStrString(String strString){
                this.strString=strString;
        }
        public String getStrString2(){
                return strString2;
        }
        public void setStrString2(String strString2){
                this.strString2=strString2;
        }

}





On May 25, 2:04 pm, Mark Murphy <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > I need to use reflection and annotations in run-time. I am beginner
> > with android and i can not run an aplication. Maybe the source is
> > wrong but I thinks that it is right. When a run the emulator says me
> > that occur a java.lang.ExceptionInInitializerError exception.
> > My question is the next, how i can resolve this problem?.
> > My process of run the application is:
> > 1.- Compile code.
> > 2.- Run retrotranslator.
> > 3.- Run android application from eclipse.
>
> Are you following the instructions on using retrotranslator with Android?
>
> http://retrotranslator.sourceforge.net/#android
>
> In particular, the part about "If you're using the ADT plugin  in the
> Eclipse IDE you cannot run Retrotranslator on your code, but the
> dependencies of your application may be translated manually before
> adding them to the Eclipse project" would seem relevant.
>
> Assuming that's all OK, the exception would appear to be raised during
> some class' constructor. Between that and your stack trace, it should be
> possible for you to narrow down what line in your code is throwing the
> Exception.
>
> If you can't do that for some reason, get rid of the annotations and
> reflection and get your logic working when called directly. Once that's
> fine, start *slowly* introducing annotations and reflections until you
> either get what you want or you run into your
> ExceptionInInitializerError again, at which point you know it is from
> the last thing you added.
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com
> Android Training on the Ranch in September!http://www.bignerdranch.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to