Most voted "totalcross" questions
Totalcross is a mobile development platform designed to help build mobile applications with the JAVA language and features portability to devices such as iPhone, Android, Windows Phone 8, Windows Desktop and Linux.
Learn more…24 questions
Sort by count of
-
6
votes1
answer127
viewsPUT and DELETE methods with Httpstream?
Can anyone tell me if it’s possible to use the HttpStream with the methods PUT and/or DELETE? HttpStream.Options options = new HttpStream.Options();…
-
5
votes2
answers396
viewsconsume REST service with totalcross
I would like to know how to consume a REST service using totalcross. I made an example following what is in the documentation, I am using Httpstream. String url = enderecoWS + servico; HttpStream hs…
-
3
votes3
answers79
viewsTotalcross - Whiteboard starts stroke with point difference initially pressed
I’m using the component Whiteboard, for signatures, however when making a dash, it draws with a difference from the starting point where I pressed the screen, making a vertical risk of approximately…
totalcrossasked 7 years, 7 months ago Nodji Junior 91 -
3
votes0
answers97
viewsTotalcross - Version 3.30 is supported until Android version
I generated an apk with version 3.30, installed on Android 7.1 and when running the application, renders only a black screen. Until Android 6... works correctly.
totalcrossasked 7 years, 7 months ago Nodji Junior 91 -
3
votes1
answer68
viewsHow to Format a String or Put Mask with Totalcross
I’m using it as follows, but it doesn’t work because of the compiler using things from javax.swing.text.Defaultformatter. public string formatar(String text, String mask) throws ParseException {…
totalcrossasked 7 years, 5 months ago João Rocha 71 -
3
votes1
answer133
viewsHow to extract an attribute of type totalcross.util.Date from a JSON
I’m using a webservice that gives me a list of an Object in JSON, and I’m trying to use Jsonfactory to extract the information from JSON to a List. HttpStream httpStream = new HttpStream(new…
totalcrossasked 7 years, 5 months ago Deivison Cardoso 95 -
3
votes3
answers115
viewstotalcross application with images, when deploying for windows CE does not work
When I deploy my application to Windows CE that contains images on the screen or in Buttons no element is displayed, but in the emulator works normally. When I remove images it works normally.…
-
2
votes1
answer65
viewsIs it correct to cast an exception within a Synchronized?
In my app there are some threads that access the database and control this competition using the totalcross Lock. My question is: Can I allow exceptions to be thrown into a Synchronized block ? or…
-
2
votes2
answers173
viewsHow do I Generate MD5 Hash
We need to generate an MD5 hash to pass an encrypted password. Could someone give us an example?
totalcrossasked 7 years, 5 months ago Alessandro Gonçalves 23 -
2
votes0
answers101
viewsHow to open a PDF using Totalcross?
In my application made in Totalcross, I make a call REST and the same returns a byte[] where I convert it to a PDF and save it to a specific directory within the device. In this flow, everything is…
-
2
votes2
answers65
viewsHow to capture the action of a click on a title that is inside a container and that container is inside a scrollContainer?
How to capture the action of a click on a title that is inside a container and that container is inside a scrollContainer? public void onEvent(Event e) { if(e.type == ControlEvent.PRESSED &&…
-
2
votes1
answer75
viewsHow to paint certain lines in a totalcross.ui.Grid
When filling a Totalcross Grid, I have conditioned records that should be highlighted in relation to the others. I thought to change the line color, or show the font in bold. Grid by default shows…
totalcrossasked 7 years, 3 months ago Karpinski 23 -
2
votes0
answers63
viewsIs it possible to save a file to "Downloads" using Totalcross?
To put it in context.. Initially I was trying to implement the opening of a PDF using Totalcross as can be seen in this issue: How to open a PDF using Totalcross? However, there is no solution to…
-
1
votes0
answers35
viewsFile content is not read completely
I am with a case where the contents of the file is not read whole, only part of it. Follow the example: I performed the test to see if the file was correct on the device opening it without using…
totalcrossasked 7 years, 6 months ago Bruno Silva 43 -
1
votes0
answers91
viewsNetwork connection does not work after an idle time. (Socket error 10050)
Hello, The problem described occurs on windows mobile platforms. Tested on equipment: CN50, CN51, MC65, MC67. How to produce the error: Install an app on one of the devices described above.…
totalcrossasked 7 years, 5 months ago Bruno Silva 43 -
1
votes0
answers734
viewsWhiteboard change font and color of text inserted with drawText
Using the component Whiteboard, inserted the text into the image. However, how can I change the color and font of this text?
-
1
votes0
answers99
viewsTotalcross: Generation of QR Code
For kindness, it is possible to generate QR Code through Totalcross code? If so, how should I implement? Which class/interface should I use? If not, any predictions of making this feature available?…
-
1
votes1
answer61
viewsHow to call another Activity/Canvas with Java in Totalcross?
I am developing an application with java through a tool called Totalcross and I need to call another screen/actividy but I do not know what code to do this. In android would be the equivalent of…
-
1
votes1
answer32
viewsHow do I create a simple multiline accordion with Java and Totalcross?
I looked at their example on github but they show how to do a kind of input (a multiedit) for the person to type and not a label with multiple lines.…
-
1
votes1
answer65
viewsConvert a custom Object to JSON in Totalcross
It is possible to serialize a Custom Object for JSON without having to insert field-by-field, for example: JSONObject jsonObject = new JSONObject(); jsonObject.put("id", meuObjeto.id);…
-
1
votes1
answer52
viewsIn totalcross, how to show a popup when I click a button inside a accordion?
I have an application with Totalcross, I am using accordion and within each App I have an update button, how do I make when click the update button a popup with a message "Updated data" appears? I…
-
1
votes1
answer43
viewsHow to solve the problem with the top bar of a Totalcross project
I have a Totalcross Project and when I Gero an apk my program gets the space that is below the top bar of my android device and I would like the project to be below this top bar
totalcrossasked 5 years, 11 months ago J. Eric 64 -
0
votes1
answer451
viewsSlowness during JSON List Conversion using Jsonfactory
I have a problem of slowness with a process that boils down to: receive from a Webservice a JSON, convert the JSON to a Class and INSERT into a local database (Sqlite). I am using a Collector…
totalcrossasked 7 years, 4 months ago Deivison Cardoso 95 -
0
votes0
answers45
viewsPrinting with Mptprinter
Good morning, I need to make an impression using Mptprinter. However this impression needs to have a certain alignment, for example the values need to be printed from right to left. However when I…
totalcrossasked 7 years, 2 months ago Alessandro 53