How to Use JCreator With an Android

Save

JCreator is a type of Java editing program you install on your desktop to create Java applications. The JCreator can be used to create Android apps, because Android uses Java to create mobile device apps. To get started with JCreator, you create a "Hello World" app that targets the Android version you want to use. To use JCreator, you must specify the project type as "Android."

  • Open the JCreator software on your programming desktop. Click the "File" menu item, and select "New." In the "Project Type" window, click "Android Project," and type a name for the project. Click "OK" to create the Android project template.

  • Double-click the "main.java" source code file. This is the basic file created by the JCreator editor. You create your first Android app code in this file to learn how to use the software.

  • Type the code for the app. The following code prints "Hello, World" to the user's screen:

    public static void main(String [] args)
    {
    System.out.println("Hello, World");
    }

  • Save the file, and click "Run" to execute the code in the JCreator debugger. The output is shown on your screen, so you can verify that the code is valid.

References

Promoted By Zergnet

Comments

Related Searches

M
Is DIY in your DNA? Become part of our maker community.
Submit Your Work!