Hello, i am a student and also new to android. I did the changes you told
here,
but when i run the nfc beam demo given at
http://developer.android.com/guide/topics/nfc/nfc.html#p2p, it come up with
the final result as "NFC is not available."

I am running this at android 4.0. Please help.
thanks

On Sat, Mar 3, 2012 at 9:53 AM, goodline <[email protected]> wrote:

> Got the error fixed!
>
> Refer to following post:
>
> http://stackoverflow.com/questions/1678122/must-override-a-superclass-method-errors-after-importing-a-project-into-eclips
>
> Eclipse is defaulting to Java 1.5 and you have classes implementing
> interface methods (which in Java 1.6 can be annotated with @Override,
> but in Java 1.5 can only be applied to methods overriding a superclass
> method).
>
> Go to your project/ide preferences and set the java compiler level to
> 1.6 and also make sure you select JRE 1.6 to execute your program from
> eclipse.
>
> With Eclipse Galileo you go to Eclipse -> Preferences menu item, then
> select Java and Compiler in the dialog.
>
> Now it still may show compiler compliance level at 1.6, yet you still
> see this problem. So now select the link "Configure Project Specific
> Settings..." and in there you'll see the project is set to 1.5, now
> change this to 1.6. You'll need to do this for all affected projects.
>
> This byzantine menu / dialog interface is typical of Eclipse's poor UI
> design.
>
> -Goodline
>
> On Jan 29, 7:08 pm, goodline <[email protected]> wrote:
> > Hi,
> >
> > I am a student and new to android development. I am planning to do a
> > project on android nfc peer-to-peer mode.
> > I was wondering if it is possible to create two virtual devices(AVD's)
> > on a windows machine and send data from one device to another with nfc
> > as the medium?
> >
> > Also, when I try to run the sample AndroidBeamDemo project, I see some
> > errors in Beam.java:
> > 1. The method createNdefMessage(NfcEvent) of type Beam must override a
> > superclass method
> > 2. The method onNdefPushComplete(NfcEvent) of type Beam must override
> > a superclass method
> >
> > Any help is appreciated.
> >
> > -Goodline
>
> --
> 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




-- 
-------------------------------------------------------------------
Regards,

Shantanu Jain,
BE 4th year, Department of Computer Engineering,
Delhi Technological University
(formerly Delhi College of Engineering)
Delhi - 42

-- 
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

Reply via email to