Thank you for download our SDK!
TotalCross has several components including a Java based library that helps you create apps for iOS, Android, Windows, Linux and more.
You will write your code once in Java and TotalCross will generate an executable file for each supported platform.
After everything is installed, open eclipse, and follow these steps:
Now we will create the source file and add some code to it.
Now you have to copy and paste the sources below into the HelloTC.java. Then save it.
Now we will run the sample as a Java application.
When you run the program, some messages are sent to the console. If you purchased the professional version, a message like "Next SDK expiration date:" will appear. This message shows the due date that you can run and deploy applications without an internet connection before the SDK blocks. You have Always 1 week to do that. If it succeeds, the activation is done only once per day and is pretty fast.
It also shows some key emulations, which are very helpful:
For example, press the F9 key when you run the sample to simulate the screen rotation.
We can also run as an iPhone with retina display, just changing some parameters.
When you run it in the device, TotalCross will automatically set the font size based on the device's user interface. You can easily find these by running the TotalCrossAPI sample on your device and click on the I button at top right. In this sample we use /scale to scale down (or up) so we can see the user interface.
There are several ways to deploy the application so you can install on a real device. You can use a Linux shell, an ANT script (there’s a sample in the TotalCross Companion), and as a Java application in Eclipse. We will use the last one.
It will generate installs folder with all platforms, except for iOS, because it requires a key from the Apple Developer Program. Please refer to the "TotalCross Companion" to see the other deployment options.