A pack of component allows the simulator device to another?

I have several packs of component installed in Eclipse. Is it possible to compile a project for, say, 4.2.1 and debugging on a simulator device that comes with, say, the 4.7.0 pack component? Or install a separate 4.7.0 simulator package the only way to do it?

Enter debug configurations, create a new BlackBerry Simulator. The tab JRE choose JRE Alternative so that you can have different sims for different environments JRE.

Tags: BlackBerry Developers

Similar Questions

  • How to change the ID of the simulator device?

    You will need to change the ID of the simulator device... anyone can guide me?

    in eclipse, open the configuration to run or debug and select the simulator that you can enter the PIN to use it

  • Cannot open the input device. Another program, it may have already. RC = - 10 (Ventrilo)


    • Duuring the time I downloaded Ventrilo, I was getting rather annoyed with it. I can't speak to members of my Guild felloe that this error message keeps popping up, to open the input device. Another program, it may have already. RC = - 10... Ive asked them suggestions, but all I received didn't come clear to solve the problem...

    I use a headset called Gembird AP-870. I searched the web, trying to find a solution but have not found anything that can help me... If anyone knows how I can solve this problem I will be grateful...

    It is located directly above the ORB start and said in fact start search inside.

    If you can't find it always, hit the Windows key and R at the same time to open run and type msconfig.exe, and then enter.  As you will get to the same place.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Can I delay the prompt to begin to allow the USB device to connect in time?

    Hello

    I use a guest linux 2.6 on the host of windows 7 that is running a GPS Simulator she starts and sends the GPS signal on a USB port. However, it seems to begin quickly on the USB be detected. If I stop and restart the Simulator after than the VM has started, it works fine.

    So I was wondering if I can delay the start of the virtual machine so it has time to detect the USB device first.

    Thank you

    Hi TracMap,

    Welcome to the forums.

    You can add a delay of starting your virtual machine. Manually change the configuration of your VM's VMX file and add a new line with:

    -bios.bootDelay = "xxxx".

    'xxxx' is in millisecond. During this period, the virtual machine will stay on the screen of the BIOS in waiting for an entry and then start normally.

    I hope it will work for you!

    Good luck.

    Concerning

    Franck

  • Can I connect to the internet via the simulated device

    Hi all, sorry for the newbie question - can I use the "Device Simulator" in the 4.6 JDE to develop and test the network management, for example to get HTML page, browsing the internet etc.

    Thank you!

    Udik

    Check the icon 'Manage connections' on your home screen and make sure that all connections are enabled.

  • Is it possible to change the sine wave 'exit' a simulation device?

    I work on a LV collection and analysis VI in LabView that interfaces with a CDAQ-9178 loaded with 9215 modules/a. chassis.  In the Measurement & Automation Explorer, I was able to set up simulated devices that work with my code and I get the sinewave / 5 (?) standard signal noise %.

    However, to really test my application, I need a slightly different sine wave with high frequency (1-10 Hz vs the)<1hz sent="" by="" the="" simulated="" device). ="" is="" there="" anyway="" to="" modify="" or="" get="" the="" simulated="" device="" to="" output="" a="" different="" wave? ="" if="" not, ="" are="" there="" any="" other="" simple="" ways="" to="" simulate="" the="" device? ="" i="" could="" write="" another="" vi="" to="" send="" out="" a="" sinewave="" but="" was="" looking="" for="" a="" more="" obvious="" or="" simpler="" solution="">

    Thank you

    # You need to do is call an of the generating functions of waveform instead of the DAQmx Read. Place inside a case, the declaration or the conditional structure disable is fairly simple.

  • NI 6509 simulation device

    Hello

    My question should be simple enough, but I have not found the answer.

    I have a NOR-6509 card and it should be possible, according to the different tutorial nor helper I've read, to simulate the device using MAX, without being connected to my laptop. The thing that would be very useful to develop portable applications c# on my computer when traveling away from the office.

    "Now with NOR-DAQmx 7.4 or higher, using simulated devices, you can develop, run, and troubleshoot data acquisition applications without going through the applicable material installed [...] A simulated NEITHER-DAQmx device is a replica of a device created by using the option OR-DAQmx Device simulated in the menu create new from MAX to a function or program without equipment. A device OR-DAQmx simulated behavior similar to a real device. Its driver is loaded, and use programs are fully verified... »

    The fact is that I can't do work at the same time, my request - for example, the application of WriteDigPort.exe provided with examples of dotnet 2.0 - and a device of NOR-6509 simulated by a task generated to simulate an output port Dev1/port 0 for example. I have a conflict error.

    I don't really see not how to simply check that my request goes to the value '1', for example, every bit of my virtual Dev1/port port 0 MAX and seeing the lights 'virtual '?

    Ditto for reading: how e chech with a simultaed device that my request is properly read a port that I set to a specific value?

    Thanks much for the reply!

    Hello

    You can read output simulated. The simulated device aims to offer the possibility to start the program without hardware; also with a simulation device, you can check if the syntax of your program is correct and check if the data you write meets the specifications for your motherboard.

    You might find some useful information here:

    http://zone.NI.com/DevZone/CDA/tut/p/ID/3698#toc3

    Kind regards

  • Socket connection in the Simulator with MDS, but not on the curve

    Hello

    Working on an application using socket connections.

    SOC = (SocketConnectionEnhanced) Connector.open ("socket: / /" + address.ip_number + ":" + address.port_number + ";") deviceside = true");

    Proceed to use a DataInputStream and DataOutputStream to communicate.

    The server works, can transmit very well with the Simulator, but also another curve (not same model). (There is a small chance that deviceside = true has not been passed as a parameter when we tested on the curve, which would go through BES? This is probably still there however).

    IMHO, this means the places that the question could be one) how the code is implemented on the client phone or b) phones or their settings (have 4 curve 8530 s on the same CDMA network).

    -These phones have already activated in the last days, is there the chances that something is missing from the service book to allow socket connections? (I doubt that what I downloaded messenger ping I assume uses taken... and everything is fine).

    No authorization application that I put?

    Ideas! Please let your mind flow. Thank you!

    To all those who might find this thread after encountering the same problem:

    The issue was with the DataInputStream... available() was ALWAYS return zero, even if there are more bytes to read. This is our 8530 s curve 4 tests phones. Tried on another curve and "BOLD" and they did not have this problem.

    Use available() stopped and tried reading for much bigger than one of our packages will be (5000 bytes).

    Have some phones to test with 5.0.0.337 that they would not work with that.

    After the 5.0.0.1000 they all work perfectly.

    I read somewhere that the available() issue has to do with J2SE-> J2ME problems, something on a wrapper. This problem exists (or existed) with TSL/SSL apparently (sorry I can't find the thread I get this info, if someone really wants to see him answer and I'll get the link in the history of my browser of laptops).

    Hope this helps someone!

    B

  • Write Debug Output to the media under the Simulator map

    I'm testing my application using the Simulator with the eclipse plugin (using the simulated device 9700). Simply, I can't open a file. Here is the code I use:

    try {   // filename = "file:///SDCard/debug.txt"
        fileConnection = (FileConnection) Connector.open(fileName);
    } catch (IOException e) {
        System.out.println("Could not create " + fileName);
        e.printStackTrace();
    }
    
    if (fileConnection != null) {
        try {
            OutputStream out = fileConnection.openOutputStream();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
    

    Are there settings specific Simulator which must be defined and who could stop me from writing on the SD card in the device? I put 'Use PC file to SD Card file system' and with the path on my PC where I want the file resides. Any help would be greatly appreciated.

    The file exists in your file? If it isn't, your code does not indicate that you create a file.

    So when you try to open an output stream on a file that does not exist, that would not work.

    Steps to follow:

    -Check if a file exists

    -Yes: Open stream and write to the file

    -No: fileConnection.create)

    -Open the stream and write to the file

    PS Don't forget to close the flow of data and file connection when you are finished.

  • USB-6341 not on the list of simulation devices

    I want to create a USB-6341 siumulated, but this model is not in the list of available under devices simulated in MAX X series devices. I don't see in the devices of series X available for the simulation are PCIe devices. I have MAX 4.7, 9.1.5 DAQmx and LabVIEW 2010. I did this on other computers running older versions of the software and saw this device on the list, so there must be a software component that I have installed, but I can't understand what it is. Any suggestions?

    Richard

    Material of the series X USB were not released before DAQmx 9.2; you need at least this version in order to use a simulated.

  • App works on the Simulator, but not on the device

    Just try to run the helloworlddemo app compiles fine and works on the Simulator without problem. All I get on the device is an icon of the application that does nothing when clicked.

    I had read this might have to do with the version of the JDE is high for the operating system on the device, but I'm running JDE 6.0.0.37 and the operating system on the device is 6.0.0.666

    I tried with my own app first, compiled, signed it and get the same result as helloworld, then its certainly some mounted sort of question but I have no idea of what

    Thank you

    Sheldon

    Thought of it - was to set the permission of application so that all 3 items were "allow."

  • Http method Post is not working in the Simulator (SDK 7.0) and not in the device with BB 5.0

    I am a novice in the development of BB.

    I tried to implement a simple Http Post request, but when running it in the Simulator (SDK 7.0), he gave an IOException.

    I've first implemented the Http Get request and was getting the same error but that was resolved by adding "; deviceSide = true'on demand.

    But while making the Post request parameters(username and password) were supposed to be written to outputstream open after successfully HttpConnection. I get the answer I used to get when I send two parameters as null.

    But the app even when built against JRE 5.0 crashes.

    Hi simon, peter

    I made changes to my connection as as well as u say it, but still no idea if I am wrong, if I do one.

    Now without using any suffix his run on my device but same answer as it was a GET request.

    A modified version of class ServerConnection (in post above)

    package com.httppostdemo.classes;
    
    import java.io.ByteArrayOutputStream;
    import java.io.InputStream;
    import java.io.OutputStream;
    
    import javax.microedition.io.HttpConnection;
    
    import net.rim.device.api.io.transport.ConnectionDescriptor;
    import net.rim.device.api.io.transport.ConnectionFactory;
    import net.rim.device.api.ui.UiApplication;
    import net.rim.device.api.ui.component.Dialog;
    
    public class HttpPostConnection extends Thread {
    
        private String mUrl = null;
        private byte[] mParams = null;
    
        public HttpPostConnection(String iUrl, byte[] iParams) {
            mUrl = iUrl;
            mParams = iParams;
        }
    
        public void run() {
            super.run();
            ConnectionFactory connectionFactory = new ConnectionFactory();
            ConnectionDescriptor connDescriptor = (ConnectionDescriptor) connectionFactory
                    .getConnection(mUrl);
            HttpConnection connection;
            OutputStream outStream;
            InputStream responseData;
            final ByteArrayOutputStream baos;
            int responseCode;
            int bytesRead;
    
            if (connDescriptor != null) {
                try {
    
                    connection = (HttpConnection) connDescriptor.getConnection();
                    connection.setRequestMethod(HttpConnection.POST);
                    connection.setRequestProperty("Content-Type",
                            "application/xwww-form-urlencoded");
                    connection.setRequestProperty("Content-Length",
                            String.valueOf(mParams.length));
    
                    outStream = connection.openOutputStream();
                    outStream.write(mParams);
                    outStream.close();
    
                    responseCode = connection.getResponseCode();
                    if (responseCode != HttpConnection.HTTP_OK) {
                        connection.close();
                        return;
                    }
    
                    baos = new ByteArrayOutputStream();
                    responseData = connection.openInputStream();
                    byte[] buffer = new byte[10000];
                    bytesRead = responseData.read(buffer);
                    while (bytesRead > 0) {
                        baos.write(buffer, 0, bytesRead);
                        bytesRead = responseData.read(buffer);
                    }
                    UiApplication.getUiApplication().invokeLater(new Runnable() {
    
                        public void run() {
                            Dialog.alert(new String(baos.toByteArray()));
                        }
                    });
                    baos.close();
                    connection.close();
    
                } catch (final Exception e) {
                    UiApplication.getUiApplication().invokeLater(new Runnable() {
    
                        public void run() {
                            Dialog.alert("Exception :: " + e.getMessage());
                        }
                    });
                }
    
            }
        }
    
    }
    
  • How to connect the port device series to the Blackberry without Martin Simulator

    Is there a program that can interface with the Blackberry Simulator to connect to a device connected to the serial port of the computer to simulate a Bluetooth connection?  I can't believe that Martin is the only way to do it.  Martin offers a free demo version sort of their program?  I searched everywhere but found no one.  I don't need a bluetooth receiver real but just the software in order to supply data from serial port to the Simulator (and I guess that convince the Simulator data from serial port to a Bluetooth device).   Thanks for any help that anyone can provide.

    I'm not aware of any device that will help with this.

    Two suggestions:

    (a) you can write some sort of test, that will feed a data script as if it came from a Bluetooth device.  I got it done in the past - it does not test the treatment of Bluetooth, but it allows you to drive the application program.

    (b) it is not really difficult to test on the device.  Little painful to recompile and reload, but if you have a test drilling (a), then you are only testing the Bluetooth part, which you won't be able to test a connection series anyway.

  • Need a Clarification on the installed component and run Simulator Configuration

    Help!

    I need clarification on what the plugin Eclipse is telling me. There are two parameters that are confusing me. For components installed (found under preferences/Window/BlackBerry JDE/Installed Components), I have a choice of 5.0.0 4.7.0,4.6.1, 4.6.0 4.5.0 and 4.3.0.

    Depending on which component I select when I go in the tab Configurations.../Simulator/course walk, I see a different mix of devices.  In all cases, there is a default Simulator.

    Initially, I assumed that each JDE component supports a mixture of different devices, and that is it compiled correctly, I would be assured that the app would work for all devices on the tab run Simulator Configuration.  In my tests, I found theopposite.  I also assume that, for each component of the JDE, there is a 'default' Simulator that was representative of all devices in the drop-down list run Configuration Simulator.  In my tests, am not sure what actually represents the Simulator 'by default'.

    Can someone clarify how to JDE and Configuration simulators run installed interact and a developer show how to ensure that their application is running on a mix of devices?

    When I finally get to the point where I am ready to deliver, what are the points of decision of installation?  Is it enough to simply require a specific version of an operating system (for example 4.7?) or do I have to create a grid and check the two model number and version of the operating system?

    Thanks for your help.

    "currentT shipping Curve 8330 come with OS 4.5" - they must be, as far as the carrier released a version 4.5.

    "Your statement that most consumers do not upgrade surprised me too" - only I support!  You might get a different opinion of someone else.  But the question is why would?  And our world app downloads indicate that he is did not upgraded phones out there.

    "I guess you are right in this assumption of statementI you are right in this statement"

    What is - an appropriate version of the BlackBerry JDE
    Article number: DB-00537
    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800738/800901/What_Is...

    "If there is some Curve 8330 there running 4.5 OS, it's a configuration supported." - correct

    "Construction of the 4.3 OS will be one where the menu appears in the upper right and the built 4.5 OS will be one where the menu is out."  Sounds good

  • Custom BrowserField appears in the real device Simulator only

    Hey guys, I got some piece of code that I can use to display HTML data stored in a variable. It worked fine in the Simulator, but when I tried to view it on a real device (I use 8900), it shows nothing.

    Here is the code (HTMLField.java): (I use the code here: http://supportforums.blackberry.com/t5/Java-Development/Display-HTML-in-a-Screen-Field/td-p/335074/p...)

    package app;
    
    import java.io.IOException;
    
    import javax.microedition.io.HttpConnection;
    
    import net.rim.device.api.browser.field.BrowserContent;
    import net.rim.device.api.browser.field.Event;
    import net.rim.device.api.browser.field.RedirectEvent;
    import net.rim.device.api.browser.field.RenderingApplication;
    import net.rim.device.api.browser.field.RenderingException;
    import net.rim.device.api.browser.field.RenderingOptions;
    import net.rim.device.api.browser.field.RenderingSession;
    import net.rim.device.api.browser.field.RequestedResource;
    import net.rim.device.api.system.Application;
    import net.rim.device.api.ui.Field;
    import net.rim.device.api.ui.UiApplication;
    import net.rim.device.api.ui.component.Status;
    import net.rim.device.api.ui.container.VerticalFieldManager;
    import net.rim.device.api.io.http.HttpHeaders;
    
    /**
     * A field which displays HTML content.
     * @author Febiyan Rachman
     */
    public class HTMLField extends VerticalFieldManager implements RenderingApplication
    {
        private String data;
        private static final String REFERER = "referer";
        private RenderingSession renderingSession;
        private HttpConnection currentConnection;
        private Field field;
    
        /**
         * Default constructor
         * @param data
         */
        public HTMLField(String data)
        {
            this.data = data;
            renderingSession = RenderingSession.getNewInstance();
            // Enable JavaScript
            renderingSession.getRenderingOptions().setProperty(RenderingOptions.CORE_OPTIONS_GUID, RenderingOptions.JAVASCRIPT_ENABLED, true);
        }
    
        /**
         * Start parsing thread
         */
        public void parseHTML()
        {
            if(!data.startsWith("";
            HTMLFieldConnection thread = new HTMLFieldConnection(data, null, this);
            thread.start();
        }
    
        /**
         * Parse HTML
         * @param data
         */
        public void parseHTML(String data)
        {
            this.data = data;
            if(!data.startsWith("";
            HTMLFieldConnection thread = new HTMLFieldConnection(data, null, this);
            thread.start();
        }
    
        /**
         *
         * @param connection
         * @param event
         */
        public void processConnection(HttpConnection connection, Event event)
        {
            // Cancel previous request
            if (currentConnection != null) {
                try
                {
                    currentConnection.close();
                }
                catch (IOException e1) {
                }
            }
    
            // Set the current connection to the created connection
            currentConnection = connection;
    
            BrowserContent browserContent = null;
    
            try
            {
                browserContent = renderingSession.getBrowserContent(connection, this, event);
    
                if (browserContent != null)
                {
                    // Create a field which displays the HTML content
                    Field newField = browserContent.getDisplayableContent();
                    // Add field to this manager
                    if (newField != null)
                    {
                        if(field != null)
                        {
                            synchronized (UiApplication.getEventLock())
                            {
                                replace(field, newField);
                                field = null;
                                field = newField;
                            }
    
                        }
                        else
                        {
                            synchronized (UiApplication.getEventLock())
                            {
                                add(newField);
                                field = newField;
                            }
    
                        }
                    }
    
                    // Finish!
                    browserContent.finishLoading();
                }
            }
            catch (RenderingException renderingException)
            {
                System.out.println("RenderingException : " + renderingException);
            }
            catch (Exception exception)
            {
                System.out.println("Exception : " + exception);
                exception.printStackTrace();
            }
        }
    
        /**
         * @see net.rim.device.api.browser.field.RenderingApplication#eventOccurred(net.rim.device.api.browser.field.Event)
         */
        public Object eventOccurred(Event event)
        {
            int eventId = event.getUID();
    
            switch (eventId)
            {
                case Event.EVENT_URL_REQUESTED:
                {
                    HTMLFieldConnection thread = new HTMLFieldConnection(data, null, this);
                    thread.start();
                    break;
                }
                case Event.EVENT_BROWSER_CONTENT_CHANGED:
                {
                    break;
                }
                case Event.EVENT_REDIRECT:
                {
    
                    RedirectEvent e = (RedirectEvent) event;
                    String referrer = e.getSourceURL();
    
                    switch (e.getType())
                    {
                        case RedirectEvent.TYPE_SINGLE_FRAME_REDIRECT:
                            // Show redirect message
                            Application.getApplication().invokeAndWait(new Runnable()
                            {
                                public void run()
                                {
                                    Status.show("You are being redirected to a different page...");
                                }
                            });
    
                            break;
    
                        case RedirectEvent.TYPE_JAVASCRIPT:
                            break;
                        case RedirectEvent.TYPE_META:
                            // MSIE and Mozilla don't send a Referrer for META Refresh.
                            referrer = null;
                            break;
                        case RedirectEvent.TYPE_300_REDIRECT:
                            // MSIE, Mozilla, and Opera all send the original
                            // request's Referrer as the Referrer for the new
                            // request.
                            Object eventSource = e.getSource();
                            if (eventSource instanceof HttpConnection)
                            {
                                referrer = ((HttpConnection) eventSource).getRequestProperty(REFERER);
                            }
                            break;
                    }
    
                    HttpHeaders requestHeaders = new HttpHeaders();
                    requestHeaders.setProperty(REFERER, referrer);
                    HTMLFieldConnection thread = new HTMLFieldConnection(this.data, event, this);
                    thread.start();
                    break;
    
                }
                case Event.EVENT_CLOSE:
                    break;
    
                case Event.EVENT_SET_HEADER:        // No cache support
                case Event.EVENT_SET_HTTP_COOKIE:   // No cookie support
                case Event.EVENT_HISTORY:           // No history support
                case Event.EVENT_EXECUTING_SCRIPT:  // No progress bar is supported
                case Event.EVENT_FULL_WINDOW:       // No full window support
                case Event.EVENT_STOP:              // No stop loading support
                default:
            }
    
            return null;
        }
    
        public int getAvailableHeight(BrowserContent browserContent)
        {
            return 0;
        }
    
        public int getAvailableWidth(BrowserContent browserContent)
        {
            return 0;
        }
    
        public String getHTTPCookie(String url)
        {
            return null;
        }
    
        public int getHistoryPosition(BrowserContent browserContent)
        {
            return 0;
        }
    
        public HttpConnection getResource(RequestedResource resource, BrowserContent referrer)
        {
            return null;
        }
    
        public void invokeRunnable(Runnable runnable)
        {
        }
    
    }
    

    BrowserApp.java

    package app;
    
    import net.rim.device.api.ui.Field;
    import net.rim.device.api.ui.FieldChangeListener;
    import net.rim.device.api.ui.UiApplication;
    import net.rim.device.api.ui.component.ButtonField;
    import net.rim.device.api.ui.component.EditField;
    import net.rim.device.api.ui.container.MainScreen;
    
    /**
     * @author Febiyan Rachman
     */
    public class BrowserApp extends UiApplication implements FieldChangeListener
    {
        HTMLField htmlField;
        EditField textField;
    
        public static void main(String[] args)
        {
            // TODO Auto-generated method stub
            BrowserApp app = new BrowserApp();
            app.enterEventDispatcher();
        }
    
        /**
         * Default constructor
         */
        public BrowserApp()
        {
            MainScreen screen = new MainScreen();
            screen.setTitle("Browser Test");
            htmlField = new HTMLField("");
            //screen.add();
            textField = new EditField("Tes : ", "");
            ButtonField button = new ButtonField("click", ButtonField.CONSUME_CLICK);
            button.setChangeListener(this);
            screen.add(textField);
            screen.add(htmlField);
            screen.add(button);
            pushScreen(screen);
        }
    
        // parseHTML and display it
        public void fieldChanged(Field field, int context)
        {
            // TODO Auto-generated method stub
            htmlField.parseHTML(textField.getText());
        }
    
    }
    

    HTMLFieldConnection.java

    package app;
    
    import java.io.ByteArrayInputStream;
    import java.io.ByteArrayOutputStream;
    import java.io.DataInputStream;
    import java.io.DataOutputStream;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.OutputStream;
    
    import javax.microedition.io.HttpConnection;
    
    import net.rim.device.api.browser.field.Event;
    
    public class HTMLFieldConnection extends Thread implements HttpConnection
    {
        private long streamLength = 7000;
        private DataInputStream dataInput;
        private InputStream in;
        private String encoding = "text/html";
        private HTMLField htmlField;
        private Event event;
        private String data;
    
        /**
         * Default
         * @param data
         * @param event : event object for eventOccured() function
         * @param htmlField : HTML display field
         */
        public HTMLFieldConnection(String data, Event event, HTMLField htmlField)
        {
            this.data = data;
            this.htmlField = htmlField;
            this.event = event;
        }
    
        public String getURL()
        {
            return "";
        }
    
        public String getProtocol()
        {
            return "";
        }
    
        public String getHost()
        {
            return "";
        }
    
        public String getFile()
        {
            return "";
        }
    
        public String getRef()
        {
            return "";
        }
    
        public String getQuery()
        {
            return "";
        }
    
        public int getPort()
        {
            return 0;
        }
    
        public String getRequestMethod()
        {
            return "";
        }
    
        public void setRequestMethod(String s) throws IOException
        {
    
        }
    
        public String getRequestProperty(String s)
        {
            return "";
        }
    
        public void setRequestProperty(String s, String s1) throws IOException
        {
    
        }
    
        public int getResponseCode() throws IOException
        {
            return 200;
        }
    
        public String getResponseMessage() throws IOException
        {
            return "";
        }
    
        public long getExpiration() throws IOException
        {
            return 0;
        }
    
        public long getDate() throws IOException
        {
            return 0;
        }
    
        public long getLastModified() throws IOException
        {
            return 0;
        }
    
        public String getHeaderField(String s) throws IOException
        {
            return "";
        }
    
        public int getHeaderFieldInt(String s, int i) throws IOException
        {
            return 0;
        }
    
        public long getHeaderFieldDate(String s, long l) throws IOException
        {
            return 0;
        }
    
        public String getHeaderField(int i) throws IOException
        {
            return "";
        }
    
        public String getHeaderFieldKey(int i) throws IOException
        {
            return "";
        }
    
        public String getType()
        {
            return "text/html";
        }
    
        public String getEncoding()
        {
            return encoding;
        }
    
        public long getLength()
        {
            return streamLength;
        }
    
        public InputStream openInputStream() throws IOException
        {
            return in;
        }
    
        public DataInputStream openDataInputStream() throws IOException
        {
            return dataInput;
        }
    
        public void close() throws IOException
        {
    
        }
    
        public OutputStream openOutputStream() throws IOException
        {
            return new ByteArrayOutputStream();
        }
    
        public DataOutputStream openDataOutputStream() throws IOException
        {
            return new DataOutputStream(new ByteArrayOutputStream());
        }
    
        public void run()
        {
             try
             {
                 in = new ByteArrayInputStream(data.getBytes("UTF-8"));
                 dataInput = new DataInputStream(in);
             }
             catch (Exception e)
             {
                 System.out.println("HttpConnectionImpl : Exception : " + e);
             }
            this.htmlField.processConnection(this, this.event);
        }
    }
    

    Is there something wrong with it?

    Yes, as I finally tried again and again, it seems that the OS 5 does not support old stuff like that, it has its own browserfield2.

Maybe you are looking for