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 3400570
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T04:54:34+00:00 2026-05-18T04:54:34+00:00

hie i am using jde 4.5 want to use camera through my app. i

  • 0

hie i am using jde 4.5 want to use camera through my app.
i write the code and getting runtime excepetion Pushmodelscreen caaled by non event thread
tell me what the problem in it?

public void start Camera()

 {
  try {
// Create a player for the Blackberry's camera
Player player= Manager.createPlayer( "capture://video" );
     // Set the player to the REALIZED state (see Player javadoc)
         player.realize();
         // Grab the video control and set it to the current display
         _videoControl = (VideoControl)player.getControl( "VideoControl" );
         if (_videoControl != null)
         {
             // Create the video field as a GUI primitive (as opposed to a
             // direct video, which can only be used on platforms with
             // LCDUI support.)
             _videoField = (Field) _videoControl.initDisplayMode (VideoControl.USE_GUI_PRIMITIVE, "net.rim.device.api.ui.Field");
             _videoControl.setDisplayFullScreen(true);
             _videoControl.setVisible(true);
         }
         player.start();
         if(_videoField!=null)
      {
       add(_videoField);
      }

} catch (Exception e) {
// TODO: handle exception
Dialog.alert(e.getMessage());
}
}
`

thnaks alot
Amit

  • 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-05-18T04:54:34+00:00Added an answer on May 18, 2026 at 4:54 am

    The code that involved in UI changes should be called from within the UI thread. So most likely some part of your code should be called in a way:

    UIApplication.getUiApplication().invokeLater(new Runnable() {
        public void run() {
            // do your UI related staff here
            // e.g. push a Screen or call Dialog.alert(), etc.
        }
    });
    

    Also, you may find this info interesting.

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

Sidebar

Related Questions

Hie I am using amazon simple email service to send email from google app
Hie We are using a gwt SuggestBox which shows suggestions as user starts typing
Hie I am using linkedin-j apis and trying to search the available public feeds
Hie guys i need help with my code. I have a form where a
Hie I use the GET method for navigation on one of my websites. The
hie all, i want to insert the data into the table only if the
Hie I am using GAE jdoql and wrote query like: Query query = pm.newQuery(BloodDonor.class);
Hie Everyone I am designing a webpage with a fluid layout. I want to
Hie guys i want to create a random string of numbers where there is
Hie all , I am trying to create an simple application and i want

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.