Motorola C370 Series Technical Manual page 76

J2me developer guide
Hide thumbs Also See for C370 Series:
Table of Contents

Advertisement

Sample of code for calling of 'getUsedRecords()' method:
int usedRecs = RecentCallDialed.getUsedRecords();
Sample of code for calling of 'getNumberRecords()' method:
int numberRecs = RecentCallDialed.getNumberRecords();
Sample of code for calling of 'getMaxNameLength()' method:
int maxNameLength = RecentCallDialed.getMaxNameLength();
Sample of code for calling of 'getMaxTelNoLength()' method:
int maxTelNoLength = RecentCallDialed.getMaxTelNoLength();
Sample of code to create object of RecentCallReceived class:
String name = "Name";
String telNo = "9999999";
int type = RecentCallRecord.VOICE;
int attribute = RecentCallRecord.CALL_CONNECTED;
long time = 10000;
int duration = 3000;
int cli_type
= RecentCallReceived.CALLER_ID_NAME;
RecentCallReceived receivedRecentCall = new RecentCallReceived (name,
telNo, type, attribute, time, duration, cli_type);
Sample of code for calling of 'add()' method:
String name = "Name";
String telNo = "9999999";
int type = RecentCallRecord.VOICE;
int attribute = RecentCallRecord.CALL_CONNECTED;
long time = 10000;
int duration = 3000;
int cli_type
= RecentCallReceived.CALLER_ID_NAME;
RecentCallReceived receivedRecord = new RecentCallReceived(name, telNo,
type, attribute, time, duration, show_id);
receivedRecord.add();
Sample of code for calling of 'delete(int index)' method:
int index = 1;
RecentCallReceived.delete(1);
Sample of code for calling of 'deleteAll()' method:
RecentCallReceived.deleteAll();

Advertisement

Table of Contents
loading

This manual is also suitable for:

C450 seriesC550 series

Table of Contents