views:

26

answers:

1

Hello Everyone, i have to display my custom icon/menu on incoming call screen (in jde 5.0). if anybody knew ,pls send me code..

A: 

have you take a look at phonescreendemo in your JDE5.0 demo path

C:\Program Files\Research In Motion\BlackBerry JDE 5.0.0\samples\com\rim\samples\device\phone\phonescreendemo

here is the sample code from RIM

if (PhoneScreen.isSupported()) 
{
    Phone.addPhoneListener(
        new AbstractPhoneListener() 
        {
            public void callIncoming(int callId) 
            {
                PhoneScreen ps = new PhoneScreen(callId, 
                    Application.getApplication());
                ps.add(new BitmapField(Bitmap.getBitmapResource("img/my.jpg")));
                ps.sendDataToScreen(); 
            }
        });
}

Source is in the API

Michael B.