Android Remote API


Android Remote API
This API has to parts, first the RemoteAPI part which is the main part of the API that has the functions to transmit and receive objects from bluetooth link and also has the functions to collect different java objects in an array and convert them in c structure before sending them to a Remote.
The second part of the API is the RemoteObject that represents all the properties and functions that an object needed to our Aplication, on a remote device such as: a button or a text or anything else the developer can use to create them easly with this class,fore more about this API see the API Java doc located in the link.

API Can Draw Any Shape On a Remote
Two separate designs were considered when deciding how image data should be communicated and displayed on the remote display device: bitmaps and very simple vector graphics. As discussed below, each method has several advantages and disadvantages. 

For Raster (pros):


 ·    Good image quality and detail. Possible to display full color, high quality images.
·    Trivial drawing algorithm. Color of each pixel is contained in the bitmap.
 Cons:
·    Huge amount of data must be transferred. 128x128 display has 16K pixels, so
16bit bit map would be 32KB
·    Cannot scale without losing quality. Enlarging bitmap text on display would result in loss of quality.
·    Slow drawing algorithm. If the data to be displayed changes, the entire bitmap would need to be redrawn. 
Vector Graphics: Pros



·    Image data can be very small.
·    Image can be scaled at will without losing quality.
·    Simple images can be drawn very efficiently
Cons:
·    Difficult to create high quality images.
·    Complex drawing algorithm.


Considering the qualities of each image drawing method, a very simple form of vector graphics was chosen for the design of this API. Each shape that is to be draw contains a series of points. When such a shape is to be displayed, a line is drawn between each consecutive point. Using this method allows simple graphics to be efficiently transferred over the limited bandwidth of the wireless link.


Yo can find the Android Application here: http://www13.zippyshare.com/v/92704376/file.html

So, in this article at poly technology we wrote about Android Remote API. Please bookmark poly technology for more info about this field.

Peter Chyla

Labels