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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T19:55:18+00:00 2026-05-22T19:55:18+00:00

I wrote an app which has 2 screens. The first screen is triggered by

  • 0

I wrote an app which has 2 screens. The first screen is triggered by the main class. The second screen is opened by clicking a button in the first screen.

public class MyApp extends UiApplication{
    public static void main(String[] args){
        MyApp theApp = new MyApp();       
        theApp.enterEventDispatcher();
    }

    public MyApp(){        
        // Push a screen onto the UI stack for rendering.
        pushScreen(new MyScreen());
    }
} 

public class MyScreen extends MainScreen implements FieldChangeListener
{
    BasicEditField mEdit = null; 
    ButtonField mButton = null;

    public MyScreen() 
    {
        super();                
        mEdit = new BasicEditField("input: ", "some text");
        add(mEdit);
        mButton = new ButtonField("Go second screen");
        mButton.setChangeListener(this);
        add(mButton);
    }
    public void fieldChanged(Field field, int context) 
    {
        if(mButton == field)
        {
            MyScreen2 scr = new MyScreen2();
            scr.setTextValue(mEdit.getText());
            UiApplication.getUiApplication().pushScreen(scr);
            UiApplication.getUiApplication().popScreen(this);
        }
    }
}

public final class MyScreen2 extends MainScreen 
{
    String mTextValue = null;
    LabelField mLabel = null;

    public void setTextValue(String textValue) 
    {
        mTextValue = textValue;
        mLabel.setText(mTextValue);
    }

    public MyScreen2() 
    {
        super();        
        mLabel = new LabelField();
        add(mLabel);
    }
}

It works on the 9700 simulator, but doesn’t work on the smartphone. I wonder what is wrong? I wonder if the smartphone blocks loading app from my computer?

I tried signing .cod but nothing changes.

Any idea?

  • 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-22T19:55:19+00:00Added an answer on May 22, 2026 at 7:55 pm

    you need signing key to run your application on real device … It cost near about 20 dollars

    go here
    you can find all the details from here

    I think it might help you
    cheers

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

Sidebar

Related Questions

I wish to write a windows app which does something when I become disconnected
I want to write a little app for myself which notifies me if there
My question pertains to multi-threading in Java. I'm translating an app I wrote in
I have a simple Google App Engine app, that I wrote using ordinary strings.
I write my app in VS 2008 and so use all the fanciful stuffs
When I write an app, I use the System.Data interfaces (IDbConnection, IDbCommand, IDataReader, IDbDataParameter,
I want to write an app that takes in a model filename via cmd
I'm trying to write an app using Ruby on Rails and I'm trying to
Anyone know if it is possible to write an app that uses the Java
How would one go about displaying taskbar notifications? I want to write an app

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.