Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7978431
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T09:29:29+00:00 2026-06-04T09:29:29+00:00

I am working on a blackberry project and ran into some problems with the

  • 0

I am working on a blackberry project and ran into some problems with the simulator and I don’t know why it is happening nor how to debug this problem.

What I am using

  1. phonegap 1.7
  2. cordova.1.7.0.js
  3. jquery.1.6.4.js , jquery.ui.1.8.18 , jquery.mobile.1.0.1.js

I am using some other jquery plugins as well.

I am getting a few problems

Problem 1

   function onDeviceReady()
    {
      // do your thing!
      alert("PhoneGap is working");

    }

    $(document).ready(function() 
    {
        document.addEventListener("deviceready", onDeviceReady, false);

    });

I have this in my index.html (these are html 5 pages) and when the application loads I see this alert box what is expected. However when I go to an new html page that does not have this code I see this alert box again and I can’t figure out why.

I am not sure if this just a buggy version or what as if I go and use “7.0+” simulator I do not get this error anymore.

Problem 2

When I load up the application through the simulator in 6.0.0 it will just randomly crash. Sometimes it will just load up my main page and just crash. Sometimes I have to click around for a while and it will crash.

I try to use the Tools-Show Event Log but it records nothing so I am not sure how to even debug this.

Both of these problems go away if I am using OS 7.0+

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T09:29:30+00:00Added an answer on June 4, 2026 at 9:29 am

    I have faced the same issue what you are facing right now.

    First of all i would suggest not to use this $(document).ready(function()

    Do something like this

    function onLoad() {
        document.addEventListener("deviceready", onDeviceReady, false);
    }
    
    function onDeviceReady() {
        document.addEventListener("pause", onPause, false);
    }
    
    function onPause() {
    }
    
    <body onload="onLoad()">
    </body>
    

    Secondly the issue what you are facing is because of a buggy 9800 simulator. Download it again from the blackberry site and reinstall it. The issue is that the device ready is called always when you change a page. This was a bug in Blackberry 9800 simulator. Although If you try to run this in any BB OS 7 simulator then it will work perfectly…

    Hope it helps 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on a project in blackberry where i don't have GPS and
I'm running eclipse with the Blackberry Java Plug-in, working on a 1.4.5 Blackberry project.
i am working on blackberry curve 8300 i have added some components in the
Currently i am working on Blackberry Application and stuck at this point that how
I have some time now working with the BlackBerry's Eclipse Plugin with no issues
As part of a BlackBerry project I'm working on I need the ability to
now a days i am working on blackberry within that i parse some JSON
I'm working on a blackberry project using eclipse and bb-ant tools. I've created a
I'm working on adding a BitmapField to my Blackberry project. I implemented my class
I am working on a Blackberry application which includes Zoom pinch functionality, but this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.