Motorola C550, C450, C370 technical manual Sample of code for calling of ‘getMaxEmailLength ’ method

Page 72

int maxNameLengthPhone =

PhoneBookRecord.getMaxNameLength(PhoneBookRecord.PHONE_MEMORY);

int maxNameLengthSim =

PhoneBookRecord.getMaxNameLength(PhoneBookRecord.SIM_MEMORY);

int maxNameLengthAll =

PhoneBookRecord.getMaxNameLength(PhoneBookRecord.ALL_MEMORY);

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

int maxTelNoLengthPhone =

PhoneBookRecord.getMaxTelNoLength(PhoneBookRecord.PHONE_MEMORY);

int maxTelNoLengthSim =

PhoneBookRecord.getMaxTelNoLength(PhoneBookRecord.SIM_MEMORY);

int maxTelNoLengthAll =

PhoneBookRecord.getMaxTelNoLength(PhoneBookRecord.ALL_MEMORY);

Sample of code for calling of ‘getMaxEmailLength ()’ method:

int maxEmailLength =

PhoneBookRecord.getMaxEmailLength();

Sample of code for calling of ‘getIndexBySpeedNo(int speedNo, int sortOrder)’ method:

int speedNo = 1;

index = PhoneBookRecord.getIndexBySpeedNo(speedNo, PhoneBookRecord.SORT_BY_NAME);

Sample of code for calling of ‘getNewSpeedNo(int num, int device)’ method:

int speedNo = 1; int speedNo_phone = PhoneBookRecord.getNewSpeedNo(speedNo, PhoneBookRecord.PHONE_MEMORY);

int speedNo_sim = PhoneBookRecord.getNewSpeedNo(speedNo, PhoneBookRecord.PHONE_MEMORY);

int speedNo_all = PhoneBookRecord.getNewSpeedNo(speedNo, PhoneBookRecord.PHONE_MEMORY);

Sample of code for calling of ‘getDeviceType(int speedNo)’ method:

int speedNo = 1;

int type = PhoneBookRecord.getDeviceType(speedNo);

Sample of code for calling of ‘setPrimary(int index, int sortOrder)’ method:

int index = 1;

PhoneBookRecord.setPrimary(index, PhoneBookRecord.SORT_BY_NAME);

Image 72
Contents Technical Manual Table of Contents Lcdui JAD Attributes Introduction PurposeAudience DisclaimerReferences Revision History Definitions, Abbreviations, AcronymsDate Name Reason Acronym DescriptionDocument Overview Introduction J2ME Introduction Java 2 Platform, Micro Edition J2MEMotorola J2ME Platform Resources AvailableDescription Display NetworkingFile & RMS Java VMDeveloping and Packaging J2ME Applications Guide to Development in J2MEIntroduction to Development Page OTA Procedure InstallationDownloading Applications Program and Data space notes Java Application Installer/De-Installer Jaid Starting ApplicationsExiting Applications Error Checks Launching Web Session for Http DownloadDownloading MIDlets XML Screen Renderings BombMan is back, now on your Taichi series of handsets Taichi handset New Games Application Management MIDlet LifecycleMIDlet Suite Installation MIDlet Suite De-installation MIDlet Suite Updating DestroyAppMethod Caller PurposeStartApp or the pauseApp Using startApp Java System MIDlet Control of MIDlet State TransitionsPage Network API Network ConnectionsClass Descriptions IOException when it detects a time-out condition URL FormatTCP Sockets UDP SocketsImplementation Notes Network API Lcdui DescriptionLcdui Gaming API and Sound Functional DescriptionClass Hierarchy Using BackgroundMusic BackgroundMusic ClassBackgroundMusic Methods Gaming API containing a sound APIGameScreen Class GameScreen FieldsGameScreen Methods Public int getKeyStatesInformation, disabling key events can improve performance Using GameScreen GameScreenImageUtil Class ImageUtil FieldsImageUtil Methods Using ImageUtil RgbDataPalleteImage Class PalleteImage ConstructorPalleteImage Methods Using PalleteImage Public void setTransparentIndexint index throwsUsing Static and Animated Tiles PlayField ClassUsing Sprites Defining View WindowsPlayField Constructor 2N+1 2N + PlayField Methods Public void addSpriteSprite s throwsPage Public boolean collidesWithAnyTileSprite s throws Using PlayField PlayFieldUsing SoundEffect SoundEffect ClassSprite Class SoundEffect MethodsAnimation Frames Sprite DrawingSprite Constructor Sprite Methods Page Public final void drawGraphics g throws Using Sprite FileFormatNotSupportedExceptionSprites Java Gaming Sound API Max Midi Extension SupportFileFormatNotSupportedException Constructors Java Gaming Sound APIVibe and Backlight Vibe and Backlight APIOverview Creating a MessageSending a Message PermissionsJAD Attributes JAD AttributesMandatory attributes for manifest files MIDlet-Name Record Management System Class DescriptionCode Examples RecordStoreTips CaveatsPhonebook Access Phonebook Access APIPhonebook Access API Permissions Sample of code to create object of PhoneBookRecord classSimmemory 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 ITAP Intelligent Keypad Text Entry APIAppendix a Key Mapping Key Mapping for the C370, C450, and C550Center Select END Appendix B Memory Management Calculation Available MemoryOnline FAQ Appendix CAppendix D Spec Sheets C370, C450, and C550 Spec SheetsMotorola Developer Information Tools DocumentationReferences Purchase Motorola Developer Information Tools Motorola, Inc
Related manuals
Manual 110 pages 1.04 Kb