UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"UIAlertView"
message:@"Hi There!" delegate:self
cancelButtonTitle:@"OK"
otherButtonTitles: nil];
[alert show];
[alert release];
X-RIM-Push-Title X-RIM-Push-Type
X-RIM-Push-Channel-ID X-RIM-Push-UnRead-Icon-URL X-RIM-Push-Read-Icon-URL
"The X-Rim-Push-Title" header holds the title that will appear on the home screen of the device for a Browser Channel Push, or in the subject of the message of a Browser Message Push. The "X-RIM-Push-Type" header holds the value that represents the type of push being sent. Possible values are:
This code snippet demonstrates how to display a manufacturer disclaimer when an application is being installed. This behavior is required at least for VoIP applications that are meant to be sent to Symbian for signing.
This snippet can be self-signed.
This is an example of the disclaimer text by Symbian for VoIP applications:
You are about to use, which is
developed and owned by. The
manufacturer of this device shall have no liability for
any aspect of the application whatsoever, including its
performance, call routing, intellectual property rights
or support.
To display the disclaimer to the user, add the following line to the PKG file of your application:
"..\data\disclaimer.txt" - "", FILETEXT, TEXTEXITThe FILETEXT install option indicates that a file is to be displayed to the user during the installation procedure. The file itself is not installed on the target device (the target location is empty).
The TEXTEXIT install option displays a dialog box with "positive" and "negative" buttons, such as Ok and Cancel. If the dialog returns true (the user pressed Ok), the software installer continues with the installation. If the dialog returns false (the user pressed Cancel), the software installer is exited and any files that have already been installed are removed.
PhoneCall callInfo = Phone.getActiveCall();
if ( callInfo != null )
{
Telephone = callInfo.getDisplayPhoneNumber();
UiApplication.getUiApplication().invokeLater(new Runnable()
{
public void run()
{
Status.show("incoming from: "+Telephone);
}
});
.jad and .jar files to the .cod format, using the rapc command-line tool that comes with RIM's JDE. You'll find rapc in the bin directory of your JDE installation. This command converts a MIDlet named "LoginMIDlet"
You can load the resulting
rapc import="c:\BlackBerryJDE3.6\lib\net_rim_api.jar" codename=LoginMIDlet -midlet jad=LoginMIDlet.jad LoginMIDlet.jar
LoginMIDlet.cod file into your BlackBerry device from your desktop computer over a USB cable. Use the javaloader command, which can also be found in the bin directory of your JDE installation. I used this command to load LoginMIDlet.cod into my BlackBerry 7510:Once the application is loaded into the BlackBerry, you can run it just as if it were a native application. You can use javaloader to delete applications from the BlackBerry as well as to load them. This command will remove LoginMIDlet.cod from the BlackBerry:
javaloader -usb load LoginMIDlet.cod
javaloader -usb erase -f LoginMIDlet.cod
RAknKeyLock objKeyLock ;Code to Unlock the Keypad
objKeyLock.Connect();
if(!objKeyLock.IsKeyLockEnabled())
objKeyLock.EnableKeyLock();
objKeyLock.Close();
RAknKeyLock objKeyLock ;Regards,
objKeyLock.Connect();
if(objKeyLock.IsKeyLockEnabled())
objKeyLock.DisableKeyLock();
objKeyLock.Close();
PhoneCall callInfo = Phone.getActiveCall();
if ( callInfo != null) {
Telephone = callInfo.getDisplayPhoneNumber();
UiApplication.getUiApplication().invokeLater(
new Runnable() {
public void run() {
Status.show("incoming from: "+Telephone);
}
}
);
}
TRequestStatus timerStatus;
RTimer timer;
timer.CreateLocal();
timer.After(timerStatus,1000000);
User::WaitForRequest(timerStatus);
timer.Close();
This article applies to Symbian and devices P800, P802, P900, P908, P910, M600, P990, W950