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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T20:21:25+00:00 2026-06-08T20:21:25+00:00

I am developing one app in which i need to call at particular phone

  • 0

I am developing one app in which i need to call at particular phone number for that i have take LableField and make Number.setChangeListener(this); and implement its method fieldChanged and try to handle event but i cant able to do it with this lablefield

Here is code ::

import net.rim.blackberry.api.invoke.Invoke;
import net.rim.blackberry.api.invoke.PhoneArguments;
import net.rim.device.api.system.Bitmap;
import net.rim.device.api.system.Display;
import net.rim.device.api.ui.Color;
import net.rim.device.api.ui.Field;
import net.rim.device.api.ui.FieldChangeListener;
import net.rim.device.api.ui.Font;
import net.rim.device.api.ui.FontFamily;
import net.rim.device.api.ui.Graphics;
import net.rim.device.api.ui.component.BitmapField;
import net.rim.device.api.ui.component.Dialog;
import net.rim.device.api.ui.component.LabelField;
import net.rim.device.api.ui.component.NullField;
import net.rim.device.api.ui.container.HorizontalFieldManager;
import net.rim.device.api.ui.container.MainScreen;
import net.rim.device.api.ui.container.VerticalFieldManager;
import net.rim.device.api.ui.decor.BackgroundFactory;

public class AboutM1 extends MainScreen implements FieldChangeListener {

    VerticalFieldManager TOPVFM , DescriptionVFM,BottomVFM;
    HorizontalFieldManager TOPHFM,CallHFM,EmailHFM,VIsitUsHFM ;

    LabelField toplable,Description,Description2,Number,callus,Email,EmailID,Visitus,VisitLink;

    Bitmap logom1;
    BitmapField imgField;

    public AboutM1() {

        ((VerticalFieldManager) getMainManager())
                .setBackground(BackgroundFactory
                        .createSolidBackground(0xEDEDED));

         TOPVFM = new VerticalFieldManager(USE_ALL_WIDTH);
         TOPHFM = new HorizontalFieldManager(
                FIELD_HCENTER | FIELD_VCENTER);


         AllBITMAPDeclaration();

         toplable = new LabelField("\n Welcome to", FIELD_BOTTOM) {
            public void paint(Graphics g) {
                g.setBackgroundColor(0xECECEC);
                g.fillRect(0, 0, getWidth(), getHeight());
                g.setColor(Color.RED);

                g.clear();
                super.paint(g);
            }
        };

        FontFamily fontFamily[] = FontFamily.getFontFamilies();
        Font font = fontFamily[1].getFont(FontFamily.CBTF_FONT, 20);
        font = fontFamily[1].getFont(Font.BOLD, 25);
        toplable.setFont(font);


         imgField = new BitmapField(logom1, FIELD_BOTTOM);

        TOPHFM.add(toplable);
        TOPHFM.add(imgField);

        TOPVFM.add(TOPHFM);


        add(TOPVFM);
        LabelField Greenline = new LabelField(
                "_______________________________________") {
            protected void paint(Graphics g) {
                g.setColor(0x324F85);
                super.paint(g);
            }

        };

        add(Greenline);

         DescriptionVFM = new VerticalFieldManager(
                VERTICAL_SCROLL);
         Description = new LabelField(
                "\nasdasdasd  as da sd asd a sd reert er ter t e",
                USE_ALL_WIDTH);
         Description2 = new LabelField(
                "\n\n About Us \n For customer care \n\n");
        /*
         * add(Description); add(Description2);
         */

        DescriptionVFM.add(Description);
        DescriptionVFM.add(new NullField(NullField.FOCUSABLE));
        DescriptionVFM.add(Description2);


        /******************************Bottom Area******************************************/

         BottomVFM = new VerticalFieldManager(USE_ALL_WIDTH );
            CallHFM = new HorizontalFieldManager(
                FIELD_VCENTER);
             callus = new LabelField("Call: ", FIELD_VCENTER);
            Number = new LabelField("+91-79-30487400", FIELD_VCENTER) {


            protected void paint(Graphics g) {
                g.setColor(0x324F85);

                // g.fillRoundRect(0, 0, 50, 5, 7, 7);
                super.paint(g);
            }

            };
            font = fontFamily[2].getFont(Font.BOLD, 18);
            Number.setFont(font);

            CallHFM.add(callus);
            CallHFM.add(Number);
            Number.setChangeListener(this);

            EmailHFM = new  HorizontalFieldManager(FIELD_VCENTER);
             Email = new LabelField("Email: ", FIELD_VCENTER);
             EmailID = new LabelField("Customasdercare@m1asdshopping.com", FIELD_VCENTER) {
                protected void paint(Graphics g) {
                    g.setColor(0x324F85);
                    super.paint(g);
                    }
                };

                EmailID.setFont(font);
                EmailID.setChangeListener(this);
                EmailHFM.add(Email);
                EmailHFM.add(EmailID);

             VIsitUsHFM = new  HorizontalFieldManager(FIELD_VCENTER);
             Visitus = new LabelField("Visit us at: ", FIELD_VCENTER);
             VisitLink = new LabelField("www.asdasd.com", FIELD_VCENTER) {
                protected void paint(Graphics g) {
                    g.setColor(0x324F85);
                    super.paint(g);
                    }
                };

                VisitLink.setFont(font);
                VisitLink.setChangeListener(this);
                VIsitUsHFM.add(Visitus);
                VIsitUsHFM.add(VisitLink);


        BottomVFM.add(CallHFM);
        BottomVFM.add(EmailHFM);
        BottomVFM.add(VIsitUsHFM);

        // add(BottomVFM);
        DescriptionVFM.add(BottomVFM);


        /********************************* END BOTTOM ************************************************/
        add(DescriptionVFM);

    }

    private void AllBITMAPDeclaration() {
        // TODO Auto-generated method stub
        logom1 = Bitmap.getBitmapResource("logo36X36.png");
    }

    public void fieldChanged(Field field, int context) {
        // TODO Auto-generated method stub
        if(field == Number )
        {
            Dialog.alert("asdasd");
             /* PhoneArguments arguments = new PhoneArguments(PhoneArguments.ARG_CALL, "180065449877"); 
              Invoke.invokeApplication(Invoke.APP_TYPE_PHONE, arguments);*/
        }
        if(field == EmailID)
        {
            Dialog.alert("asdasd");
        }
        if(field == VisitLink)
        {
            Dialog.alert("asdasd");

        }

    }
}
  • 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-08T20:21:26+00:00Added an answer on June 8, 2026 at 8:21 pm

    try this –

            LabelField  Number = new LabelField("+91-79-30345487400a5675675676", FIELD_VCENTER|Field.FOCUSABLE) {
            protected void paint(Graphics g) {
                g.setColor(0x324F85);
    
                // g.fillRoundRect(0, 0, 50, 5, 7, 7);
                super.paint(g);
            }
            protected boolean navigationClick(int status, int time) {
               Dialog.alert("clicked");
                return super.navigationClick(status, time);
            }
    
    
            };
            add(Number);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing native iPhone app. I have one requirement that, there are 5
I am developing one app which is based on the webservice and fetch the
I am developing one app , which is required to integrate Google checkout.I am
I'm developing a web app using a cakephp. I've one function in which I
I am developing one application. In that app I am getting the html content
Ok guys I am developing an iPhone app I have a Model class which
We're developing an app (using Grails Spring Security (formerly Acegi)) in which we'll have
I am developing a Facebook app. I have a server side OAuth flow which
I'm developing an app which will have a central database users can add entries
I am developing 1 app in rails 3 with MongoDB (MongoMapper)in which I need

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.