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

  • Home
  • SEARCH
  • 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 have a fairly basic app that only has two Activities, the splash screen
I develop an app for iPhone / iPod Touch which has to have access
I wrote a Cocoa app on my Mac which is 10.6.6. I sent it
I recently wrote a small app which will grab contacts from microsoft Outlook and
I have been asked to write an app which screen scrapes info from an
I have to make an iPhone app for a company which has a web
I wrote an iPad app which recieves remote push notifications through apns. The app
I need to write an app which can observe and manipulate the positions of
My task is to write an app(unfortunatly on C) which reads expression in infix
I'd like to write an app-store-approvable app for the iPhone OS which uses libffi.

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.