Motorola E680 Technical Manual - Page 39
Sample of code for calling of 'flashBacklightint' method of Display class
View all Motorola E680 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 39 highlights
10 Vibe and Backlight API Sample of code for calling of 'flashBacklight(int)' method of Display class: int duration = 30000;// 30 seconds; java.lang.boolean returnValue = display.flashBacklight(duration); if (returnValue != false) { System.out.println("Invoke flashBacklight method with parameter = " + duration + ", method returns : " + returnValue); } else { System.out.println("Failed: invoke flashBacklight(" + duration + "), method returns false"); } 39
10
Vibe and Backlight API
39
Sample of code for calling of ‘flashBacklight(int)’ method of Display class:
int duration = 30000;// 30 seconds;
java.lang.boolean returnValue =
display.flashBacklight(duration);
if (returnValue != false) {
System.out.println("Invoke flashBacklight method with
parameter = " + duration
+ ", method returns : " +
returnValue);
}
else {
System.out.println("Failed: invoke flashBacklight(" +
duration + "), method returns false");
}