Re: [codenameone-discussions] Re: build list gets stuck

2021-07-12 Thread Javier Anton
he ease of building through the build server so it would be great if this >> could be fixed at some point >> >> On Sun, 11 Jul 2021, 09:27 Javier Anton, wrote: >> >>> In my case neither reloading nor cancelling and resending works. I did >>> notice that this

Re: [codenameone-discussions] Re: build list gets stuck

2021-07-11 Thread Javier Anton
I'm happy to wait for a permanent fix as I can still use local gradle builds. Perhaps the new bundle system will fix it in August. But I do enjoy the ease of building through the build server so it would be great if this could be fixed at some point On Sun, 11 Jul 2021, 09:27 Javier Anton,

Re: [codenameone-discussions] Re: build list gets stuck

2021-07-11 Thread Javier Anton
In my case neither reloading nor cancelling and resending works. I did notice that this crept up slowly as since one month ago some builds would get stuck but not always. Now it's all of them On Sun, 11 Jul 2021, 08:38 Shai Almog, wrote: > For Daves case he can just reload the page. If in your c

Re: [codenameone-discussions] Re: build list gets stuck

2021-07-10 Thread Javier Anton
But how can you download the build if it's stuck? On Sat, 10 Jul 2021 at 18:21, Dave Dyer wrote: > The stuck builds don't hurt anything, you can just submit a new build and > it will go through. > ...except you can never tell when they are stuck, you just have to guess. > > > On Saturday, July 1

Re: [codenameone-discussions] Re: build list gets stuck

2021-07-10 Thread Javier Anton
The build server for android is broken. Last I checked was 10 hours ago. Is an issue really needed for this? It's not really a feature or a bug, it's kind of like the service itself On Sat, 10 Jul 2021, 06:00 Shai Almog, wrote: > I suggest filing an issue. > > On Friday, July 9, 2021 at 4:55:07

Re: [codenameone-discussions] Re: build list gets stuck

2021-07-09 Thread Javier Anton
Seeing this now too for android On Tue, 6 Jul 2021 at 03:05, Shai Almog wrote: > Odd that it happens on the short build, I'll try to look into this. > On Monday, July 5, 2021 at 8:31:35 PM UTC+3 daved...@gmail.com wrote: > >> For whatever reason, they seem to be happening a lot. This is on my >

Re: [codenameone-discussions] Re: Problems submitting an image using MultipartRequest

2021-06-29 Thread Javier Anton
Can't be sure without looking at your entire implementation but here are 2 ideas: 1- make sure to add the file via MultipartRequest.addData( and don't call setPost or setFileName 2- make sure your test call in Postman is using Multipart https://stackoverflow.com/questions/16015548/how-to-send-mult

Re: [codenameone-discussions] Re: How to convert a string to date

2021-06-26 Thread Javier Anton
The key point is that new Date().toString() will produce different formats depending on each user's culture, so it cannot be relied upon to go into SimpleDateFormat.parse On Sat, 26 Jun 2021 at 10:03, Javier Anton wrote: > Furthermore, if your source Date is actually a string instead o

Re: [codenameone-discussions] Re: How to convert a string to date

