J2ME LWUIT - Drawing email address error - java-me

I'm working on my J2ME application trying to fix some bugs. One of this happens when I want to show a email address.
I have a string with a valid email address (mark#mail.com as example) and when I use drawString of LWUIT it draws the email address without the # (markmail.com)
I try to draw the chain "####" and shows ""
Any idea?. Is it necessary to add some special character to draw #'s?

Solved!
The problem was the charset of the resource file.
I added the # to the charset and now it works
Thanks anyway

Related

How to prevent layout shift when TextInputLayout error is shown

I have a login screen with email and password fields using TextInputEditTexts within TextInputLayouts inside a ConstraintLayout.
When an error message is set to a TextInputLayout it shiftes down all controls below it.
I know that this behavior is normal but how can I prevent the shift, i.e. make the distance between the TextInputEditText and the following control fixed regardless of the error status.
A workarround is to put a space into the helperText attribute app:helperText=" "

How to get barcode number value using barcode plugins in Outsystems?

Question: How to get barcode number value in Barcode Plugins of Outsystems! Thank you!
From the Component page:
How to use this plugin?
Use ScanBarcode client action in order to open the camera and start
the scanning session. If a barcode/qr code is successfully scanned,
the result will be available on the Output Parameter ScanResult. The
usage of front or back camera can be defined through the Settings
parameter, setting Camera to either “front” or “back”. Flash can also
be enabled or disabled and if the sight line should be drawn on the
screen.
You can find more information here:
Supported Formats
Example

DocuSign Anchor Tag Not on Same Page

I get the following error when placing Anchor Tags with a Y offset that will exceed the current page: TAB_OUT_OF_BOUNDS
Any suggestions on how I should handle such cases?
As the error message indicates, the resulting tab placement based off the anchor string, plus the addition of the specified Y offset to the anchor string is causing the tab to go off the page. Either modify the placement of the actual anchor string, or modify the Y offset you are providing for this particular tag to keep it on the page. Depending on your anchor string definitions/approach, you may need to special case this particular tag.
In our case there were some fields at the very edge of a couple of the pages at the bottom causing the automated process to place (something?) outside the page boundaries. We deleted the edge fields and it worked.
steps to reproduce:
upload our document
make a POST to envelopes with templateId specified in the body
in this case it's docusign's system messing up, not ours, and one should think that their system would be able to handle elements that are nearing the document boundaries, also the error message is vague as hell and makes you mistakenly think that there's a field in the source PDF called "Text 42" or "Text 53" or whatever that their system is assigning the I guess auto-generated off-page element.

Show alert with Indeterminate progress indicator Nokia Full Touch j2me

Does anyone know how to show a spinner for progress bar in a j2me alert?
Here is my piece of code so far:
loadingDialog = new Alert("Please Wait","Please Wait.",null,AlertType.INFO);
Gauge gau = new Gauge( null, false,
Gauge.INDEFINITE,
Gauge.CONTINUOUS_RUNNING );
loadingDialog.setIndicator(gau);
loadingDialog.setTimeout(500000);
displays.setCurrent(loadingDialog);
I am getting a horizontal line (like a slider). What I want is a spinner in place of it.
http://www.developer.nokia.com/Resources/Library/Full_Touch/ui-components/progress-indication.html
The second image (labelled non interactive gauge) of the link is what I am looking for:
The way how you create Gauge looks about right, in accordance with instructions given at Nokia page you refer as well as with Gauge API javadocs (available online):
CONTINUOUS_RUNNING
The value representing the continuous-running state of a non-interactive Gauge with indefinite range.
...
INDEFINITE
A special value used for the maximum value in order to indicate that the Gauge has indefinite range.
Explanation at Nokia page (somewhat vague) suggests the most likely reason for the issue you describe is that Nokia shows spinner only in forms, not in alerts:
- Indefinite gauge in Java Form uses spinner.
- An Alert uses a "barber shop roll" (animated bar of fixed length).
The way to test above assumption is to put Gauge like yours into the Form instead of Alert and see how device / emulator displays it.
If Form shows spinner, then the most straightforward workaround is to use Form instead of Alert. In this case, since Form lack "dismissal" feature provided by Alert, you would have to implement it yourself - eg by using TimerTask to schedule form replacement with previous screen.
Hehehe, the clue is in the link you gave --
Java Alerts do not use spinners due to layout constraints.
So it's not possible!

How to change Nokia full touch lwuit form header color

I want to to change the header color of nokia lwuit based full touch form and i have tried setTitleComponent method but it is not working. Please also check the following link
http://projects.developer.nokia.com/LWUIT_for_Series_40/wiki/UsingSeries40FullTouchFeatures
in which it is mentioned we cannot style the header but is it means we cannot change the bgcolor as well or put custom images in the header?
Note that when using LWUIT for Series 40 port, the default way of running LWUIT apps is a normal-size canvas in Series 40 full touch devices. Thus the Series 40 chrome shows on top of canvas. And there is no way of customising it (other than the title text).
If you want to provide branding elements to the title, the options are:
1. create an additional lable below the Series 40 headerbar
2. run the application in full-screen. We are planning to create a high-level API for this but currently it is already possible using the following trick:
((GameCanvas) (javax.microedition.lcdui.Display.getDisplay(this)).getCurrent()).setFullScreenMode(true);
In the latter option you will of course lose the Series 40 full touch layout.
Use lwuit source, you can change method visibility if required, this is example what i used to use gradient color
form.getTitleComponent().getStyle().setBackgroundType(Style.BACKGROUND_GRADIENT_LINEAR_VERTICAL);
form.getTitleComponent().getStyle().setBackgroundGradientEndColor(Color.GRADIENT_END);
form.getTitleComponent().getStyle().setBackgroundGradientStartColor(Color.GRADIENT_START);
form.getTitleComponent().getStyle().setFgColor(Color.WHITE);
form.getTitleComponent().getStyle().setPadding(10,10,0,0);
form.getTitleComponent().getStyle().setFont(font);
Here Color is my custom class that is used for color code, you can use your one.

Resources