BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 08-08-2007, 05:00 AM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Jul 2007
Model: 8800
PIN: N/A
Carrier: Vodafone
Posts: 29
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default RIM ECL Example doesn't work

Please Login to Remove!

Hello,

in our compony we installed the ECL example from RIM. but it works only with the BlackBerry WebBrowser. If i start the BBApplication frm the example i saw only a Screen with the Title.

There are now some Questions. Start the Application in the Start of Blackberry a Backgroundapp?
Here the sourcecode from the Main part
PHP Code:
    public static void main(Stringxxx91;xxx93; args) {
        if( 
args != null && args.length 0) {
            
ECLApplication theApp = new ECLApplication();
            
theApp.enterEventDispatcher();
        }
        else {
            
PushedDataListener.waitForSingleton().start();
        }
    } 

In the PushedDataListener there is the variable for the URL. Must i type there the same thing how in the WebBrowser? (http://<ip>/BES_applikation/ECL.nfs)

and the last one. There will be used StreamConnectionNotifier to connect to the Server. Is that right? I Also tried with HttpConnection but it doesn't work

Here the Code part
PHP Code:
            System.out.println("eclBackGroundThread -- running");

            
StreamConnectionNotifier notify null;
            
StreamConnection stream null;
            
InputStream input null;

            try {
                
stream = (StreamConnectionNotifier)Connector.open(LISTEN_URL); // that is the variable for the url 

                
for(;;) {

                    
                    
stream notify.acceptAndOpen();
                    
input stream.openInputStream();

                    
StringBuffer sb = new StringBuffer();
                    
int datum = -1;
                    while ( -
!= (datum input.read()) )
                    {
                        
sb.append((char)datum);
                    }
                    
stream.close();
                    
stream null;

                    
String contactData sb.toString();
                    
DataStore dataStore = new DataStore();
                    
dataStore.saveData(contactData); 
I hope you can help me with that facts.

Thx a lot
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

DAYTRONIC MAINFRAME UNIT 9005 CNC
$140.0
DAYTRONIC MAINFRAME UNIT 9005 CNC pictureTEKTRONIX AM 503 / AM503 CURRENT PROBE AMPLIFIER PLUG IN w/ TM502A MAINFRAME
$200.0
TEKTRONIX AM 503 / AM503 CURRENT PROBE AMPLIFIER PLUG IN w/ TM502A MAINFRAME pictureScientific atlantic Prisma IP mainframe with 24x ASI inputs etc
$4212.3
Scientific atlantic Prisma IP mainframe with 24x ASI inputs etc picture^^ NATIONAL INSTRUMENTS SCXI-1000 SCXI MAINFRAME W/ SCXI 1200, SCXI 1321
$150.0
^^ NATIONAL INSTRUMENTS SCXI-1000 SCXI MAINFRAME W/ SCXI 1200, SCXI 1321 pictureJDSU TESTPOINT TS-170 17 SLOT MAINFRAME CHASSIS Innocor N550-0090 TEST POINT UNI
$199.0
JDSU TESTPOINT TS-170 17 SLOT MAINFRAME CHASSIS Innocor N550-0090 TEST POINT UNI picture






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