2021-06-26 Thread Javier Anton
String formatoDestino = tipoDestino.equals("F") ? "-MM-dd" : tipoDestino.equals("H") ? "hh:mm:ss" : tipoDestino.equals("T") ? "-MM-dd hh:mm:ss" : ""; SimpleDateFormat formaFechaDestino = new SimpleDateFormat(formatoDestin

Re: [codenameone-discussions] Re: How to convert a string to date

2021-06-26 Thread Javier Anton
Hey, Your method that you shared makes very little sense. You pass new Date.toString() as a parameter but this is not the proper way to create a string from a date The proper way is to first create a SimpleDateFormat with your desired format and then crate the string by doing .format(date) Your

Re: [codenameone-discussions] Re: Problems with conversion from milliseconds to date.

2021-06-20 Thread Javier Anton
Try this: public static String cambiaNumeroFecha(Long fecha) { SimpleDateFormat dateFormat = new SimpleDateFormat(); dateFormat.applyPattern("-MM-dd"); Date d = new Date(fecha); return dateFormat.format(d); } Javier On Mon, 21 Jun 2021 at 05:40, rdvg...@gmail.com wr

Re: [codenameone-discussions] How to create simple buttons with text wrap in BoxLayout.y ?

2021-06-08 Thread Javier Anton
https://www.codenameone.com/javadoc/com/codename1/ui/layouts/FlowLayout.html use the constructor with the orientation param and use CENTER On Tue, 8 Jun 2021 at 07:26, 'P5music' via CodenameOne Discussions < codenameone-discussions@googlegroups.com> wrote: > Thanks > I already tried with FlowLay

Re: [codenameone-discussions] How to create simple buttons with text wrap in BoxLayout.y ?

2021-06-07 Thread Javier Anton
Option 1. Add them to a flowlayout container and add that container to the boxlayout.y Option 2. Override calcPreferredSize and set them to a custom width There are more ways On Mon, 7 Jun 2021, 21:12 'P5music' via CodenameOne Discussions, < codenameone-discussions@googlegroups.com> wrote: > The

[codenameone-discussions] Build server not supporting SDK 30?

2021-06-06 Thread Javier Anton
The build server builds for Android using SDK 29 by default (whereas the local build uses SDK 30) Google is starting to ask to move apps to SDK 30 Building on the build server with android.buildToolsVersion = 30 android.targetSDKVersion = 30 Results in an error: Error: Target id is not valid.

Re: [codenameone-discussions] "container" or "form"?

2021-05-28 Thread Javier Anton
gt; > On Saturday, May 29, 2021 at 12:32:52 AM UTC+1 javier...@gmail.com wrote: > >> If those are the options, the answer is probably Form. The question must >> be asking for who is the parent of all elements, not what class are all >> elements derived from >> >&g

Re: [codenameone-discussions] "container" or "form"?

2021-05-28 Thread Javier Anton
If those are the options, the answer is probably Form. The question must be asking for who is the parent of all elements, not what class are all elements derived from On Sat, 29 May 2021, 00:27 Javier Anton, wrote: > There is a CN1 exam? Interesting > > On Sat, 29 May 2021, 00:25 Com

Re: [codenameone-discussions] "container" or "form"?

2021-05-28 Thread Javier Anton
There is a CN1 exam? Interesting On Sat, 29 May 2021, 00:25 Compte Gmail, wrote: > I'm actually testing myself with a quiz since my exam is coming soon > that's why!! > > On Friday, May 28, 2021 at 10:17:46 PM UTC+1 javier...@gmail.com wrote: > >> What is asking you to choose? What is the contex

Re: [codenameone-discussions] "container" or "form"?

2021-05-28 Thread Javier Anton
What is asking you to choose? What is the context? On Fri, 28 May 2021, 22:15 Compte Gmail, wrote: > It's actually telling me to choose between 4 things "container, > layout,label or form" , which one do your think it's more correct? > Actually, I googled and literally the superclass is a compon

Re: [codenameone-discussions] "container" or "form"?

2021-05-28 Thread Javier Anton
Component, maybe? On Fri, 28 May 2021, 21:53 Compte Gmail, wrote: > I wanted to know which is the parent element of all elements, is it > "container" or "form"? thanks > > -- > You received this message because you are subscribed to the Google Groups > "CodenameOne Discussions" group. > To unsub

Re: [codenameone-discussions] iOS datepicker error

2021-05-26 Thread Javier Anton
Hi, This should work, I think *Form hi = new Form("Test", new BorderLayout()); Container center = new Container(BoxLayout.y()); Picker startDateTimePicker = new Picker(); startDateTimePicker.setType(Display.PICKER_TYPE_DATE_AND_TIME); startDateTimePicker.se

[codenameone-discussions] How can I build a local JavaSE build that uses CEF and not JavaFX?

2021-05-26 Thread Javier Anton
https://stackoverflow.com/questions/67706453/how-can-i-build-a-local-javase-build-that-uses-cef-and-not-javafx 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, s

Re: [codenameone-discussions] Re: New Xcode "mac" option

2021-05-24 Thread Javier Anton
d any mac etc) and publish as a macOS app instead of an iOS app. But this is only a theory and I can't test without access to an M1 Also, building for a "mac" destination currently throws many errors. No idea if this can be actually done On Sun, 9 May 2021 at 07:51, Javier

