A simulator to simulate efficiently all limitations of a real device?

I brought an IPhone app to BlackBerry and it works great on the Simulator.  One of IPHONE developers theother said day "wait until you get your application on the actual device. That's when the pain begins"and he stopped dead in my tracks. The big question is, it works perfectly in the real device too. Is the Simulator has the processor, memory, and any other restrictions of a real device?

PS. can't afford a real device, so stuck with the blessed simulators.

See you soon.

Not sure that I count as a guru, but happy to offer my thoughts.

Basically, I agree with the previous answers, you've had.

Not sure if anyone has mentioned code signing and prompts security/permissions variety you can get on a real device.  I would recommend that you get the key signing, even if you need and sign your code for $20.  There is a good video on security prompts that I recommend that see you, too.  And business users would never be able to run your application due to the security provisions in the company.

Relating to the performance, don't forget that the Simulator is faster than the device.  Much faster.  The one that annoys me is the time it takes for a page in the browser.  I have not done much image manipulation, but I think that the same thing happens with her.

Concerning the aspect, the storm must be the biggest difference.  Remember that you are using a mouse on the simulator that is easy to point.  The simulator of life-size scale and then try to put your fingers on the screen to see if your fields are in fact quite large.  And you will find the keys on the real QWERTY devices a little different and surprisingly, different between different models.

Get cod on the device takes a little thought.

If a few other things, but the guys have already hit on the most important.

Tags: BlackBerry Developers

Similar Questions

  • Step property loader to load all limits in all sequences in a Seq file

    Hello

    I have a Seq file. There are several sequences in this file. I can export all limits in all sequences of this file as an Excel file.

    My question is how to import all limits in all sequences of this file by using step property Loader. I am attaching a file seq example below (version TS3.5). Will you please show me an example to do (i.e. *.seq or screenshots are appreciated.)

    From the link below, it shows that for import limits in each sequence, there must be a property Loader step in each sequence to load limits for this specific sequence. But it's annoying and not effective because the same step is performed repeatedly.

    http://forums.NI.com/NI/board/message?board.ID=330&requireLogin=false&thread.ID=6522

    We hope to hear from someone soon.

    Concerning

    Lee

    Hello

    The Committee for dialogue on what I was talking about is the feeder of property change (see table). Typically, you use this after you insert a step PropertyLoader Type in the installation of the PropertyLoader step sequence statically. General, you set many of the properties statically and then change one or two of the properties programmatically. Unless of course you're generating the entire sequencefile programmatically.

    The properties that you need the installation would be Step.Sequence = "", but also you must set Step.UseCurrentSequenceFile = True.

    Hope this helps you.

    Concerning

    Ray Farmer

  • Application of background visible on a real device (all well in the Simulator)

    Hello

    I developed a small backgroundapplication, which shows a menu entry in the app phone "call via Asterisk. If I choose this option a defined number is called. Later, I want to add the number as dtmf tones.

    The application uses excactly as expected in the device Simulator 8310-JDE (included in the eclipse plugin) on JDE 4.5. with eclipse.

    But when I deploy the application (signed) to a real 8310 with firmeware v4.5.0.81, it appears an application icon on the desktop (homescreen) of blackberry and the menuentry in the phone app is missing. Why the application is not deployed as a background on the real dev app. ?

    The only difference between the Simulator and real device is the language chosen, but I don't think it's important.

    The application consists of files, as shown below.

    import net.rim.blackberry.api.menuitem.ApplicationMenuItemRepository;import net.rim.device.api.system.Application;
    
    public class Asterisk extends Application {   public static void main(String[] args)    {            // Create a new instance of the application            // and start it's event thread.            new Asterisk().enterEventDispatcher();    }
    
        public Asterisk()    {        //create a new instance of the menuitem       AsteriskMenuItem asterisMenuItem = new AsteriskMenuItem(40);
    
          //get the instance of the standard-menu an ad the new menuitem        ApplicationMenuItemRepository     .getInstance().addMenuItem        (ApplicationMenuItemRepository.MENUITEM_PHONE,asterisMenuItem);
    
        }}
    
    package com.schiffl.mobile.asteris;
    
    import net.rim.blackberry.api.invoke.Invoke;import net.rim.blackberry.api.invoke.PhoneArguments;import net.rim.blackberry.api.mail.Message;import net.rim.blackberry.api.menuitem.ApplicationMenuItem;import net.rim.blackberry.api.phone.Phone;import net.rim.blackberry.api.phone.PhoneCall;import net.rim.blackberry.api.phone.PhoneListener;import net.rim.device.api.system.ControlledAccessException;import net.rim.device.api.ui.Field;import net.rim.device.api.ui.UiApplication;
    
    public class AsteriskMenuItem  extends ApplicationMenuItem{     //number to be dialed via Asterisk        String servicenumber  = "1234567";
    
          //using the default constructors here.        AsteriskMenuItem(int order)       {         super(order);     }
    
           //methods we must implement       //Run is called when the menuItem is invoked      public Object run(Object context)     {             /*             * Normally the dialed number could be found in the context object             * because of a bug in the api which is solved in v.4.7 the context            * object is always null for MENUITEM_PHONE so it is necessary to          * use a workaround, here the number is extracted from the field with focus,           * which contains the dialed number           */            Field myField = UiApplication.getUiApplication().getActiveScreen().getFieldWithFocus();           String phoneNumber = myField.toString();
    
              //TODO Convert phoneNumber to dtmf-tones
    
              try           {             PhoneArguments call = new PhoneArguments(PhoneArguments.ARG_CALL,servicenumber);              Invoke.invokeApplication(Invoke.APP_TYPE_PHONE, call);
    
    //                PhoneCall myCall = Phone.getActiveCall();//               myCall.sendDTMFTones(phoneNumber);            }         /*             * The ControlledAccessException is thrown             * if the system administrator restricts access to the phone application           * using application control.          */           catch (ControlledAccessException e)           {             //TODO some exceptionhandling             }
    
             //normally you can do something with the given context inside of the run-method           //because of a bug in the API the context is always null so, we don't use it...           return context;       }
    
           //toString should return the string we want to        //use as the lable of the menuItem        public String toString(){         return "Call via Asterisk";       }
    
    }
    

    The entry for the RRT signature was missing in my .csl file. I change it manually, I added

    '52525400 = RIM API execution' requested signatures, deployed and it works...

  • 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.

  • Screen orientation: real device vs. Simulator

    Hey guys (and girls).

    So yesterday when I got the SDK and harry first noticed a problem of orientation. To be honest, I couldn't even turn the unit in the Simulator (subsequently discovered click and drag). in any case, my current application is built assuming that we don't see rotation capabilities in the Simulator until later. But now that we have received the Simulator updated we can finally do some tests of rotation. So here's what we found:

    After you have added the following lines to the file - app.xml:

    false
    landscape
    

    I compile and run my app in debug mode in the Simulator. Works without a hitch. I do the click and drag the motion to rotate the Simulator. Does not work. Now I'll assume that this happens because I put the autoOrient false value. So now so far so good. If the user decides to rotate the unit while using my app it would remain the same (I was intending to do the portrait of mode changes later).

    So what's the problem. After I slide up on my request to minimize it while remaining in the fashion landscape, it appears as a normal horizontal application. Now if I were to click and drag the motion to make rotate the Simulator Simulator rotates - but not my application. Now, because it was shot all being reduced at least my application is still assuming that the device is in landscape mode and rest in the same form. Now when I maximize my app while still in portrait mode, it looks pretty bad to say the least. an application of landscape in portrait form factor - not a pretty picture.

    In the case where I have everybody scratching their heads, here are the steps to re - create (that's all assuming that your application is set to show only in landscape mode):

    1. Make a wonderful app
    2. Put the above code lines in your - app.xml file to avoid the orientation change.
    3. Compile and run / debug your application on the Simulator
    4. Assuming that your Simulator has not frozen (har har ) try to rotate the screen.
    5. After finding out, you are not able to rotate the screen, minimize your application with a sliding upward.
    6. Now turn your Simulator via the drag and turn motion (lower right in the middle of the screen)
    7. Now look at the way that your minimize the looks of the app.
    8. Maximize your single app landscape.
    9. Cringe.

    If you followed the steps in this order, you should be able to understand now if you have not already before.

    so my question is, is the same expected behavior of the real device? or will a single minimized application landscape turned to always be in mode 'landscape' and not stretched to fit the portrait mode?

    Thanks for any information / suggestion / effort of collaboration in advance!

    (btw while typing this workaround came to mind where I could check the current ratio of the height and the width of the stage and the direction myself - I'll keep you posted!)

    Even here, I will just wait. It works perfectly in Android (sim and device) so here I will not write code to fix something that will be fixed when it comes out (they can't leave it like that)

  • HP Pavilion p 15-200nq: I have all sorts of problems in Device Manager...

    Hi, I bought a laptop pavilion p-200nq, I installed windows and now I can not install the LAN, wi - fi, network and I have all kinds of problems in devices like Device Manager unknown ethernet cotroller, network controller, pci device and video controller...

    I don't know if it is where I have to post but... I have a lot of problems... I don't understand.. need help

    Hello:

    You should be able to use the W7 x 64 drivers and software from the HP Pavilion 15z-p000 CTO Notebook PC on your model.  Do not use the BIOS or firmware files but because they are the specific model.

    http://support.HP.com/us-en/drivers/selfservice/HP-Pavilion-15-P000-notebook-PC-series/6936226/model/7174451

    In addition to the information above, you will need to also install the AMD Chipset drivers and reboot in order to install the smbus and usb3 controllers.

    First driver on the list.

    http://support.AMD.com/en-us/download/chipset?OS=Windows%207%20-%2064

  • Cannot open Mahjongg 25 000 like Taipei have not all Direct 3-d compatible devices

    I downloaded Taipei Mahjongg 25 000 and it does not accept my computer.
    I can't open it. It keeps telling me that I have not all Direct 3-d compatible devices.
    I have everything needed to download. What is my problem?
    I have never had any problems of downloading games or anything else before.
    Thank you, Joyce Cassista

    Hello

    1. have you checked for the minimum system requirements for this game?
    2. What is the full and exact error message?

    I suggest you contact the seller game to help on this issue.
    http://www.Viva-media.com/support.aspx

  • After hybernation, all usb and wifi mobile devices does not work

    Original title: Hybernation question
    After hybernation, all usb and wifi mobile devices does not work. Similarly, it is not stop as well. I turn off the power to the network option all usb hubs. Problem however still closes. Please suggest. I have Windows XP Sp3 installed. All the drivers and the windows update is up to date.

    Hi Mirza.Shanawazbaig,

    1. what happens when you connect any USB device to the computer, or trying to shut down the computer after hibernation?

    2. do you have security software installed on the computer?

    3. did you of recent changes on the computer?

    4 when was the last time it was working fine?

    Method 1

    See the below Microsoft article and try the steps mentioned, check if it helps.

    Peripheral USB is not recognized when you attach it immediately after that your Windows XP computer comes out of standby or hibernation

    http://support.Microsoft.com/kb/871233

    Method 2

    I suggest that you download and install the updated driver for the network adapters and display on the computer by visiting the card manufacturer or computer manufacturer website manually.

    How to manage devices in Windows XP

    http://support.Microsoft.com/kb/283658

  • Council of softkey is not coming by clicking textfield on Simulator, it will show on real device

    I wore an android application for bb 10 app, here I am facing problems.
    1 key board is not coming by clicking textfield on Simulator, it will show on real device

    2. I want to show 6 pictures long in size on a page to display scrolling but memory is out of range

    Hello

    No. 1: If you started the Q10 Simulator, it is expected for the real device has a physical keyboard. The Simulator startup, select the Z10 and test again to get the virtual keyboard.

    2: this question would better fit for a new topic. In any case, a strategy would be to cut the long cards for the smaller pieces and loading them dynamically, effectively keep in mind a few.

  • Is it possible to intercept all start them console.log messages on real device using web Inspector?

    I'm trying to debug initiaization Stadium on a real device.  The problem is that I won't be able to establish a remote debugging session until the application is running.  And by then, I miss any message on the console that I have put in my initialization codes. Is there a technique to catch all console messages?

    In Web Inspector, you can also press CTRL + r to trigger a cooldown.

  • Detection of real device vs. Simulator

    is there a way to detect if the application is running on a real device or a simulator.

    Thank you.

    DeviceInfo.isSimulator)

  • can upload from a simulator but cant on real device

              /*
                 * HTTP Connections
                 */
                connDesc = connFact.getConnection(tempfile);
                httpConn = (HttpConnection)connDesc.getConnection();
                try {
                    if(httpConn.getResponseCode() == HttpConnection.HTTP_OK)
                    {
                        StatusScreen._filestatus.setText(localfilename);
                        int _fileSize = (int)httpConn.getLength();
                        StatusScreen._downstat.setText(Integer.toString(_fileSize));
                        /*
                         * File connection
                         */
                        FileConnection file = (FileConnection) Connector.open(appNameDir + localfilename , Connector.READ_WRITE);
                        file.create();
                        file.setWritable(true);
                        DataOutputStream oS = file.openDataOutputStream();                  
    
                        // set local file size
                        size = -1;
                        size = _fileSize;
                        // set downloaded file
                        downloaded = 0;
                        DataInputStream iS = httpConn.openDataInputStream();
                        while(fileDownloadStatus == 0)
                        {
                            byte[] buffer;
                            if(size - downloaded > MAX_BUFFER_SIZE)
                            {
                                buffer = new byte[MAX_BUFFER_SIZE];
                            }
                            else
                            {
                                buffer = new byte[size - downloaded];
                            }
                            int read = iS.read(buffer);
                            if(read == -1)
                            {
                                break;
                            }
                            oS.write(buffer, 0, read);
                            downloaded += read;
                        }
                        iS.close();
                        oS.close();
                        file.close();
    

    I have a problem downloading a real device file

    on real device the size of the file to the file will always be-1

    but on the Simulator, he will get the actual size...

    is there a problem with my code?

    There's a thread sticky in this forum, created by peter_strange:

    HTTP code and Access BIS-B connection example

    In my opinion, it is better that most of the books of BlackBerry - read it!

    The isssue is not exactly with your code - it is with the different ways in which the BlackBerry can connect to the Internet. Unfortunately, even a 'simple' download becomes a non-trivial task on it.

    See if playing with suffixes connection solve the problem - it could, it could not

  • Import image - error 'cannot get all the files for this device. "

    Try to import images from my camera - Canon T3i.  Using both the SD card inserted into a reader and camera with battery connected USB Gets the error "unable to get all the files on this device. Please make sure that the equipment is connected correctly, or that the battery is charged. Files that have been achieved so far will be sent to multimedia elements. "All updates installed, running Vista x 64, 10 elements.

    Okay, found the problem.  Apparently the PSE does not like RAID1 arrays, which is a bit ironic, beings that she deals with photos, and people tend to do not like losing pictures.  Newho, if anyone has this problem in the future, as workaround for Adobe not have their stuff together, rather than import directly to a RAID 1 has HARD drive table, import them on another drive, then copy them to your RAID array.  Very disruptive and I wish adobe would just fix their problems (no other program has this issue, even video editing software... «and RAID 1 should really be used for that), but to use it as a workaround if necessary.»

  • How to use the MDS Simulator to simulate a BlackBerryMessanger (BBM)

    Dear all,

    I have a problem how to simulate BBM on my computer.

    1. first of all I run:

    plugins\net.rim.ejde.componentpack5.0.0_5.0.0.36\components\MDS\run.bat

    2.i have download Simulator. http://swdownloads.BlackBerry.com/downloads/contactFormPreload.do?code=DC727151E5D55DDE1E950767CF861...

    then I run Sim1.bat and Sim2.bat

    I opened the BlackBerryMessanger application on each Simulator.

    try to invite a contact with the first Simulator (Sim1.bat), I entered PIN 2100000 B on Simulator (Sim1.bat)

    then he said: 'pending (awaiting approval', and there there is no response.

    Can you help me how to do?

    Thank you

    Better subject.

    zinc

    There is a solution http://supportforums.blackberry.com/t5/Java-Development/BBM-simulators/m-p/984621/highlight/true#M15...

  • Working with an internal sqlite3: Simulator of ok, but not ok in a real BB (OS 7.1)

    Hello

    I will try to briefly explain my problem.

    I have an app which read the info of an internal sqlite3 (just DB for playback, the user writes in it). I followed these steps, which works well in all the Simulator I tested, but not in a real BB (curve 9320, os7.1):

    -J' I load the sqlite3 DB and I copy to the SD card (if available) or in the file system

    When I run the app into a real BB, I can install it and run it, but the PB has been copied, so the querys are empty. When I debug the error saying something like "error file system 12.

    Why works well in a Simulator? Can I apply for permission with the real BB?

    Any help will be very apreciaated

    THX!

    PS: It is available in appworld, if someone could test it and give me some feedback! THX

    http://appworld.BlackBerry.com/WebStore/content/59074971/?lang=en&CountryCode=es

    Well, I still do not know why to do that, but I throw this way and I tried another. Rather than copy the sqlite directly to the SD card, I created an empty database, with my paintings and then copy be the sqlite and it works!!

Maybe you are looking for

  • Satellite L655-1HE «Problem of HARD drive recovery»

    Hello I have the Satellite L655-1HE. I created a "HARD drive recovery" through "create recovery media. On the contrary, CD/DVD, I put it in a USB Flash drive. But when I used it, a mistake was "copy of splitpart or the Canadian Red Cross has failed!"

  • DVD is not recognized on Satellite L500-1XJ

    Hi all The DVD is not recognized when a dvd was released in the laptop.I tried to reinstall the driver but no luck.Does anyone have an idea? Thank you Gunter

  • Arab support for the HP Slate 10 Tablet

    Hello I would like to know how to download an Arabic/English keyboard for my HP Slate 10 Tablet. It runs on android. Thnx, S.

  • Kernell debugger dll missing or corupt in windows vista

    Windows crashed.  I have 2 errors: error System 32 and kernell debugger dll missing or corupt.  Tried backup to the previous week, months and months without success.  Tried to reinstall windows without success.  I have 2 hard drives, but did not unde

  • Pavilion dv7: radiator for CPU fan replacement dv7-6160ez

    Hi all my my computer CPU fan laptop dv7-6160ez is down. I can find several dealers fan, but it seems that the radiator is never included. do I need a new heat sink too? where do I find this? thx for the help