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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T23:03:11+00:00 2026-05-26T23:03:11+00:00

My code is – if ( args != null && args.length > 0 &&

  • 0

My code is –

 if ( args != null && args.length > 0 && args[0].equals("background1") ){
        // Keep this instance around for rendering
        // Notification dialogs.
         // Start a new app instance for GUI operations.     
        BackgroundApplication backApp=new BackgroundApplication();
        backApp.setupBackgroundApplication();   
       // backApp.enterEventDispatcher();
} 
    else {       
         theApp = new EntryPointForApplication();
         theApp.enterEventDispatcher();    

   }   

I want to run a background service (in auto start up) and an ui application. When i click the application background1, then its working. The background service is not running. I want to run the background service. How to run this ?. I am getting the error-

Detail formatter error: java.util.Arrays cannot be resolved to a type

  • 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-26T23:03:12+00:00Added an answer on May 26, 2026 at 11:03 pm

    You can achieve this by using Alternate entry point in your application …

    After creating the project for the original application, create an alternate entry point to launch the application UI.

    • Double click on BlackBerry_App_Descriptor.xml within your project.

    • Check off System Module and Do not display the application icon on the BlackBerry home screen.

    • Click on the Alternate Entry Point tab.

    • Click the Add button.

    • Enter a title for the entry point and click OK.

    • Specify the application argument that would launch the application using this alternate entry
      point (for example: background1).

    Make a class Wich will extend Application rather than UiApplication
    and check the main method like this …

    public static void main(String[] args) {

         if(args.length>0&&"background1".equals(args[0])){
             //Start your Background Process here 
    
    
            }
    
         else{
            //Start your Gui application here 
         }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have this code: <?php $valid_ext = array(pdf, doc); $args = array( 'post_type' =>
Code like this often happens: l = [] while foo: # baz l.append(bar) #
Code: if (!IDTextField.value && !FirstNameField.value && !LastNameField.value && !DateOfBirthField.value!GenderField.value) { alert('No criteria Added'); return;
Code goes first: void foo(int x) { void bar(int); //is this forward-decl legal? bar(x);
Code Currently my code looks like that. $stmt = $this->db->prepare(SELECT m.id, m.from_id, m.to_id, m.subject,
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
Code <c:if test=#{attr1 && !attr2 && (empty attr3)}> Error returned The entity name must
CODE: struct Stringdata { // Length of data in buffer. size_t len; // Allocated
Code would explain this much better :) def a(): x=0 def b(z=x): print(X: %d,
Code that was working fine last week is suddenly throwing this exception: System.Data.SqlClient.SqlException (0x80131904):

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.