[codenameone-discussions] AppleLogin issues

2021-05-20 Thread Javier Anton
Seems to be partly broken, don't know when it happened https://github.com/codenameone/CodenameOne/issues/3414 https://developer.apple.com/forums/thread/122458 -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this

Re: [codenameone-discussions] How to determine if the app is being used for the first time?

2021-05-20 Thread Javier Anton
Oh yes, just use the Storage class to write its own file instead of Preferences and then you won't have to worry about Prefs.clearAll Preferences just uses a single file where it stores a dictionary, but you can write separate files and that will take care of it On Thu, 20 May 2021, 16:58 Hannah R

Re: [codenameone-discussions] How to determine if the app is being used for the first time?

2021-05-20 Thread Javier Anton
You can use Preferences to write a small boolean value that is set to true after the first time the app is used Updating an already installed app wont reset the flag as that re uses the app data folder On Thu, 20 May 2021, 16:52 Hannah R, wrote: > Hi, > > How can I find out when the app was l

Re: [codenameone-discussions] Push key is null

2021-05-19 Thread Javier Anton
(only a user like you) Have you tried delaying getting the token a bit? CN1's native code does this thing where it tries to get the token once and then if not available it waits a few secs and tries again Something along these lines: (hope I don't confuse you more than help you) https://gist.gith

[codenameone-discussions] Re: FB violation of platform policies

2021-05-13 Thread Javier Anton
Nevermind, found the email. It was regarding the privacy policy Thx On Thu, 13 May 2021 at 09:02, Javier Anton wrote: > Hi, > > I recently got an email from FB regarding my app (I only use FB login > which requires a FB "app" registration) > > [app] appea

[codenameone-discussions] FB violation of platform policies

2021-05-13 Thread Javier Anton
Hi, I recently got an email from FB regarding my app (I only use FB login which requires a FB "app" registration) [app] appears to be creating a negative experience on Facebook in violation of our Platform Policies . If you do not make the changes to get y

Re: [codenameone-discussions] Re: New Xcode "mac" option

2021-05-08 Thread Javier Anton
No worries I published a new version with the "mac" option ticked, so I guess it doesn't hurt to tick it Thanks Javier On Sun, 9 May 2021, 02:37 Shai Almog, wrote: > Hi, > We had to return our experimental device to Apple so we no longer have it. > I'm personally waiting for M2 to upgrade my

[codenameone-discussions] New Xcode "mac" option

2021-05-08 Thread Javier Anton
Hi all, With the new version of Xcode there is a new "mac" option that is unticked by default in CN1's produced Sources (Click on Project -> Main Target -> Deployment Info) It used to be that the project had 2 options: -iPhone -iPad Now it has 3 (also mac) When Apple first released their new A

Re: [codenameone-discussions] Re: CN1AppleSignIn breaks UWP builds

2021-04-28 Thread Javier Anton
Done Thx On Wed, 28 Apr 2021 at 02:47, Shai Almog wrote: > Please file an issue on this here: > https://github.com/codenameone/CodenameOne/issues/ > We'll try to fix this soon. > On Wednesday, April 28, 2021 at 1:10:12 AM UTC+3 javier...@gmail.com > wrote: > >> For example, >> >> "using System;

[codenameone-discussions] CN1AppleSignIn breaks UWP builds

2021-04-27 Thread Javier Anton
For example, "using System;" is missing from the below file. Can someone please fix the CN1Lib so that at least it doesn't break UWP builds and they compile when this cn1lib is in use? https://github.com/shannah/cn1-applesignin/blob/master/CN1AppleSignIn/native/win/com/codename1/auth/apple/AppleS

Re: [codenameone-discussions] Re: New Google restrictions on CN1 apps

2021-04-18 Thread Javier Anton
2021 at 09:11, Javier Anton wrote: > Thanks > > On Fri, 16 Apr 2021 at 04:50, Shai Almog wrote: > >> Hi, >> I've asked Steve to look into this issue and raised its priority to >> critical. >> >> On Friday, April 16, 2021 at 12:10:34 AM UTC+3 javier

Re: [codenameone-discussions] Re: New Google restrictions on CN1 apps

2021-04-16 Thread Javier Anton
Thanks On Fri, 16 Apr 2021 at 04:50, Shai Almog wrote: > Hi, > I've asked Steve to look into this issue and raised its priority to > critical. > > On Friday, April 16, 2021 at 12:10:34 AM UTC+3 javier...@gmail.com wrote: > >> Darn it >> >> Got this message today. This unresolved, high-priority,

[codenameone-discussions] New Google restrictions on CN1 apps

2021-04-15 Thread Javier Anton
Darn it Got this message today. This unresolved, high-priority, 8-months-old issue is finally coming to bite in the ass https://github.com/codenameone/CodenameOne/issues/3204 We won't be able to update or publish any existing app that uses the Gallery on Android unless this is resolved. The workar

Re: [codenameone-discussions] Maven migrated project problem

2021-04-10 Thread Javier Anton
n the bottom right saying that there were some Maven projects that needed reloading. This fixed it. Fingers crossed it doesn't happen again, and hopefully this is something that only migrated (not new) projects might have to go through On Sat, 10 Apr 2021 at 21:29, Javier Anton wrote: >

Re: [codenameone-discussions] Maven migrated project problem

2021-04-10 Thread Javier Anton
Also, and sorry for the amount of replies, is there a clean way to make IntelliJ detect CN1LIB dependencies in the new maven world? I get errors for every reference (cca.weblite.JSON, Francesco's native log reader, com.codename1.googlemaps, etc) On Sat, 10 Apr 2021 at 19:48, Javier Anton

Re: [codenameone-discussions] Maven migrated project problem

2021-04-10 Thread Javier Anton
Also, all files in common importing from your JSON cn1lib show an error "package ca.weblite.codename1.json does not exist" This happens as soon as this is called for example: import ca.weblite.codename1.json.JSONArray; On Sat, 10 Apr 2021 at 16:22, Javier Anton wrote: > I

Re: [codenameone-discussions] Maven migrated project problem

2021-04-10 Thread Javier Anton
look into it on Tuesday. > > > On Sun, Apr 4, 2021 at 3:22 PM Javier Anton > wrote: > >> Hi, >> >> My new maven migrated project has a problem. When opening files on >> NetBeans, I can't CTRL+Click on any symbols. CTRL+Click brings you to a >> varia

[codenameone-discussions] Maven migrated project problem

2021-04-04 Thread Javier Anton
Hi, My new maven migrated project has a problem. When opening files on NetBeans, I can't CTRL+Click on any symbols. CTRL+Click brings you to a variable/class definition, but this can't be achieved on NetBeans when using the new maven project I can't right click and find all usages either. Any ide

[codenameone-discussions] Control Center's save functionality problem

2021-04-01 Thread Javier Anton
Hi, I've used a gap in my dev routine to upgrade and test the new Control Center and also to migrate to Maven. So far so good. With Steve's help I was able to get the migration going (see long thread on blog post) I know it's been said before: pressing the Control Center's "Save" button doesn't

Re: [codenameone-discussions] Re: Mostly broken, barely usable, install debug apps on IOS

2021-03-24 Thread Javier Anton
I see, all is good. I don't mind the current state of the dashboard. Either way, it's great to know you have plans to improve it On Wed, 24 Mar 2021 at 03:43, Shai Almog wrote: > @Dave you need to make the video visible to people with the link. Sorry I > wasn't clear about that. > @Javier try th

Re: [codenameone-discussions] Google play issue

2021-03-23 Thread Javier Anton
ment api, and for the inscription in my app i show payment form for > continuing the inscription, it will be accepted in google play console or > not? > Kind regards > > On Monday, March 22, 2021 at 3:20:25 PM UTC+1, Javier Anton wrote: >> >> Google and Apple want you to use the

Re: [codenameone-discussions] Re: Mostly broken, barely usable, install debug apps on IOS

2021-03-23 Thread Javier Anton
Yep this has some sort of issue on mobile Safari like Dave was saying, I have also seen it There is another issue when viewing the dashboard on Chrome (desktop) In my experience it looks like clicking goes dormant after the dashboard is open for a while. Clicking again triggers something that awak

Re: [codenameone-discussions] Google play issue

2021-03-22 Thread Javier Anton
Google and Apple want you to use their payment method (and take a %cut) for every in-app payment. There are some exceptions: Payments for physical goods Payments between app users Other So you arent allowed to integrate Stripe/paypal/others for app subscriptions CN1 integrates in-app purchases a

Re: [codenameone-discussions] new behavior: "wants to send notifications"

2021-03-21 Thread Javier Anton
I believe that this is because of Steve's new code that lets iOS show FG notifications. Are you using local notifications code anywhere in that app? https://github.com/codenameone/CodenameOne/blob/6fcc921ee891acc0b4dcba2ea5ee07fabdd63c58/Ports/iOSPort/nativeSources/CodenameOne_GLAppDelegate.m#L159

Re: [codenameone-discussions] Dialogs truncated in landscape mode on Android device

2021-03-18 Thread Javier Anton
Use the show(int int int int) method and specify your margins On Thu, 18 Mar 2021, 14:45 'P5music' via CodenameOne Discussions, < codenameone-discussions@googlegroups.com> wrote: > @Javier that works but it seems a bit extreme: the dialogs now are on the > top part of the interface. > > Il giorno

Re: [codenameone-discussions] Dialogs truncated in landscape mode on Android device

2021-03-18 Thread Javier Anton
I assume you are talking about InteractionDialog. There is a method setFormMode that switches drawing over toolbar I believe On Thu, 18 Mar 2021 at 09:11, 'P5music' via CodenameOne Discussions < codenameone-discussions@googlegroups.com> wrote: > Sorry, > what I wrote is misleading, the issue is t

Re: [codenameone-discussions] Dialogs truncated in landscape mode on Android device

2021-03-18 Thread Javier Anton
Are you placing a TextArea/SpanLabel in your Dialog? If so, you need to recalculate its size after shown and resize it On Thu, 18 Mar 2021 at 08:40, 'P5music' via CodenameOne Discussions < codenameone-discussions@googlegroups.com> wrote: > I am testing my CodenameOne app on real Android device or

Re: [codenameone-discussions] Scrolling UI with a editable BrowserComponent (passing touch events beneath)

2021-03-17 Thread Javier Anton
Right, so what I meant is that there can only be 1 BC in CENTER, and nothing anywhere else in the BL. You can't safely scroll a BC, the scrolling is in the BC itself This is accurate as far as I know On Wed, 17 Mar 2021 at 14:32, 'P5music' via CodenameOne Discussions < codenameone-discussions@goo

Re: [codenameone-discussions] Scrolling UI with a editable BrowserComponent (passing touch events beneath)

2021-03-17 Thread Javier Anton
I think this has been discussed before. BrowserComponent is meant to be used in the center of a BorderLayout Form. Avoid mixing it with other components other than a toolbar. If you want to add stuff next to your BC, add it in the html and pass callbacks On Wed, 17 Mar 2021 at 11:48, 'P5music' via

Re: [codenameone-discussions] Re: Upcoming bug in Android WebView (currently found in Beta) that afectes CN1 apps hosting a BrowserComponent

2021-03-14 Thread Javier Anton
t back to visible >> >> It looks like, with the new WebView beta update, CN1 isn't able to >> animate the BrowserComponent back to the center when showing back a form. >> It looks like it gets stuck on the left side of the screen >> >> On Sat, 13 Mar 2021 at

[codenameone-discussions] Re: Upcoming bug in Android WebView (currently found in Beta) that afectes CN1 apps hosting a BrowserComponent

2021-03-13 Thread Javier Anton
to animate the BrowserComponent back to the center when showing back a form. It looks like it gets stuck on the left side of the screen On Sat, 13 Mar 2021 at 16:35, Javier Anton wrote: > OK, so even though this happens when the Beta version of WebView is > installed on Android, it also st

[codenameone-discussions] Re: Upcoming bug in Android WebView (currently found in Beta) that afectes CN1 apps hosting a BrowserComponent

2021-03-13 Thread Javier Anton
revalidating the content pane gets rid of this On Sat, 13 Mar 2021 at 14:49, Javier Anton wrote: > The following code reproduces the bug. As stated above, to reproduce the > error the Android System Webview (Beta) version needs to be installed and > chosen as primary WebView in Setti

[codenameone-discussions] Re: Upcoming bug in Android WebView (currently found in Beta) that afectes CN1 apps hosting a BrowserComponent

2021-03-13 Thread Javier Anton
rm = new Form("Test", new BorderLayout()); welcomeForm.getToolbar().addMaterialCommandToLeftBar("ShowBack", FontImage.MATERIAL_ARROW_BACK, ee -> { previous.showBack(); }); welcomeForm.show(); } On Sat, 13 Mar 2

