Motorola C370, C550, C450 technical manual Simmemory

Page 71

13

Phonebook Access

Sample of code for calling of ‘findRecordByName(char firstChar, int sortOrder)’ method:

index = PhoneBookRecord.findRecordByName('N', PhoneBookRecord.SORT_BY_NAME);

Sample of code for calling of ‘findRecordByEmail(String email, int sortOrder)’ method:

String email = “email@mail.com”;

index = phbkRec.findRecordByEmail(email, PhoneBookRecord.SORT_BY_NAME);

Sample of code for calling of ‘getNumberRecords(int device)’ method:

//get total number of records int numberRecsInPhone = PhoneBookRecord.getNumberRecords(PhoneBookRecord.PHONE_MEMORY);

int numberRecsInSim = PhoneBookRecord.getNumberRecords(PhoneBookRecord

.SIM_MEMORY);

int numberRecsAll = PhoneBookRecord.getNumberRecords(PhoneBookRecord.ALL_MEMORY);

Sample of code for calling of ‘getAvailableRecords(int device)’ method:

//get number of available records int numberRecsAvalPhone = PhoneBookRecord.getAvailableRecords(PhoneBookRecord.PHONE_MEMORY); int numberRecsAvalSim =

PhoneBookRecord.getAvailableRecords(PhoneBookRecord.SIM_MEMORY);

int numberRecsAvalAll = PhoneBookRecord.getAvailableRecords(PhoneBookRecord.ALL_MEMORY);

Sample of code for calling of ‘getUsedRecords(int device, int sortOrder)’ method:

//get number of used records int numberRecsUsedPhone =

PhoneBookRecord.getUsedRecords(PhoneBookRecord.PHONE_MEMORY, PhoneBookRecord.SORT_BY_NAME);

int numberRecsUsedSim =

PhoneBookRecord.getUsedRecords(PhoneBookRecord.SIM_MEMORY, PhoneBookRecord.SORT_BY_NAME);

int numberRecsUsedAll =

PhoneBookRecord.getUsedRecords(PhoneBookRecord.ALL_MEMORY, PhoneBookRecord.SORT_BY_NAME);

Sample of code for calling of ‘getNumberRecordsByName(String name)’ method:

int num = PhoneBookRecord.getNumberRecordsByName(name);

Sample of code for calling of ‘getMaxNameLength(int device)’ method:

71

Image 71
Contents Technical Manual Table of Contents Lcdui JAD Attributes Disclaimer IntroductionPurpose AudienceReferences Acronym Description Revision HistoryDefinitions, Abbreviations, Acronyms Date Name ReasonDocument Overview Introduction Java 2 Platform, Micro Edition J2ME J2ME IntroductionResources Available Motorola J2ME PlatformJava VM Description DisplayNetworking File & RMSIntroduction to Development Developing and Packaging J2ME ApplicationsGuide to Development in J2ME Page Downloading Applications OTA ProcedureInstallation Program and Data space notes Exiting Applications Java Application Installer/De-Installer JaidStarting Applications Downloading MIDlets Error ChecksLaunching Web Session for Http Download XML Screen Renderings BombMan is back, now on your Taichi series of handsets Taichi handset New Games MIDlet Lifecycle Application ManagementMIDlet Suite Installation MIDlet Suite De-installation DestroyApp MIDlet Suite UpdatingCaller Purpose MethodStartApp or the pauseApp Using startApp MIDlet Control of MIDlet State Transitions Java SystemPage Network Connections Network APIClass Descriptions URL Format IOException when it detects a time-out conditionImplementation Notes TCP SocketsUDP Sockets Network API Description LcduiLcdui Class Hierarchy Gaming API and SoundFunctional Description Gaming API containing a sound API Using BackgroundMusicBackgroundMusic Class BackgroundMusic MethodsGameScreen Fields GameScreen ClassPublic int getKeyStates GameScreen MethodsInformation, disabling key events can improve performance GameScreen Using GameScreenImageUtil Methods ImageUtil ClassImageUtil Fields RgbData Using ImageUtilPalleteImage Methods PalleteImage ClassPalleteImage Constructor Public void setTransparentIndexint index throws Using PalleteImagePlayField Class Using Static and Animated TilesPlayField Constructor Using SpritesDefining View Windows 2N+1 2N + Public void addSpriteSprite s throws PlayField MethodsPage Public boolean collidesWithAnyTileSprite s throws PlayField Using PlayFieldSoundEffect Methods Using SoundEffectSoundEffect Class Sprite ClassSprite Constructor Animation FramesSprite Drawing Sprite Methods Page Public final void drawGraphics g throws Sprites Using SpriteFileFormatNotSupportedException Java Gaming Sound API Java Gaming Sound APIMax Midi Extension Support FileFormatNotSupportedException ConstructorsVibe and Backlight API Vibe and BacklightCreating a Message OverviewPermissions Sending a MessageJAD Attributes JAD AttributesMandatory attributes for manifest files MIDlet-Name RecordStore Record Management SystemClass Description Code ExamplesCaveats TipsPhonebook Access API Phonebook AccessSample of code to create object of PhoneBookRecord class Phonebook Access API PermissionsSimmemory Sample of code for calling of ‘getMaxEmailLength ’ method Sample of code for calling of ‘isPrimaryint speedNo’ method Sample of code for calling of ‘getNumberCategories’ method Sample of code for calling of ‘setCategoryView’ method Sample of code for calling of ‘getUsedRecords’ method Int index = ReceivedRecord.getRecord1 Intelligent Keypad Text Entry API ITAPKey Mapping for the C370, C450, and C550 Appendix a Key MappingCenter Select END Available Memory Appendix B Memory Management CalculationAppendix C Online FAQC370, C450, and C550 Spec Sheets Appendix D Spec SheetsReferences Purchase Motorola Developer Information ToolsDocumentation Motorola Developer Information Tools Motorola, Inc
Related manuals
Manual 110 pages 1.04 Kb