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

Native Development

Reply
Developer
ignites
Posts: 466
Registered: ‎04-11-2012
My Device: Bold 9900

Invoke Email/Phone Calls

I am looking for a sample to teach me how to invoke email or phone calls. I dont really see anything at the moment from a scan of the API/Documentation and would love it if someone could direct me to some code or some easy to understand stuff =). Much thanks in advance!


Developer for easyDial for BlackBerry Bold & inLink for BlackBerry PlayBook
Find me online via twitter, or on the techfruits.com webpage. Please hit the like button below if what I said helped!
Developer
georg22
Posts: 247
Registered: ‎11-22-2011
My Device: Blackberry Playbook

Re: Invoke Email/Phone Calls

I have asked someone from the team for the same, some easy to understand examples for the most common usecases, like email, phonecall, and browser invokation. And he told me, that they are already preparing these examples and a detailed documentation will come (soon?!).

For the moment there is a more general examples here.

So lets be patient :smileyfrustrated:

Developer
ignites
Posts: 466
Registered: ‎04-11-2012
My Device: Bold 9900

Re: Invoke Email/Phone Calls

Its kinda of hard as well because email, sms and phone calls all are currently disabled, hard to know if you did it right! =/


Developer for easyDial for BlackBerry Bold & inLink for BlackBerry PlayBook
Find me online via twitter, or on the techfruits.com webpage. Please hit the like button below if what I said helped!
Developer
ignites
Posts: 466
Registered: ‎04-11-2012
My Device: Bold 9900

Re: Invoke Email/Phone Calls

bump!


Developer for easyDial for BlackBerry Bold & inLink for BlackBerry PlayBook
Find me online via twitter, or on the techfruits.com webpage. Please hit the like button below if what I said helped!
Developer
Ebscer
Posts: 875
Registered: ‎08-31-2009
My Device: 9530, 9630, 9800, 8530, 9900, 9810, 9930, PlayBook, Dev Alpha

Re: Invoke Email/Phone Calls

I also can not get anything with the InvokeManager to compile.

 

I am using the following method, and can't find anything wrong with it...

void App::invoke()
{
	InvokeManager* m_invokeManager = new InvokeManager(this);
    InvokeRequest request;

    request.setAction("__All");
    request.setMimeType("text/html");
    request.setUri("http://news.ebscer.com/");

    m_invokeManager->invoke(request);
}

 


Read my thoughts on BlackBerry Development at news.ebscer.com
Developer
greenback
Posts: 535
Registered: ‎10-17-2010
My Device: (BlackBerry Z10)-> Q10/Passport Dual Use

Re: Invoke Email/Phone Calls

@Ebscer

 
Not sure if this will do the trick for you but


Try replacing 

request.setAction("__All");


with:

request..setAction("bb.action.OPEN");

 

Wht is the string "_All" supporsed to do?
Did that work?

:Cool2:

Developer
Ebscer
Posts: 875
Registered: ‎08-31-2009
My Device: 9530, 9630, 9800, 8530, 9900, 9810, 9930, PlayBook, Dev Alpha

Re: Invoke Email/Phone Calls

That was just something I had blindly copied from another example. However the real issue appears to be related to the line

InvokeManager* m_invokeManager = new InvokeManager(this);

 When ever this line of code is included the code will refuse to build (without giving an error message).


Read my thoughts on BlackBerry Development at news.ebscer.com
Developer
Ebscer
Posts: 875
Registered: ‎08-31-2009
My Device: 9530, 9630, 9800, 8530, 9900, 9810, 9930, PlayBook, Dev Alpha

Re: Invoke Email/Phone Calls

I have found the problem. I needed to add

LIBS += -lbbsystem

 to my .pro file


Read my thoughts on BlackBerry Development at news.ebscer.com
Developer
ignites
Posts: 466
Registered: ‎04-11-2012
My Device: Bold 9900

Re: Invoke Email/Phone Calls

heres to hopeing for an invoke email/phone code now 


Developer for easyDial for BlackBerry Bold & inLink for BlackBerry PlayBook
Find me online via twitter, or on the techfruits.com webpage. Please hit the like button below if what I said helped!
Developer
jtegen
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10

Re: Invoke Email/Phone Calls

Cascades has more information about this then the other environments. Try this:

https://developer.blackberry.com/cascades/documentation/device_platform/invocation/invoking_core_app...

As for email, just invoke a URL request and use "mailto" commands. Until invocation has something published for for features.