BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 11-04-2010, 05:38 AM   #1 (permalink)
New Member
 
Join Date: Nov 2010
Model: 7600
PIN: N/A
Carrier: StarHub
Posts: 1
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default How can i use httpConnection with MDS in blackberry device

Please Login to Remove!

What was wrong with my coding?


public Employee[] readDataFromExcel()
{
HttpConnection conn=null;

String[] nameList=null;
InputStream is=null;

try {
conn = (HttpConnection )Connector.open(fileName+";deviceside=false", Connector.READ_WRITE,false);

is = conn.openInputStream();
employee=rawData(getData(is));


} catch (Exception ex1) {

try {
conn = (HttpConnection )Connector.open(fileName+";deviceside=false", Connector.READ_WRITE,true);
is = conn.openInputStream();
employee=rawData(getData(is));


} catch (Exception ex2) {

try {
conn = (HttpConnection )Connector.open(fileName+";deviceside=true", Connector.READ_WRITE,true);
is = conn.openInputStream();
employee=rawData(getData(is));


} catch (Exception ex3) {
try {
conn = (HttpConnection )Connector.open(fileName+";interface=wifi", Connector.READ_WRITE,true);
is = conn.openInputStream();
employee=rawData(getData(is));


} catch (Exception ex4) {
is= getClass().getResourceAsStream(FileName1);
employee=rawData(getData(is));

}

}
}
} finally {
try {
if (conn != null) {
conn.close();
}
if (is != null) {
is.close();
}
} catch (Exception e) {

}
}

return employee;
}
Offline  
Old 11-04-2010, 06:33 AM   #2 (permalink)
Spam Reporter
 
dc/dc's Avatar
 
Join Date: Oct 2005
Location: IAD
Model: 6230
Carrier: Voicestream
Posts: 14,524
Post Thanks: 214
Thanked 341 Times in 307 Posts
Default

You need to check the Developer section.
__________________
I h8 txtspk.
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

Milwaukee 600 Volt AC DC Clamp Meter HVAC/R Voltage Tester Digital Multimeter
$279.88
Milwaukee 600 Volt AC DC Clamp Meter HVAC/R Voltage Tester Digital Multimeter pictureLot of 2 25800VAC (25.8kV) 100A Medium Voltage E_R Fuses Littelfuse 100E-2C-25.8
$350.0
Lot of 2 25800VAC (25.8kV) 100A Medium Voltage E_R Fuses Littelfuse 100E-2C-25.8 picture Tyco W31-X2M1G-2 Circuit Breaker 2A 250VAC 50VDC Voltage Rating NEW
$22.95
 Tyco W31-X2M1G-2 Circuit Breaker 2A 250VAC 50VDC Voltage Rating NEW pictureUEI DL259 Voltage Meter Electrician HVAC Tech Amps Ohms Microfarads Continuity
$40.5
UEI DL259 Voltage Meter Electrician HVAC Tech Amps Ohms Microfarads Continuity pictureMIC29205.0BT Micrel 5VDC 400mA Voltage Regulator LDO IC TO-220 - NOS Qty 9
$5.99
MIC29205.0BT Micrel 5VDC 400mA Voltage Regulator LDO IC TO-220 - NOS Qty 9 picture






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