BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 01-26-2007, 10:42 AM   #1
bdowling
Thumbs Must Hurt
 
Join Date: Jan 2007
Model: 8800
Carrier: Orange
Posts: 181
Default Launching 3rd Party IM Application

Please Login to Remove!

Hi all,

I am writing an application that I'd like to be able to launch 3rd party IM clients for different networks, such as AIM, YIM and MSN, and other networks if clients exist.

Is there any mechanism for finding out what applications exist on the device, and what URLs they can handle? And if so is there a standard way to invoke third party applications?

...or would a better approach be to allow the user to select the application they would like certain URLs to be launched with?

Thanks in advance, Ben
Offline  
Old 01-27-2007, 04:58 PM   #2
Skipper_Joe
Talking BlackBerry Encyclopedia
 
Skipper_Joe's Avatar
 
Join Date: Jan 2007
Location: Kharkov, Ukraine
Model: 8300
Carrier: N/A
Posts: 237
Default

Hi

You can get list of installed modules and ApplicationDescriptors from net.rim.device.api.system.CodeModuleManager and check if some specific module is installed on device.
Then you can launch app using net.rim.device.api.system.ApplicationManager class, see runApplication() methods.

Is it what you want?

Andrey Eydelman
Offline  
Old 01-29-2007, 03:47 AM   #3
bdowling
Thumbs Must Hurt
 
Join Date: Jan 2007
Model: 8800
Carrier: Orange
Posts: 181
Default

That is definately useful, thanks.

That may have to be the way I do it, but ideally I'd like to be able to check "is there any application that handles aim urls?" - and get a list of applications. Is this possible?

Thanks again, Ben
Offline  
Old 01-29-2007, 05:25 AM   #4
jfisher
CrackBerry Addict
 
Join Date: Jun 2005
Location: Manchester, UK
Model: BOLD
Carrier: t-mobile
Posts: 714
Default

no, you'll have to code that yourself with a list of apps and check using the method described above.
__________________
new job doesn't allow a public profile - please do not contact this user with questions, you will not get a response. good luck!
Offline  
Old 01-29-2007, 05:28 AM   #5
bdowling
Thumbs Must Hurt
 
Join Date: Jan 2007
Model: 8800
Carrier: Orange
Posts: 181
Default

OK thanks
Offline  
Old 01-29-2007, 09:10 AM   #6
Stinsonddog
BBF Moderator
 
Stinsonddog's Avatar
 
Join Date: Mar 2005
Location: Northern California
Model: 9700
PIN: Agaboobie
Carrier: AT&T
Posts: 5,518
Default

