FAQ
Last updated
Last updated
this error normally occurs in two situations:
A %JavaHome% environment variable is using JRE instead of JDK. In this case you can see how to configure by clicking here.
Eclipse itself is pointing erroneously at the JRE. In this case, just go to the top bar in Windows > Preferences. Then it will open a window and you click on Java > Installed JREs > add. Another window will appear, just click "Next" and then click "Directory" and select the JDK folder that is inside the java folder, where you installed it (usually C: \Program Files\Java). Finally, just click select folder> finish. Confirm that JDK is selected and then just click "Apply and Close" and then restart eclipse.
See step-by-step from item 2 below:
Just add in pom.xml instead of the totalcross SDK version, the following command:
That done, you can deploy it. Already to develop, is the same way that develops for mobile.
Just add iso to pom.xml:
Attention: Please be aware if the version indicated on the pom is the same as your machine.
To disable backup just add Settings.allowBackup = true
within the constructor method in your application's MainWindow
This may be happening because you are using the pendown
instead of the penup
. To better understand, follow the definitions:
pendown
is triggered when there is a touch on the screen.
penup
is triggered when finger flips the screen (or mouse/key, depending on the platform).
To find out if there was a click, it can be detected through the pendrag
, and if it is positive, do not trigger the penup
.
Another smarter solution is to use the this.hadParentScrolled()
method within your pendown method, to identify whether the action is being triggered during the scrolling of some parent component. As shown below:
In the case of Containers:
swap(new InitialScreen());
- If you are in the Main Window and want to call a Container, simply use the swap()
command.
MainWindow.getMainWindow().Swap(new SecondScreen());
- If you are in a container or Window and want to call a Container just use the command.
In the case of Windows:
.popup()
- The execution stops after the popup()
command is executed.
.popupNonBlocking()
- the execution continues right after the popup command, even with the window still open
To understand more in depth how best to use and other ways to navigate between user interfaces, click here
Yes, if it is an FAB we have a component of its own, the FloatingButton
. In other cases, you can change using NinePatch or do the most recommended: use an ImageButton as in the following example:
Just use Font.getFont ("Roboto Medium", true, FontSize);
I checked it here, Vm.getFile looks for the file in the TCZs. An embedded file in TCZ has its size given in an int32 uncompressedSize
; therefore, it can not be more than 4gb. As TotalCross apps are 32bits, as far as I can remember, I would still lower this limit to 2gb, because the system will not be able to allocate more than this contiguous memory.
First, the main function of each is different:
Container: A control capable of containing other controls. It is primarily a form of organization.
Window: it is a control capable of overlapping others, creating an illusion of depth. In addition, Windows is also containers, as they can accommodate several components within them.
To better understand the difference between them in specific cases and how to use both in the most appropriate way, access the Windows X Container session.
By default the GPS class performs location only via GPS, but on Android, you can change your behavior to use Google Play Services to get the location. To do this, change the field precision value to to LOW_GPS_PRECISION
.
Location by Google Play Services is based on a variety of information, including Wifi and Bluetooth. If you specifically want information about the network location used, you can use the CellInfo class in WinCE or Android.
Totalcross doesn't have the java.text
so the DecimalFormat is not on our SDK.
Just use the .addKeyListener and add an action in the specialkeyPressed method like no example below: