[codenameone-discussions] Webbrowser with advertising

2018-05-11 Thread rdvg1962
Hi, I want to place advertising in the southern part of my app and that it is repeated in all forms in the same way that admod does it. I thought about putting a Webbrowser component and call a page that has a carload of images or animations (as they are done by Google Web Designer) but that

[codenameone-discussions] Slow results with dynamic AutoCompleteTextField

2018-02-13 Thread rdvg1962
Hi, Load about 25k of records in a table called "articles". To do the dynamic search of the information, I made a select to the table using the "like" function. Perform a test by entering the word "salsa". For each letter the routine goes to the BD and brings "n" number of records. For

[codenameone-discussions] Re: Slow results with dynamic AutoCompleteTextField

2018-02-14 Thread rdvg1962
Hello, I have tried several options but I only get error messages, I appreciate the support on how to insert the UITimer API. My code: final DefaultListModel lmArticulos = new DefaultListModel<>(); AutoCompleteTextField atArticulo = new AutoCompleteTextField(lmArticulos) {

[codenameone-discussions] Help with autocompletetextfield component

2018-02-25 Thread rdvg1962
Hi, Load the component with the names of 100 articles that come from a database. Unfortunately there are names that repeat themselves. I create a method that validates by the name selected in the autocompletetextfield and looks for the complete record of the database. When selecting one of

[codenameone-discussions] Re: Components of the forms disappear

2018-08-28 Thread rdvg1962
Hi, No, I'm going to show the code (really simple) for validation. private void formaTienda(final Form fmLiber) { final Form fmTienda = new Form(new BorderLayout()); fmTienda.getToolbar().setBackCommand("", e -> fmLiber.showBack());

[codenameone-discussions] Components of the forms disappear

2018-08-27 Thread rdvg1962
Hi, I have an app that I am testing on android (Samsung J7 Prime) and sporadically the components of certain form disappear (see images). When I press the Home button and look for the application, the components appear magically. Attached you will see the images in the same way with and

[codenameone-discussions] How to format text within an autocompletetextField field

2018-03-15 Thread rdvg1962
Hi, I'm going from using the combobox to autocompletetextfield. I have a list of supermarkets that in my example the names are repeated but only differ by the address as shown in the figure. To facilitate the search in the listmodel I put the name of the store plus its address. The list with

[codenameone-discussions] Size of the app grows by library CN1.

2018-03-25 Thread rdvg1962
Hi, I'm working on an app that makes use of the "cn1-codescan.cn1Lib" library. When I build an android file the size that is shown is 983 kb. I have the need to use SHA2 and to include the BouncyCastleCN1Lib library. cn1Lib the android file grows to 1873 kb. I clarify that in the properties I

[codenameone-discussions] Problems with dynamic autocompletetextfield.

2018-03-16 Thread rdvg1962
Hi, In another post, Shai explained a trick to allow a complete word to be written before launching the reading into the Database. I modified it a bit to allow one or several words to be written and the reading to be launched when I found a blank space. I have 4 forms which apply the same

[codenameone-discussions] How can I implement Json Web Token?

2018-03-22 Thread rdvg1962
Hi, I have a webservice to which I send requests but I need to raise the level of security. Does CN1 have an api to use the JWT? If yes, I thank you if you have any examples. regards Rubén -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions"

[codenameone-discussions] Re: Codenameone Freelancers?

2018-03-02 Thread rdvg1962
Hello, My email is ruben...@yahoo.com. Let's talk. -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to

[codenameone-discussions] addActionListener method runs 2 times.

2018-10-17 Thread rdvg1962
Hi, Place a small validation on the indicated method that showed a message with the Dialog component when the condition is met. To my surprise the message appears 2 times in a row. Validate that you were not changing the content of the field (textarea component) in any other point of the

[codenameone-discussions] Component List () only works with long pressure

2018-10-23 Thread rdvg1962
Hi, Inside my app I use this component and so far I had no problems. Suddenly it only works when a record is pressed for a long time. The truth I have not made changes on this part of the code and I do not understand what happened until Monday worked well. Out of curiosity validate the date of

[codenameone-discussions] Control proximity sensor and screen intensity.

2018-11-01 Thread rdvg1962
Hi, I need to make an app that detects when a child is placed very close to a device and lower the brightness of the screen according to the distance that is. Is there a way to control the proximity sensor and the brightness of the screen in Codename One? I would appreciate the information.

[codenameone-discussions] How to determine the size of an item within a list

2018-09-03 Thread rdvg1962
Hello, I was forced to copy the autoCompleteTextField component and create a version that suits my needs. Everything is turning out quite well, just that within this class there is the "calcPopuupHeight" method that uses the following instruction to return the size of the popup window: int

[codenameone-discussions] Re: Form that is not always executed.

2018-09-26 Thread rdvg1962
Hi, Based on your suggestion, delete the Timer (logically the Component Dialo does not disappear after 3 seconds) and the problem continues; that is to say: the form does not always appear. What could be happening? -- You received this message because you are subscribed to the Google Groups

[codenameone-discussions] Form that is not always executed.

2018-09-25 Thread rdvg1962
Hi, I have a method that triggers a form that does not always run. The form has a Timer class to control the time it appears and disappears. In addition to this, for some time the warning was displayed in the debug console (Ljava / util / ArrayList; Z) V 'formTotals My code: private void

[codenameone-discussions] Re: How to set a timer to the "LocationListener"

2019-01-05 Thread rdvg1962
Hi, I must be doing something wrong because it does not work for me. Create a small method to start this way: private void geoLocalizacion() { sesion = System.currentTimeMillis(); LocationManager locationManager = LocationManager.getLocationManager();

[codenameone-discussions] Re: How to set a timer to the "LocationListener"

2019-01-05 Thread rdvg1962
HI, It seems that nothing has changed because it constantly repeats the GPS call about one second at a time. > > -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it,

[codenameone-discussions] Problems to load an app in play store

2018-11-28 Thread rdvg1962
Hi, Some time ago, I uploaded 2 app to play store by signing the apk from codename. Today try to upload a new app but google again made a change that I do not understand. If someone has uploaded an app recently, I appreciate that you guide me with the Android app Bundle. Regards. -- You

[codenameone-discussions] Images about buttons are not updated

2018-12-04 Thread rdvg1962
Hi, Inside my app create a section to show non-invasive ads. The addresses of these ads are in a database and every time you enter this section the database is read again. Change the addresses of the images in the Database but the images do not refresh on the buttons. My Code: private

[codenameone-discussions] Re: Images about buttons are not updated

2018-12-05 Thread rdvg1962
Thanks On Wednesday, December 5, 2018 at 12:49:50 AM UTC-5, Shai Almog wrote: > > Hi, > URLImage caches images locally. You need to change the storage file name > too in order for the image to be fetched again, alternatively you can > delete the storage file. > -- You received this message

[codenameone-discussions] How to make an AutoCompleteTextField component not show the keyboard.

2018-12-05 Thread rdvg1962
Hi, I want to use an AutoCompleteTextField component as if it were a combobox. How do I get the keyboard not to activate? Regards. -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving

[codenameone-discussions] How do I make a TextArea Component listen?

2018-12-08 Thread rdvg1962
Hi, My intention is that when I press the field "txNombreArticulo" a new form is opened where a record is chosen and returns the information to the initial form. This works quite well but I create a property in the "txNombreArticulo" component to load the selected record. My idea was that the

[codenameone-discussions] Re: Images about buttons are not updated

2018-12-04 Thread rdvg1962
Ups, I corrected the problem. On Tuesday, December 4, 2018 at 9:43:30 PM UTC-5, rdvg...@gmail.com wrote: > > Hi, > In my app, as many buttons are created as campaign records. The images of > the buttons change depending on who creates or modifies the campaign on a > web page created by me. Each

[codenameone-discussions] Re: MultiButton component does not conform to the size of the form

2018-11-24 Thread rdvg1962
Thanks -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discussions+unsubscr...@googlegroups.com. Visit this group at

[codenameone-discussions] How to order the elements of a container

2018-11-25 Thread rdvg1962
Hi, In my app, every time I enter a new record it is placed in automatic form at the end of the elements of a container. When I read the database I sort the records by date so that the most recent one appears first. I did not find any method that would allow me to order the elements and

[codenameone-discussions] Re: How to order the elements of a container

2018-11-25 Thread rdvg1962
Hi, I already managed to do the ordering but I had to user the replace. I leave the code as a reference: public void ordenaContenedorMayorMenor(Container cnC) { Container cnResp = new Container(BoxLayout.y()); if (cnC.getComponentCount() > 0) { for (int i = 0; i

[codenameone-discussions] Re: How to order the elements of a container

2018-11-27 Thread rdvg1962
Thanks On Sunday, November 25, 2018 at 11:22:34 PM UTC-5, Shai Almog wrote: > > Hi, > use addComponent(0, myComponent) to add a component to the first position. > -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from

[codenameone-discussions] Re: How to set a timer to the "LocationListener"

2019-01-08 Thread rdvg1962
Hi, Change the activation code of the gps in the following way: private void geoLocalizacion() { sesion = System.currentTimeMillis(); localizacionConductor = new Localizacion(sesion); LocationManager.getLocationManager().setLocationListener(localizacionConductor,

[codenameone-discussions] Re: How to set a timer to the "LocationListener"

2019-01-08 Thread rdvg1962
*Hi,* *Again change the code of the location, timing the update of my tables to "n" minutes. In the simulator this works well. In the device I have the problem that every time the device goes into power saving the screen turns off and the GPS cycle also stops working.* *I appreciate any

[codenameone-discussions] Re: How to set a timer to the "LocationListener"

2019-01-07 Thread rdvg1962
Hi, In the simulator and in the device, the same problem occurs. I thank you if you have a suggestion to solve this. In the middle of my desperation I made another code that in the simulator is repeated in the exact time, but in the device it is only executed once. UITimer uit = new

[codenameone-discussions] Re: How to set a timer to the "LocationListener"

2019-01-08 Thread rdvg1962
Hi, I did another test by simplifying the code as much as possible and placing the listener in a minute and in each cycle let a sound occur. Both the simulator and the device repeat the reading in approximately one second. Step to copy the simplified code and I appreciate being told that I am

[codenameone-discussions] How to set a timer to the "LocationListener"

2019-01-04 Thread rdvg1962
Hi, I have read other posts on this topic but I do not see a clear solution. How do I set a time of 15 minutes (for example) to separate each reading of the gps ?. As an alternative I thought about using the UITimer api and using the "Location" (Location position =

[codenameone-discussions] Components of the forms disappear II

2018-09-14 Thread rdvg1962
Hi, On August 27, I wrote version one of my question: " Components of the forms disappear". Today I checked the code and found nothing, I proceeded to change it to minimize its size but I still have the same problems. The truth is that it happens in at least 3 forms of my application and added

[codenameone-discussions] Re: Components of the forms disappear II

2018-09-18 Thread rdvg1962
Hi, I am a man older than 50 and I skipped java and object oriented programming to work on codename one. I have doubts about the console you mention. Is the debug console that has my IDE (netbeans) or what? -- You received this message because you are subscribed to the Google Groups

[codenameone-discussions] How to change the Wallpaper.

2019-02-19 Thread rdvg1962
Hi, How can I change the wallpaper of a mobile phone using an image, gif or video? Thanks -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to

[codenameone-discussions] I can not buy the book "Create an Uber Clone in 7 days"

2019-05-12 Thread rdvg1962
Hi I'm from Panama and I'm trying to buy the Kindle version in Amazon, but it sends me the following message: "Debido a las restricciones de copyright, el título de Kindle que está intentando adquirir no está disponible en su país: Panamá." "Due to copyright restrictions, the Kindle title you

[codenameone-discussions] Re: Uber Clone Database

2019-05-31 Thread rdvg1962
Ok, thanks -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discussions+unsubscr...@googlegroups.com. Visit this group at

[codenameone-discussions] Uber Clone Database

2019-05-30 Thread rdvg1962
Hi, Buy the kindle version of the book. Although in the Entities a large part of the data structure is shown, I do not see anywhere the tables and relations of the Database. Where I download it? -- You received this message because you are subscribed to the Google Groups "CodenameOne

[codenameone-discussions] Re: I can not buy the book "Create an Uber Clone in 7 days"

2019-05-13 Thread rdvg1962
Hi, Thanks for answering. I would like to have a digital copy of the book. Would it be possible for you to write to "Amazon" to solve the problem? -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and

Re: [codenameone-discussions] Replicate php "password_hash" function

2019-05-04 Thread rdvg1962
Thanks for the reply. In my case, I have a web development in php where users are created using the password encryption function ("password_hash"). For communication with mobile devices I have a web service developed in java. It sounds logical that you send the user and password to the web

[codenameone-discussions] Replicate php "password_hash" function

2019-05-03 Thread rdvg1962
Hi I have to connect to a web platform that keeps passwords encrypted with the "password_hash ()" function of php. How can I encrypt the password in the same way using codename one. Thanks for support. -- You received this message because you are subscribed to the Google Groups "CodenameOne

[codenameone-discussions] Re: How to populate a class with PropertyBusinessObject correctly

2019-07-07 Thread rdvg1962
Hi, Precisely, I do not know how I should change the DAO, I would appreciate a guide. Thanks -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to

[codenameone-discussions] Re: How to populate a class with PropertyBusinessObject correctly

2019-07-08 Thread rdvg1962
Hi, Thanks for support. >From the list that comes from the server, I need all the fields that are part of the "User", plus the following fields that are part of the "Device": dispositivoId (Long), numero (String), descripcion (String) and leeHuella (Boolean). -- You received this message

[codenameone-discussions] Re: The new REST api and the use of Param and Body

2019-08-18 Thread rdvg1962
Hi, Thanks for information. -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discussions+unsubscr...@googlegroups.com. To view this

[codenameone-discussions] The new REST api and the use of Param and Body

2019-08-17 Thread rdvg1962
Hi, I am trying to create a record in a Mysql BD. In the client I use the new API Rest but it sends me the following error when I include a Param method with Body: *"[EDT] 0: 0: 0.2 - Exception: java.lang.IllegalStateException - Request body and arguments are mutually exclusive, you can't use

[codenameone-discussions] Loading and Interaction of a Map from Web Service

2019-07-25 Thread rdvg1962
Hi, There are simple things that still cost me and I need to solve a silly interaction problem of a Map. My project extracts information from a web service using the new Rest API. My problem is that the moment I try to interact the Map, all the information comes in a single register. Remark:

[codenameone-discussions] Re: Loading and Interaction of a Map from Web Service

2019-07-26 Thread rdvg1962
Hi, Thank you Mr. Shai, but how do I solve the problem that the information arrives in a single record? -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send an

[codenameone-discussions] Re: Loading and Interaction of a Map from Web Service

2019-07-26 Thread rdvg1962
Hi, The following code shows how I solved the problem, *I need to know if there is a simpler way to do it.* Response jMenu = Rest.get(SERVER_URL + "usuario/busquedaMenu").queryParam("token", Preferences.get("token", null)).acceptJson().getAsJsonMap(); if

[codenameone-discussions] Re: How to populate a class with PropertyBusinessObject correctly

2019-07-07 Thread rdvg1962
Hi, As far as I can investigate, I have 2 paths: The first is to make a DTO class on the server that contains all the properties that I need "User" and "Device". Then create a repository to extract the information and this is what I send to the client. The client has a custom class with all

[codenameone-discussions] How to populate a class with PropertyBusinessObject correctly

2019-07-06 Thread rdvg1962
Hi, I am using the book created by Mr. Shai as a base to carry out my development and I clarify that I do not know anything about Spring Boot, JPA, Jersey, etc. I am trying to login but I have encountered a problem that for many will be trivial. *On the server I have an entity that represents

[codenameone-discussions] Re: How to populate a class with PropertyBusinessObject correctly

2019-07-10 Thread rdvg1962
Hi, Will you have an example of the conversion to DAO? -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to