Presentation is loading. Please wait.

Presentation is loading. Please wait.

Keeping It in Sync HotSync®-ing Palm® Programs, Java Style by Mike Kirschman.

Similar presentations


Presentation on theme: "Keeping It in Sync HotSync®-ing Palm® Programs, Java Style by Mike Kirschman."— Presentation transcript:

1 Keeping It in Sync HotSync®-ing Palm® Programs, Java Style by Mike Kirschman

2 The Palm® Model Do minor processing on the handheld. Do minor processing on the handheld. Minor data entry Minor data entry Data display (often only a subset of data) Data display (often only a subset of data) Small remote database queries (if capable) Small remote database queries (if capable) Etc. Etc. Do major processing on PC/Laptop Do major processing on PC/Laptop Large data entry Large data entry Extended processing Extended processing Internet (though, some appearing on HH) Internet (though, some appearing on HH) Larger database queries. Larger database queries.

3 The Conduit: Bridging the Gap Once the processing is done on the HH or PC, the other needs to be updated of the data changes. The vehicle for these changes is the Conduit. Once the processing is done on the HH or PC, the other needs to be updated of the data changes. The vehicle for these changes is the Conduit. The coding options presented in the Palm OS® Conduit Development Kit (CDK): The coding options presented in the Palm OS® Conduit Development Kit (CDK): C++ C++ Java Java Com Com

4 Java Conduits gnt.GNTConduit gnt.GNTRecord gnt.GNTOptions gnt.GNTConduit palm.conduit.SyncManager (opens HH database) 1 Request DB Open 2 Read this Record 4 Read this File 3 ReadOptions 5 Repeat for each file (known by options) Overall Design 1.Read HH data to PC (HotSync®) 2.Read PC copy of data into conduit (see diagram  ) 3.Read PC data 4.Determine type of sync necessary: HH  PC HH  PC HH  PC 5.Write data to HH or PC as necessary (Left for a later time)

5 Data Stream to Read Text Database, Record 0 File 1 Boolean editable Boolean compressed UInt16 recNum UInt16 numGraphics UInt16 category Char[65] name Options UInt16 openFile UInt16 openGraphic UInt16 numRecs UInt32 optionsRecSize File N Boolean editable Boolean compressed UInt16 recNum UInt16 numGraphics UInt16 category Char[65] name … Text Database, Record j Є {1..N} Char[] fileText

6 More Information Palm OS® Development: http://www.palmone.com/us/developers Palm OS® Development: http://www.palmone.com/us/developershttp://www.palmone.com/us/developers Other Palm Resources: http://ardiri.com (look for Palm Development Kit, PilRC, & jCode) Other Palm Resources: http://ardiri.com (look for Palm Development Kit, PilRC, & jCode)http://ardiri.com Conduit Development: http://www.palmos.com/dev/tech/conduits Conduit Development: http://www.palmos.com/dev/tech/conduits http://www.palmos.com/dev/tech/conduits IDE-based development: http://www.metrowerks.com/MW/develop/Wireless/PalmOS/Professional/ IDE-based development: http://www.metrowerks.com/MW/develop/Wireless/PalmOS/Professional/ http://www.metrowerks.com/MW/develop/Wireless/PalmOS/Professional/


Download ppt "Keeping It in Sync HotSync®-ing Palm® Programs, Java Style by Mike Kirschman."

Similar presentations


Ads by Google