BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 07-19-2008, 02:49 PM   #1 (permalink)
New Member
 
Join Date: Jun 2008
Model: 8120
PIN: N/A
Carrier: Airtel
Posts: 4
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Open file using appropriate application

Please Login to Remove!

Hi,

I need to write an application to download a file from a server, save it to the BB device and open it in appropriate application depending on the file type (i.e. extension).

For example if the file has extension .txt I need to launch a text viewer application which will open that file. If file is .mp3 it should get opened in a player etc. If there is no application associated with the file extension then I need to display a message saying something like "Don't know how do open the file".

I am not sure how I will launch appropriate application depending on the file type. Or will the BB OS automatically detect which application to use depending on the file extension and I just have to use some Open API?

Could someone please give me some pointer on this.

Thanks,
Yash
Offline  
Closed Thread


Thread Tools

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

OFFICE VERTICAL SBX-IP BUSINESS 9 TELEPHONE VOIP SYSTEM VOICEMAIL 6 YR WARANTY
$1999.0
OFFICE VERTICAL SBX-IP BUSINESS 9 TELEPHONE VOIP SYSTEM VOICEMAIL 6 YR WARANTY picture“INSTALLED” OFFICE BUSINESS VERTICAL SBX 10 TELEPHONE VOIP SYSTEM 6 YR WARANTY
$2489.0
“INSTALLED” OFFICE BUSINESS VERTICAL SBX 10 TELEPHONE VOIP SYSTEM 6 YR WARANTY picturePACKET8-ST-2118 VOIP 10 button Business Display ADSI Speakerphone D100144
$9.99
PACKET8-ST-2118 VOIP 10 button Business Display ADSI Speakerphone   D100144 pictureNORTEL Networks-IP Phone 2002 VOIP Charcoal Office Phone NTDU91 D100150
$9.99
NORTEL Networks-IP Phone 2002 VOIP Charcoal Office Phone NTDU91  D100150 picturePanasonic 4-Channel VoIP Gateway Card kx-tda-3480
$350.0
Panasonic 4-Channel VoIP Gateway Card kx-tda-3480 picture






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