How do I set up a beamReceive handler in my J2ME PalmOS Spotlet to receive data from another device?

Ivo Limmen

To use the beamReceive handler, override the beamReceive method in the Spotlet.

Define the function in your spotlet like so:

public class BeamMe extends Spotlet
{
   public void beamReceive(byte[] data)
   {
      // Your code here
   }
}

You can then access and use the byte array sent via the IR beam and use it as needed.

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact