Buggy Simulator torch?

Hello

Is something wrong with the simulator of the torch? I have an application that listens to the incoming and outgoing calls using the PhoneListener and I test this code on OS 6. I dial a number, green button to call and then net_rim_bb_phone_app Gets a NullPointerException on ActivePhoneScreen (Screen) .onDisplay (line 4125). Just like that. My callInitiated() is not yet known.

I also get a crash when a simulating a call. I get the crash after I managed callConnected(), so the call is coming, I press the green button to answer and BOOM!

Another thing: If the call alert sounds are set to 'all alerts off' then MediaPlayer.isSucces (line 713) Gets a MediaNativesEception. I managed to work around that one by alert settings sounds for silent.

Any ideas?

The 6.0.0.141 Simulator have that bug you described (with the call).  The first call cause this exception indiferent if you have connected the receiver or not, if you hit continue (several times), after that it will work (average of the second call). Download the 6.0.0.246 in this Simulator bug was

Tags: BlackBerry Developers

Similar Questions

  • PictureScrollField + 6.0 = > resizing of images

    Hi everyone, it's me again.

    I have a compiled application under 5.0 that great workd with touch device like storm (5.0), but which has some leaks when I start under 6.0

    I have a pictureScrollField that hold virtually all the screen, less than 5.0, when an image is smaller that the space has allowed the pictureScrollField, then it's a painting just like that, centered on the screen but not resized.

    Under device 6.0 or simulation (torch), the bitmap are resized every time.

    I checked the PictureScrollField 5.0 documentation which stated that "image not are NOT resized.

    Any clue?

    I have found no solution so I started to create new Bitmap from the one i dl.

    Like this:

    Bitmap resizedBitmap = new Bitmap(360,480);
    Graphics g = Graphics.create(resizedBitmap);
    g.setColor(Color.BLACK);
    g.fillRect(0, 0, 360, 480); bitmap.scaleInto(resizedBitmap, Bitmap.FILTER_BILINEAR, Bitmap.SCALE_TO_FIT);
    
  • Question of geocoding on torch Simulator 6.0

    Hi all

    I develop my BlackBerry application mainly for OS 5.0, but given compatibility backwards, I found that the request should have no problem to hit 6.0.

    The problem I'm facing to occurs on the torch Simulator 6.0.  Unfortunately, I do not have a torch to the device to test.  The problem does not exist on 5.0 simulators or devices.

    The problem: Whenever I try to use the geocode, stops just the geocoder.  For example:

    You also have the MDS - CS Simulator running?  It is necessary to simulate the network connection required for the Location.geocode method.

  • General Socket error on torch Simulator

    Argh...

    I used the storm Simulator to test my application.  I can read and write very well http and Sockets. Now I download the Simulator for the torch and I get "General Socket error" on all network access.  I looked in the debugging that I can't find something different.

    Ideas?

    Mark,

    Sorry I just thought of it.  He had something to do with my VPN DNS resolution.  I just used the IP address and I'm good.

    Thank you.

  • Invoke the browser on torch Simulator (OS 6)

    Hello

    I have a small question. I found something in the emulator of the torch. (Worm 242).

    I realized my application cannot open the browser to call the method.

    I used this code:

     BrowserSession browserSession = Browser.getDefaultSession();
     browserSession.displayPage(Constants.PRIVACY_POLICY_URL);
     browserSession.showBrowser();
     browserSession = null;
    

    The output, I got this:

    About to start the process (maxHeap: 16777216) process Create err: pid 0,: 1884Bridge PID: listening to 1884

    Also tried to use the form of the browser the Ribbon and also does not start to the Ribbon.

    I suggest you to install the last torch Simulator (6.0.0.246).

  • Simulator of OS6 and torch

    When I try to run the torch on OS5 or OS6 Simulator, he breaks with a null pointer exception. None of my code is executed.  Attached to peak.  (Eclipse)

    What is not seen in the photo is the popup indicating the composite number waiting for me to click "reply".

    The package is Simpackage - 6.0.0.141 - 9800

    Same thing happens when I try the same thing using OS5 and torch so it appears likely that the problem is in the Simulator. I use simulators in 4.5, 4.6, 4.7 and 5.0 without any problem

    Just checked, arrives on the BB JDE also (another pic)

    I have it.  I was able to reproduce it.  The trick is to press the entry instead of the Green send key.

    This will be fixed in a next version of simulator of smartphone BlackBerry.

    You can work around it for now by pressing the Green send instead of enter key.

  • Simulator of torch and Datalists HTML5

    Anyone with a bit of luck using a datalist HTML5 in the new webkit browser? I know there is an article on the blog of the developers just now about its use on the browser of the OS 5, but I recently tried on my torch Simulator and had no luck.

    
    
       
    

    I expect to start typing in my entry and if I use a D, J or T to have a names pop up as an option to autofill... instead it is just for a default automatic entry which I'm still not quite sold on... (why typing 'ja' revert to something like "Hosan"?)

    Input/feedback from someone else?

    Hi Jason,

    I circled back with the webkit team and apparently the datalist HTML5 feature has not engaged in the webkit project yet.  So unfortunately even major desktop browsers using webkit do not have this feature quite yet.

  • How buggy is the Playbook Simulator?

    It seems most of the things I write are causing problems with the Playbook Simulator.

    I tend to write most of the content of the page HTML from JQuery

    The simplest things can cause the Simulator to die

    An example...

    If (Debug) $("#debuglog").append ("attempt to display " "+ sp +")
    ");

    Here, I'm just writing for a div called debuglog so I can see what is happening - sp is a page that I just shot locally via Ajax - must write errors, it's the only way to debug a page.

    Who broke things, by removing the old tag led her to begin to work again in the Phone Simulator

    Still, he does not in the Playbook Simulator - it will work on a real Playbook?

    All the little stupid things that SDK WebWorks complains just work in Android

    Answer to myself for the benefit of third parties

    Buried in the forums, you will find a thread on the Playbook having problems with JQuery 1.5.1

    The solution is simple - downgrade to 1.5.0 or 1.5.2 upgrade when it comes out

    It took me a week to find out what was wrong. All my applications now work simply by changing to 1.5.0

    While the browsers work very well with 1.5.1 the Playbook Simulator is not

    I hope this helps those of you who are also frustrated that I was

  • "Détarer" problem with the Torch 9800/Device Simulator

    Hello everyone,

    Im a very strange problem with the Torch 9800 (OS 6).

    I have an application developed with 5.0 SDK. Throughout the process of synchronization of this app, there is a point he gets a. tar.gz file that is unziped. For this purporse (in fact, the tar part / "détarer"), we use a tar / "détarer" 'library' we found here in the forum (http://code.google.com/p/j2metar/). This library works fine in all phones with OS 5.0 that we try and even on the simulators of somo 6.0.

    But there seems to be a problem with the torch. During the uncompress, there are an exception, because what is the reading of the structure of the tar (from the industry), load the bytes that are invalid, corrupt, dirty, memory, and it fails.

    The strange thing of all is that if I have only the routine détarer to the file (in the torch), it works! But when I run all my sinchronization, which open and close httpconnections and process the file on some points (sometimes the same point, others of different) fails.

    My question is... are at - it a known bug, issue, etc. with the BONE of the torch (touch device)? Of course, the first thing that jump to mind is "my code is incorrect, memory leaks (in Java, but perhaps odd that a stream was not getting close properly)" and so on, but I can't seam to find the problem. And like I said before, this application works fine with the same file tar.gz in other devices like the 8520 OS 5, 9780 OS 6, 8900 (OS 5).

    IM completely stuck with this problem and any help/test will be greatly appreciated.

    Here some code, the method that makes him détarer and calls the détarer/tar library:

    public static boolean "détarer" (String tarFileUrl, String destUrl) bird Exception {}

    FileConnection fconn = null;
    FileConnection tarFileConn = null;
    TarInputStream tis = null;
    Boolean bRet = false;

    try {}
    fconn = (FileConnection) Connector.open (destUrl, Connector.READ_WRITE);
    If (! fconn.exists ())
    fconn.mkdir ();   Create the folder if it does not exist
    fconn. Close();
    fconn = null;
                
    Create a TarInputStream
    tarFileConn = (FileConnection) Connector.open (tarFileUrl);
    TIS = new TarInputStream (tarFileConn.openInputStream ());
    tarFileConn.close ();

    Entry TarEntry;
    int count;
    data Byte = null;
                
    While ((input = tis.getNextEntry ())! = null) {}
    Count = 0;
    data = new ubyte [2048];

    fconn = (FileConnection) Connector.open (destUrl + entry.getName (), Connector.READ_WRITE);
    If (! fconn.exists ())
    fconn. Create();   create the file if it doesn't exist
    else {}
    fconn. Delete();    Create a new
    fconn. Create();
    }

    OutputStream os = fconn.openDataOutputStream ();
                    
    While ((count = tis.read (data))! = - 1) {}
    OS. Write (data, 0, count);

    }
                    
    OS. Flush();
    OS. Close();
                    
    fconn. Close();
    fconn = null;
               
    }

    TIS. Close();
    TIS = null;
                
    bRet = true;
                
    } catch (Exception e) {}
    e.printStackTrace ();
    throw e;
    } {Finally
    try {}
    If (tis! = null)
    TIS. Close();
    If (tarFileConn! = null)
    tarFileConn.close ();
    If (fconn! = null)
    fconn. Close();
    } catch (Exception e) {}
    }
            
    Return bRet;
    }

    Thank you!

    Santiago.

    Hello

    It is a problem with the OS 6.  I've posted about this before here:

    http://supportforums.BlackBerry.com/T5/Java-development/reading-and-writing-file-on-torch-9800/TD-p/...

    Basically, corruption may occur if you write to the stream simultaneously in different threads.  The solution is to ensure that a single file operation is occurring at a given time.  Some people have had the chance to control the size of the buffer to something as a multiple of (64 * 1024)-1. e.g. 65535.  In addition, you can rinse after each write to the buffer.  I have had no luck with this, but others.  If you look at the bug in JIRA, there is also no activity on this:

    https://www.BlackBerry.com/jira/browse/JAVAAPI-1513

    Good luck!

  • Eclipse debugging for torch/OS6 Simulator

    I downloaded the Simulator OS6 and I can't seem to get the debugger to work. It appears as an option in Eclipse, but when I run the debug it does not load my application with the Simulator... Anyone know what I'm doing wrong?

    I'd really rather not explain how I did this job, but I will...

    I assumed that the download of the Simulator on the BB site package included the JRE6.0.0; of course, I was wrong! Once I followed the instructions (ahem... RTFM) I was able to update Eclipse, get the JRE 6.0.0 and everything works again...

    The eclipse instructions: http://us.blackberry.com/developers/javaappdev/javaupdate.jsp

    Thanks for your help... now let's act like it never happened...

  • Of the alternatives to the Simulator: test applications on the phone

    I'm an amateur who has developed applications of office before. I want to develop applications for my phone BB10. My Dell Dimension E521 (old), however, does not support virtualization and the BB Simulator is ultra slow. I can't use it to test my code. So, my questions are: (1) is there another way I can try my code, in addition to performing on my phone? and (2) if the answer is no, I risk screwing up my phone by using it to test my code, if it turns out that buggy or full of errors (I'm a newbie, after all :-)

    There is no options beyond what you have listed here.  The risks of tests on your actual device are quite low.  The applications are sandboxed, they cannot really affect other applications.  But you might cause problems if your code does something bad, delete pictures from the camera Director or delete all your contacts.

  • How to install the KEY file in the Blackberry Simulator?

    Hi all

    I developed the Web application using BlackBerry Webworks SDK and emulator Ripple... In that I created the package for Blackberry 6 and previously using emulator Ripple... Now, I have the COD files. Then I downloaded the Blackberry Torch Simulator... So please give the procedure to install COD files on the Blackberry Simulator... Thanks in advance...

    With respect,

    Marimuthu_P,

    Hello

    The Simulator must have a 'File' menu where you can load applications. It works for you?
    http://developer.BlackBerry.com/BBOS/HTML5/documentation/running_your_app_on_a_simulator.html

  • Simulator does not start correctly

    I use a Torch 9800 Simulator on a picture virtual box comments (Windows 7 4 GB of RAM, 256 MB of VRAM)

    For some reason, I am unable to get the Simulator to start with the handset 'skin' displayed... This could be down to the amount of video Ram currently assigned to my virtual device

    In addition, the my real / machine home for some reason, I can't get MDS to work.  It starts and then stops immediately, no error or anything.

    Well... think I have success.

    Set approx. variable JAVA_HOME to C:\jdk1.5.0_22

    (confirmed by going to the command prompt and enter cd followed by enter %JAVA_HOME%/bin)

    MDS is now commissioning.

    Thanks for the help

  • Debugging is not supported on the selected Blackberry Simulator

    I just installed the plug-in for Visual Studio. Installed simulators are Torch 9800 (v6.0.0.534), the Torch 9800 (v6.0.0.313), 9930 (v7.0.0.318), they all give me the same message. I have a simple HTML web page, set to debug, when you click on play, I get the message, "debugging is not supported on the selected Blackberry Simulator. Only the loading and the launch of WebWorks Applications currently available. Please select a different Simulator if you need.

    Any ideas?

    Adam

    I think that the debugger works with the simulators that have v5.0.x BONES.  All those you listed are 6.0 or more.

    Try a simulator to v5.0x.

    The visual studio plugin is removed in October I think.  The new test environment is the emulator of the ripple.

    http://ripple.tinyhippos.com/

  • How to test the backlight of the Simulator

    Hello Guyz

    Im kind again in the development of blackberry so its more than a new hobby as I recently an interest in java.  So my first app is an attempt to make an application which the camera back given the fon. so I would like to know how to test, without the need to put it on my son, how do I know if d backlight is turned on or off, is the way to display the interface back to the Simulator or something. I'm using eclipse and the blackberry 9800 torch Simulator. How to test the light from my pc?

    Thanks for your time, im hoping a response. Take advantage of the UL

    You can't test the flash of the camera in the BlackBerry smartphone Simulator.  You will need to test this on a real Smartphone BlackBerry.

Maybe you are looking for

  • After that v1.90 updated by Satellite Pro A300-1EA BIOS won't boot to the top

    I just upgraded my laptop the new BIOS as indicated in the title, but after that program it my computer won't start at all upward. I just get a blue screen with her asking me to do a CHKDSK because there might be a virus or hard drive is not connecte

  • Update Windows SP3 official website there is a banker virus

    I have download 02/05/2012 windows SP3 update on the official website and the virus scanner... and find virus banker... How do you explain it? where we get a version without virus?

  • Initialization of the USB

    I plugged a USB hard disk - it appears in as "Unknow" & "Not initialized" Disk Manager Receive has tried to initialize the drive - I get an error of logical disk manager "incorrect function".  The present reader 'uninitialized' properties as well. Ho

  • 64-bit driver for scanner Canon Canoscan 670u

    I recently bought a new computer with Windows 7. When you try to install my Canoscan 670u scanner, no TWAIN drivers were found. On this site I found and successfully installed a driver 64-bit for this scanner that someone else I work for the same sca

  • Pavilion P6142p - Bios does not recognize the drives.

    I have a Pavilion P6142p that won't start.  I have reset the CMOS and get into the BIOS but no disks are recognized, even though I can feel/hear the rotation of the hard drive.  It is rather a motherboard problem or a low power problem. Thank you Kel