Re: [codenameone-discussions] Re: Android Notches/Safe Areas

2021-03-12 Thread Javier Anton
Great thanks On Fri, 12 Mar 2021, 04:36 Shai Almog, wrote: > Android reserves the space on top implicitly unlike iOS so you shouldn't > need anything. The safe area API should work for the noches there too. > Including information about round corners of the device etc. We probably > need more re

Re: [codenameone-discussions] Re: Update push notification message in in the notification drawer

2021-03-11 Thread Javier Anton
Sry if I digress, Shai pls feel free to ammend my words Cn1's push requires you to control this bit of logic server-side. In simple terms, keep a collection of notifications sent in a db somewhere and decide on the server whether new notifs deserve being pushed Even if you inplemented your own pu

Re: [codenameone-discussions] Re: Advice from a developer

2021-03-11 Thread Javier Anton
That sounds like the right thing to do On Thu, 11 Mar 2021, 21:37 'P5music' via CodenameOne Discussions, < codenameone-discussions@googlegroups.com> wrote: > Maybe I have an idea, thanks to you Javier! > I just have to handle the events in JS, and using the callbacks only after > having detected

Re: [codenameone-discussions] Re: Advice from a developer

2021-03-11 Thread Javier Anton
Hi P5, BrowserComponent on Android is nothing more than a native window into a webview. Testing embedded html in any app needs to be done directly on a device, because each device uses a different browser engine to render (ios uses safari, Android uses Chrome). This isn't an issue with CN1, CN1

