Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Posts: 35
Registered: ‎11-26-2008
My Device: 8100
Accepted Solution

how can i open phone dialer from my app

hi,

 

i want to open blackberry's browser, email app, map, and phone dialer from my app

 

how can i do this?

Developer
Posts: 5,339
Registered: ‎09-20-2008
My Device: ***
My Carrier: ***

Re: how can i open phone dialer from my app

Check the link below:

 

How to invoke applications

Developer
Posts: 144
Registered: ‎12-20-2008
My Device: Not Specified

Re: how can i open phone dialer from my app

I tried the example but as usual i need some help with syntax

i declare in the main screen

private appinvo _OpenPhoneEmail;

 

and in the menu calll

private MenuItem aplicacion = new MenuItem("OpenPhone",1100,10) {
       public void run()  {
      
            appinvo _OpenPhoneEmail = new appinvo();
            _OpenPhoneEmail(); // HOW I INVOKE
}
};

 

 

 

 

 

 

 

 

C:\Blackberry ElRecreo\KnowledgeBaseBB-7-15-08\persistentstoredemo\MeetingScreen.java:153: cannot find symbol
symbol: method _OpenPhoneEmail()
            _OpenPhoneEmail();
            ^
1 error
Error!: Error: java compiler failed: javac -source 1.3 -target 1.3 -g -O -d C:\DOCUME~1\Personal\CONFIG~1\Temp\rapc_0ee2ecbe.dir -bootcl ...
Error while building project

Developer
Posts: 5,339
Registered: ‎09-20-2008
My Device: ***
My Carrier: ***

Re: how can i open phone dialer from my app

Hi, Ramon.

 

You've created an AppInvo class instance.

 

appinvo _OpenPhoneEmail = new appinvo();

 

_OpenPhoneEmail is not a method to be called. It is a appinvo class instance.

 

It cannot be invoked via _OpenPhoneEmail(); 

 

You should call one of public method of this class to do something.

Developer
Posts: 144
Registered: ‎12-20-2008
My Device: Not Specified

Re: how can i open phone dialer from my app

i Understand this but which is the method should i call to see the main screen of the class pushed to main window in the method list tree only appears main(string arg[]) and later in innovationscreen another ones the heading of the class is as follows how should i invoke in order to view the other scrren

 public static void main(String arg[]) {
        //create a new instance of the application
        //and start the application on the event thread
        appinvo application = new appinvo();
        application.enterEventDispatcher();
    }

    public appinvo () {
        pushScreen(new InnovactionScreen());//creating a screen
    }

}

thnks for reply and happy new year

Developer
Posts: 5,339
Registered: ‎09-20-2008
My Device: ***
My Carrier: ***

Re: how can i open phone dialer from my app

To show screen you've already called pushScreen.

 

Ramon, please look at  this link

 

And pay your attention this link: 

 

http://na.blackberry.com/eng/deliverables/3299/JDE_4.5_Fundamentals_Guide.pdf

 

It will prevent you from doing wrong steps in your development.

Developer
Posts: 144
Registered: ‎12-20-2008
My Device: Not Specified

Re: how can i open phone dialer from my app

thank but you keep me driving to learning resources i am 55 and i do not have time to do it just i want to develop my own aplication and once i know the several issues i can do it easily trought other examples

 if i add  

_OpenPhoneEmail.getActiveScreen(); // open directly the new scrren without being called from the menu and i get warning on

Exported static routine: .main(String[]) is multiply defined.

Developer
Posts: 5,339
Registered: ‎09-20-2008
My Device: ***
My Carrier: ***

Re: how can i open phone dialer from my app

Hi, Ramon.

 

I do not know a way - how you can write a good application without learning the technology.

 


 

 

 

Developer
Posts: 35
Registered: ‎11-26-2008
My Device: 8100

Re: how can i open phone dialer from my app

i got the phone dialer and map by following

 

Invoke.invokeApplication( Invoke.APP_TYPE_PHONE, new PhoneArguments() );
Invoke.invokeApplication( Invoke.APP_TYPE_MAPS, new MapsArguments() );

 

 

you have to import couple of lib for this...

 

like

 

import net.rim.blackberry.api.invoke.*;

 

i just above code in main class constructor...  and i make a object of my main class 

so when i run my code... phone or map directly opens

Developer
Posts: 35
Registered: ‎11-26-2008
My Device: 8100

Re: how can i open phone dialer from my app

Thanks for your responses...

 

i just wondered when saw possible apps to be accessed from our app

 

there are limits

 

i cudn't find others those i want

 

i want to open email app like in window os

when we click on any email address, it opens in default email client app

 

so i think there should be same thing in BB

 

pls help to find... 

 

Thanks in advance