I need to have a tooltip (as shown in below fig) at bottom of my blackberry screen ,tooltip consists with two buttons with image as background for each button .and this tooltip is visible/invisible to user only when menu button is pressed.and by pressing this buttons in tooltip user should be directed to other screen.

sir i tried below code but clicking on button over the tooltip it is not navigating to secondscreen.what mistake i have done.
Myscreen
public final class MyScreen extends MainScreen
{
public boolean onMenu(int instance)
{
int action = Toolbar.push();
if(action == Toolbar.ACTION_BUTTON1)
{
Dialog.alert(" " );
// UiApplication.getUiApplication().pushScreen(new
SecondScreen());
}
return false;
}
public MyScreen()
{
setTitle("MyTitle");
}
}
secondscreen
public class SecondScreen extends MainScreen {
public SecondScreen()
{
setTitle("listview");
}
}
I have found that when you need a custom clickable field in Blackberry, such as a bitmap with text, it is easier to create a single field that handles the click events. This means extending a field, and overriding the
layout, andpaintmethods. Trying to do the same thing with nested managers and fields usually gives issues when it comes to navigating with the trackpad or listening to touch events (because a manager is not focusable unless it has a focusable child).In a previous post I made, I gave examples of how to create button fields based on an example from the Blackberry Developer site. You'll need
BaseButtonandImageSubtitleButtonfrom my post.Once you have those you should be able to add a status bar to your screen.
Please note that referencing image resources like this isn't ideal, and you should make a resource manager with constants, as opposed to using inline image names.
Update: Since you want this toolbar to replace your native bb menu, you'll have to override the
onMenumethod which is triggered when the menu button is pressed. Because you also want the menu to disappear when clicking away from the menu, you are going to have to make a new Screen, with a transparent Background, with toolbar as status.Toolbar.java
Now when you want to use this toolbar on your screen, override the
onMenuof the screen like this