Chapter 9. Advanced Application: Blood Sugar Log

IN THIS CHAPTER

This chapter demonstrates building integrated software that utilizes various CLDC APIs and provides interfaces for both MIDP and PDAP while using identical classes for data handling. Further, the application demonstrates the combination of the low-level and high-level MIDP API.

Here, we use blood sugar logging as an example application. People suffering from diabetes often keep a daily log of their blood sugar level in order to keep track of their blood sugar values and adjust the amount of insulin for their daily injection accordingly. They keep a record of their blood sugar levels at several times every day. Our application can help those people by enabling them to use their PDA or MID for keeping their daily log.

The purpose of this application is to log blood sugar values and graphically display the blood sugar measurement values that have been taken during one day. However, the main purpose of this application is to demonstrate the separation of the application logic from the user interface and combine various CLDC APIs in a single program. Parts of the program can be reused for building your own applications. For example, the graphics display could be used for building a stock quotes display.

We will also utilize the example to show efficient binary search on record stores.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset