|
![Closed Thread](http://cdn1.blackberryforums.com/images/element/buttons_blue/threadclosed.gif) |
01-26-2007, 10:42 AM
|
#1
|
Thumbs Must Hurt
Join Date: Jan 2007
Model: 8800
Carrier: Orange
Posts: 181
|
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
|
|
01-27-2007, 04:58 PM
|
#2
|
Talking BlackBerry Encyclopedia
Join Date: Jan 2007
Location: Kharkov, Ukraine
Model: 8300
Carrier: N/A
Posts: 237
|
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
|
|
01-29-2007, 03:47 AM
|
#3
|
Thumbs Must Hurt
Join Date: Jan 2007
Model: 8800
Carrier: Orange
Posts: 181
|
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
|
|
01-29-2007, 05:25 AM
|
#4
|
CrackBerry Addict
Join Date: Jun 2005
Location: Manchester, UK
Model: BOLD
Carrier: t-mobile
Posts: 714
|
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
|
|
01-29-2007, 05:28 AM
|
#5
|
Thumbs Must Hurt
Join Date: Jan 2007
Model: 8800
Carrier: Orange
Posts: 181
|
OK thanks
|
Offline
|
|
01-29-2007, 09:10 AM
|
#6
|
BBF Moderator
Join Date: Mar 2005
Location: Northern California
Model: 9700
PIN: Agaboobie
Carrier: AT&T
Posts: 5,518
|
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.
|
Offline
|
|
02-05-2007, 04:03 AM
|
#7
|
Thumbs Must Hurt
Join Date: Jan 2007
Model: 8800
Carrier: Orange
Posts: 181
|
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
|
|
02-07-2007, 12:09 PM
|
#8
|
Thumbs Must Hurt
Join Date: Jan 2007
Model: 8800
Carrier: Orange
Posts: 181
|
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
|
|
02-07-2007, 12:27 PM
|
#9
|
Thumbs Must Hurt
Join Date: Feb 2007
Location: CO
Model: 8700g
Posts: 188
|
Provider
Hey, do you have t-Mobile or verision wireless?
------------------------------------------------
T-Mobile
8700g
__________________
Crackberry, the legal drug.
T-Mobile
8700g
|
Offline
|
|
02-07-2007, 12:28 PM
|
#10
|
Thumbs Must Hurt
Join Date: Jan 2007
Model: 8800
Carrier: Orange
Posts: 181
|
O2 (UK) 8700g
|
Offline
|
|
02-07-2007, 03:19 PM
|
#11
|
Talking BlackBerry Encyclopedia
Join Date: Jan 2007
Location: Kharkov, Ukraine
Model: 8300
Carrier: N/A
Posts: 237
|
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
|
|
02-07-2007, 03:26 PM
|
#12
|
Thumbs Must Hurt
Join Date: Feb 2007
Location: CO
Model: 8700g
Posts: 188
|
re
Quote:
Originally Posted by bdowling
O2 (UK) 8700g
|
Ever heard of OZ Instant Messaging?
__________________
Crackberry, the legal drug.
T-Mobile
8700g
|
Offline
|
|
02-08-2007, 04:16 AM
|
#13
|
Thumbs Must Hurt
Join Date: Jan 2007
Model: 8800
Carrier: Orange
Posts: 181
|
Nope? Is it an application? If so it doesn't solve any of my problems, because users could have any IM client installed
|
Offline
|
|
02-08-2007, 06:45 AM
|
#14
|
Thumbs Must Hurt
Join Date: Feb 2007
Location: CO
Model: 8700g
Posts: 188
|
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
|
|
02-08-2007, 06:52 AM
|
#15
|
Thumbs Must Hurt
Join Date: Jan 2007
Model: 8800
Carrier: Orange
Posts: 181
|
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
|
|
02-08-2007, 07:54 AM
|
#16
|
CrackBerry Addict
Join Date: Jun 2005
Location: Manchester, UK
Model: BOLD
Carrier: t-mobile
Posts: 714
|
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
|
|
02-08-2007, 09:44 PM
|
#17
|
Thumbs Must Hurt
Join Date: Feb 2007
Location: CO
Model: 8700g
Posts: 188
|
?
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
|
|
02-09-2007, 02:24 AM
|
#18
|
CrackBerry Addict
Join Date: Jun 2005
Location: Manchester, UK
Model: BOLD
Carrier: t-mobile
Posts: 714
|
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
|
|
02-09-2007, 02:54 AM
|
#19
|
BBF Moderator
Join Date: Jun 2005
Model: Z30
OS: 10.2.1.x
PIN: s & needles
Carrier: AT&T
Posts: 34,720
|
To All: User CP >Buddy/Ignore List >Add to Ignore List
|
Offline
|
|
02-09-2007, 04:09 AM
|
#20
|
Thumbs Must Hurt
Join Date: Jan 2007
Model: 8800
Carrier: Orange
Posts: 181
|
Thanks for the tip John!
|
Offline
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
![MSA 10042621 Altair 5X Sampling Probe Straight Air-Line 1' Color Black (E2) picture](/parts/img/g/0JIAAOSwlehl0qiU/s-l225/MSA-10042621-Altair-5X-Sampling-Probe-Straight-Air.jpg)
MSA 10042621 Altair 5X Sampling Probe Straight Air-Line 1' Color Black (E2) $295.00
![🔅MSA altair 4X multi gas Meter Monitor detector, (O2,H2S,CO,LEL) & Charger picture](/parts/img/g/LVkAAOSwwt9l-0Px/s-l225/-MSA-altair-4X-multi-gas-Meter-Monitor-detector-O2.jpg)
🔅MSA altair 4X multi gas Meter Monitor detector, (O2,H2S,CO,LEL) & Charger $399.99
![MSA Sensor Kit ALTAIR Pro ALTAIR 5X 10080222 picture](/parts/img/g/dssAAOSwF8Flcp9H/s-l225/MSA-Sensor-Kit-ALTAIR-Pro-ALTAIR-5X-10080222.jpg)
MSA Sensor Kit ALTAIR Pro ALTAIR 5X 10080222 $332.65
![MSA ALTAIR 4XR 10178557 Multigas Detector, (LEL, O2, H2S & CO), Charcoal case picture](/parts/img/g/IzMAAOSwjr1mNOOE/s-l225/MSA-ALTAIR-4XR-10178557-Multigas-Detector-LEL-O2-H.jpg)
MSA ALTAIR 4XR 10178557 Multigas Detector, (LEL, O2, H2S & CO), Charcoal case $679.00
![Altair WBS-202 Dual channel wireless intercom base station picture](/parts/img/g/RP8AAOSwhadlTJ-F/s-l225/Altair-WBS-202-Dual-channel-wireless-intercom-base.jpg)
Altair WBS-202 Dual channel wireless intercom base station $1350.00
![MSA altair 4X multi gas meter Monitor detector, O2,H2S,CO,LEL Charger calibrated picture](/parts/img/g/JBwAAOSwCU1Yyiyn/s-l225/MSA-altair-4X-multi-gas-meter-Monitor-detector-O2-.jpg)
MSA altair 4X multi gas meter Monitor detector, O2,H2S,CO,LEL Charger calibrated $450.00
|
|