Re: [codenameone-discussions] Re: About the "Send build to iOS Simulator" choice

2021-03-11 Thread Javier Anton
I also think the same. However I also hope that CN1 can do more than just "eat". They have a fantastic product. The basic tier pricing is very reasonable. Even if you don't need it, it's a way of supporting a project like this If you take the price of similar app development costs into account (io

Re: [codenameone-discussions] Re: Android Notches/Safe Areas

2021-03-11 Thread Javier Anton
Thanks P5, that will be an interesting way to test this On Thu, 11 Mar 2021 at 10:16, 'P5music' via CodenameOne Discussions < codenameone-discussions@googlegroups.com> wrote: > Many phone producers allow you to download the skin of their devices from > their website, you can create an AVD in Andr

[codenameone-discussions] Android Notches/Safe Areas

2021-03-11 Thread Javier Anton
Hi, I just finished adjusting and testing for iPhone notches ( https://www.codenameone.com/blog/safe-areas.html) I did a quick search online and found that there are multiple Android phones with notches now too ( https://www.cnet.com/pictures/phones-with-notches/10/). Has anyone been able to test

[codenameone-discussions] Re: Advice from a developer

2021-03-09 Thread Javier Anton
Hi P5, I feel from your tone that you are coping with frustration. The CEF bit seems to not be a 100% finished product but I know the reasons for adopting it were very compelling. I don't think it's fair to judge CN1 too harshly on this. Testing a browser can be very time consuming. Having us u

[codenameone-discussions] Re: Place your app in the app gallery, improve your Google ranking & help us improve ours

2019-12-06 Thread Javier Anton
New app: Collaborative Groups Create and share your organigrams, family trees and information. Synchronize your changes with the rest of group members Capture your chart and share it in meetings and presentations Text, call or email members with just one tap. Android: https://play.google.com/