just an fyi in terms of functionality. I have switched to the Yahoo RIM client after I got the service book. Why. The dial from home screen shortcut makes it so easy. I even disabled Pocket Day to be able to use that feature.
__________________
Shortcuts Rule!! Download Link:[Stinsonddog's Blackberry Tips ] GET TORCHED
@ Stinsonddog
Offline  
Old 02-05-2007, 04:03 AM   #7
bdowling
Thumbs Must Hurt
 
Join Date: Jan 2007
Model: 8800
Carrier: Orange
Posts: 181
Default

Having done a little more reading I've seen the 'service records' [EDIT: Service Book]. Is there anyway to use these to determine if an IM client is installed/can handle IM connections?

TIA, Ben

Last edited by bdowling; 02-05-2007 at 04:45 AM..
Offline  
Old 02-07-2007, 12:09 PM   #8
bdowling
Thumbs Must Hurt
 
Join Date: Jan 2007
Model: 8800
Carrier: Orange
Posts: 181
Default

I don't think I'm going to be able to find out what applications can handle what URIs from the service book.

I now know how to find out what applications are installed using the Application Manager. Therefore I can get the user to choose which application to launch a URI with. However, how can I pass the URI to the application, and will I have any way of knowing if the invoke was successful or not?

For example, say I have a URI: ymsgr://yahoo_chatter - I want the user to be able to launch it from inside my app. I present them with a list of apps. They could choose an installed IM client. How would I get that to start chatting to yahoo_chatter. They could choose something completely wrong, like the phone.

Is there any way to filter applications based on URIs they can handle?
Offline  
Old 02-07-2007, 12:27 PM   #9
virusboy286
Thumbs Must Hurt
 
virusboy286's Avatar
 
Join Date: Feb 2007
Location: CO
Model: 8700g
Posts: 188
Cool Provider

Hey, do you have t-Mobile or verision wireless?
------------------------------------------------
T-Mobile
8700g
__________________
Crackberry, the legal drug.

T-Mobile
8700g
Offline  
Old 02-07-2007, 12:28 PM   #10
bdowling
Thumbs Must Hurt
 
Join Date: Jan 2007
Model: 8800
Carrier: Orange
Posts: 181
Default

O2 (UK) 8700g
Offline  
Old 02-07-2007, 03:19 PM   #11
Skipper_Joe
Talking BlackBerry Encyclopedia
 
Skipper_Joe's Avatar
 
Join Date: Jan 2007
Location: Kharkov, Ukraine
Model: 8300
Carrier: N/A
Posts: 237
Default

Ben

As far as I know, there is no general way to check if application is able to handle URI. You should implement custom logic for each IM application. Also there is no unified way to pass parameters to application. It is possible to define main() arguments when you use ApplicationManager.launch() or ApplicationManager.runApplication() methods, but it depends on application vendors, if they provide API for external applications or not.

Regards,
Andrey
Offline  
Old 02-07-2007, 03:26 PM   #12
virusboy286
Thumbs Must Hurt
 
virusboy286's Avatar
 
Join Date: Feb 2007
Location: CO
Model: 8700g
Posts: 188
Lightbulb re

Quote:
Originally Posted by bdowling
O2 (UK) 8700g
Ever heard of OZ Instant Messaging?
__________________
Crackberry, the legal drug.

T-Mobile
8700g
Offline  
Old 02-08-2007, 04:16 AM   #13
bdowling
Thumbs Must Hurt
 
Join Date: Jan 2007
Model: 8800
Carrier: Orange
Posts: 181
Default

Nope? Is it an application? If so it doesn't solve any of my problems, because users could have any IM client installed
Offline  
Old 02-08-2007, 06:45 AM   #14
virusboy286
Thumbs Must Hurt
 
virusboy286's Avatar
 
Join Date: Feb 2007
Location: CO
Model: 8700g
Posts: 188
Default maybe, maybe noe

OZ instant Messaging is four clients in one wrap, use the coding of the app to redifine the source coding to meet your needs. Using base software sometimes cuts the frustration and time in making your own program. Using bits and pieces of source code is fine as long as the coding fits the purpose. When I usually did this I strung multiple program source codes to create a unquie app for myself. As for the ULI, and service books, upload the service book and mix it with the coding, though I can't tell you how just involve the ULI and the Service Book to look for a certain function
That help?
__________________
Crackberry, the legal drug.

T-Mobile
8700g
Offline  
Old 02-08-2007, 06:52 AM   #15
bdowling
Thumbs Must Hurt
 
Join Date: Jan 2007
Model: 8800
Carrier: Orange
Posts: 181
Default

Sorry, I don't think I quite understand.

Do you mean use the source code of "Oz IM", and build it into my own application?

That isn't really what I want to do. I don't want to create an IM app. I am creating a launcher application, that I want to be able to launch external applications based on a URI. So if the user wants to launch "ymsgr://chatter" then a Yahoo IM client is launched and starts chatting to the user "chatter".
Offline  
Old 02-08-2007, 07:54 AM   #16
jfisher
CrackBerry Addict
 
Join Date: Jun 2005
Location: Manchester, UK
Model: BOLD
Carrier: t-mobile
Posts: 714
Default

ignore this virusboy286 user - he has absolutely no idea about blackberry programming (not meaning to flame - but you're confusing every thread you post in)
__________________
new job doesn't allow a public profile - please do not contact this user with questions, you will not get a response. good luck!

Last edited by jfisher; 02-08-2007 at 08:29 AM..
Offline  
Old 02-08-2007, 09:44 PM   #17
virusboy286
Thumbs Must Hurt
 
virusboy286's Avatar
 
Join Date: Feb 2007
Location: CO
Model: 8700g
Posts: 188
Default ?

Quote:
Originally Posted by jfisher
ignore this virusboy286 user - he has absolutely no idea about blackberry programming (not meaning to flame - but you're confusing every thread you post in)
Okay, confuse I may, however, the problem I have is, don't you have to write the source coding on the PC before you enter it on the BB? Sorry to ask, but, the code you write wether it's for a Treo or a server, the base coding you write MUST be the same. Before you modify the source code for the platform to fit the app you want. Now as for the launcher, again your clients must have the ablity to access only the app from the menu they want. You want them to go Yahoo Chatter, okay they still need a program to go to the IM orginally, therefore the Links to the Chatter is required. URI is okay, along with the service book. However, don't make a specific table, have them post their own or design a HRT that everyone can use. I seriously hope this is helpful. And I know Visual basic. You can write BB programs on Visual Basic, so I should know what I'm talking about.
__________________
Crackberry, the legal drug.

T-Mobile
8700g
Offline  
Old 02-09-2007, 02:24 AM   #18
jfisher
CrackBerry Addict
 
Join Date: Jun 2005
Location: Manchester, UK
Model: BOLD
Carrier: t-mobile
Posts: 714
Default

clearly.
__________________
new job doesn't allow a public profile - please do not contact this user with questions, you will not get a response. good luck!
Offline  
Old 02-09-2007, 02:54 AM   #19
John Clark
BBF Moderator
 
John Clark's Avatar
 
Join Date: Jun 2005
Model: Z30
OS: 10.2.1.x
PIN: s & needles
Carrier: AT&T
Posts: 34,720
Default

To All: User CP >Buddy/Ignore List >Add to Ignore List
Offline  
Old 02-09-2007, 04:09 AM   #20
bdowling
Thumbs Must Hurt
 
Join Date: Jan 2007
Model: 8800
Carrier: Orange
Posts: 181
Default

Thanks for the tip John!
Offline  
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


Lot of 2 IBM Correctable Ribbon Cassette Black 1299300 NOS Original OEM picture

Lot of 2 IBM Correctable Ribbon Cassette Black 1299300 NOS Original OEM

$12.00



OEM IBM Selectric II Key Tops & Parts picture

OEM IBM Selectric II Key Tops & Parts

$49.95



New 2 Sets of 2 (4) keys total OEM 9952 IBM Keys for Cash Drawers Displays Locks picture

New 2 Sets of 2 (4) keys total OEM 9952 IBM Keys for Cash Drawers Displays Locks

$14.99



IBM CASH DRAWER KEY'S #9960 SET OF 2 KEYS. AFTERMARKET KEY'S SAME AS OEM 33G3360 picture

IBM CASH DRAWER KEY'S #9960 SET OF 2 KEYS. AFTERMARKET KEY'S SAME AS OEM 33G3360

$18.00



OEM  IBM Type 5441 WheelWriter 3 1356658 1362400-02 Main Boards Tested Working picture

OEM IBM Type 5441 WheelWriter 3 1356658 1362400-02 Main Boards Tested Working

$49.99



IBM Genuine OEM Printer Filler Wide Credit Card Holder 10N1259 picture

IBM Genuine OEM Printer Filler Wide Credit Card Holder 10N1259

$24.79







Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.