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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T12:16:05+00:00 2026-05-27T12:16:05+00:00

I want to make my application Blackberry in different languages. That mean I use

  • 0

I want to make my application Blackberry in different languages. That mean I use english as default language and then when the user select other language, all the items and all the application will be with the other language. I use this code and I put the file Local.rrc and .rrh in the same package. I obtain nothing in my screen just white screen. Can any one help me ?

    package mypackage;

import net.rim.device.api.ui.MenuItem; 
import net.rim.device.api.ui.UiApplication; 
import net.rim.device.api.ui.component.*; 
import net.rim.device.api.ui.container.*; 
import net.rim.device.api.i18n.*; 
public class Local extends UiApplication { 
    public static void main(String[] args) { 
    Local theApp = new Local(); 
    theApp.enterEventDispatcher(); 
     } 
    public Local() { 
      pushScreen(new LocalScreen()); 
     } 
    } 
    final class LocalScreen extends MainScreen implements LocalDemoResource { 
    private static ResourceBundle res = 
     ResourceBundle.getBundle(BUNDLE_ID, BUNDLE_NAME); 
     LabelField title; 
     RichTextField rtf; 
    public LocalScreen() { 
       super(); 
    title =  new LabelField(res.getString(FIELD_TITLE),LabelField.ELLIPSIS| LabelField.USE_ALL_WIDTH); 
      setTitle(title); 
       rtf = new RichTextField(res.getString(MESSAGE)); 
      add(rtf); }


    public void HelloWorldScreen()
    {
     LabelField title = new LabelField("HelloWorld Sample", 
             LabelField.ELLIPSIS | LabelField.USE_ALL_WIDTH);
        setTitle(title);
        add(new RichTextField("Hello World!"));
    }


    public boolean onClose() { 
         Dialog.alert(res.getString(GOODBYE)); 
         System.exit(0); 
        return true; 
        }
    protected void makeMenu(Menu menu, int instance) { 
         menu.add(_english); 
         menu.add(_french); 
         menu.add(_spanish); 
         menu.add(_close); 
        } 
        private MenuItem _close = new MenuItem(res.getString(CLOSE), 110, 10) { 
        public void run() { 
          onClose(); 
         } 
        }; 
        private MenuItem _english = new MenuItem(res.getString(ENGLISH), 110, 10) 
        { 
        public void run() { 
        Locale.setDefault (Locale.get(Locale.LOCALE_en, null)); 
          refresh(); 
        } 
        }; 
        private MenuItem _french = new MenuItem(res.getString(FRENCH), 110, 10) { 
        public void run() { 
        Locale.setDefault (Locale.get(Locale.LOCALE_fr, null)); 
          refresh(); 
          } 
        }; 
        private MenuItem _spanish = new MenuItem(res.getString(SPANISH), 110, 10) 
        { 
        public void run() { 
        Locale.setDefault (Locale.get(Locale.LOCALE_es, null)); 
          refresh(); 
         } 
        };
        private void refresh() { 
            title.setText(res.getString(FIELD_TITLE)); 
             deleteAll(); 
            rtf = new RichTextField(res.getString(MESSAGE)); 
             add(rtf); 
            _english.setText(res.getString(ENGLISH)); 
            _french.setText(res.getString(FRENCH)); 
            _spanish.setText(res.getString(SPANISH)); 
            _close.setText(res.getString(CLOSE)); 
            } 
    }
  • 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-27T12:16:06+00:00Added an answer on May 27, 2026 at 12:16 pm

    There is an example import—>import blackberry samples—->LocalizationDemo explain how to use multilang in application blackberry

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

Sidebar

Related Questions

I want to make an application that would display a message when a user
i want to make an application which includes dynamic screensaver. User can select multiple
I want to make bigger application that stores multiple avatars for each registered user
I want to make application that will use GPS, as we know at first
I want to make application such that,when user opens application,it will show a google-map
I want to make a application that runs with no form interaction with user
I want make interactive application where user launches it and can do various task
I want to make an Application that uses RxTx version 2.2pre2 to work with
I want to make an application that shows a frame by frame animation when
Okay so I want to make an application that launches other applications. However, the

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.