[codenameone-discussions] Re: This group is now officially deprecated

2021-07-22 Thread Shai Almog
As part of this change the group is now moderated.

On Friday, July 23, 2021 at 6:50:42 AM UTC+3 Shai Almog wrote:

> Please move your discussions to the new reddit group 
> https://reddit.com/r/cn1
> or to stackoverflow with the "codenameone"tag: 
> https://stackoverflow.com/tags/codenameone
>
> While reddit has its drawbacks the control over moderation is much better 
> than Google groups and the environment is far richer.
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/f3deb076-195d-4aa4-a60a-2b46eb048432n%40googlegroups.com.


[codenameone-discussions] Re: Get IMEI

2021-07-22 Thread Shai Almog
Hi,
See: *Caution:* Third-party apps installed from the Google Play Store 
cannot declare privileged permissions.

All of those require deep permissions that Google blocks. Sure you can do 
all of that in Codename One. Some require native calls but that's trivial 
to do in Codename One using Native interfaces. But again, you won't be able 
to ship your app so it seems redundant.

On Thursday, July 22, 2021 at 9:47:18 PM UTC+3 rdvg...@gmail.com wrote:

> Hi,
>
> I began to investigate your comment and found that as of version 10 of 
> Android there are more severe restrictions on the information of the device.
>
> However they mention in the documentation 
> https://developer.android.com/about/versions/10/privacy/changes#non-resettable-device-ids
> that there is a way to access such information.
>
> Is there a way to do this in codenameone?
>
> It is also possible to know when the cell phone is turned off, the battery 
> level or when the gps is turned off?
>
> Thanks
>
> El miércoles, 21 de julio de 2021 a las 21:10:11 UTC-5, Shai Almog 
> escribió:
>
>> Hi,
>> as far as I know Android also ended support for IMEI access without 
>> vendor permissions. This only worked on older devices.
>>
>> On Wednesday, July 21, 2021 at 9:42:57 AM UTC+3 rdvg...@gmail.com wrote:
>>
>>> Hi,
>>>
>>> How do I get the IMEI number?
>>>
>>> I only need it on Android, I tried with 
>>> "Display.getInstance().getMsisdn() ", but this does not work.
>>>
>>> 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/3f96d60f-a6be-493f-a071-06e89bb404b2n%40googlegroups.com.


[codenameone-discussions] Re: Reduce the size of the Dialog window.

2021-07-22 Thread Shai Almog
Hi,
the size of the dialog is determined when you invoke show(). Just use one 
of the many different show variants to position the dialog wherever you 
want. Works with a GUI builder dialog just like it would with a handcoded 
one.

On Thursday, July 22, 2021 at 8:47:36 AM UTC+3 rdvg...@gmail.com wrote:

> Hi,
>
> Am I to interpret that there is no way for the Designer to do it?
>
> El miércoles, 21 de julio de 2021 a las 21:11:24 UTC-5, Shai Almog 
> escribió:
>
>> Hi,
>> You can use explicit positioning when showing a dialog. You can use show 
>> at orientation to align a dialog to a side etc.
>>
>> On Wednesday, July 21, 2021 at 9:46:07 AM UTC+3 rdvg...@gmail.com wrote:
>>
>>> Hi,
>>>
>>> I'm trying to resize the window and change the margins from left to 
>>> right for the "Dialog Body" component, but I can't make it smaller.
>>>
>>> Greetings
>>>
>>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/b71985d4-7d9f-46b0-bccb-df1451962ddcn%40googlegroups.com.


[codenameone-discussions] Re: Reduce the size of the Dialog window.

2021-07-21 Thread Shai Almog
Hi,
You can use explicit positioning when showing a dialog. You can use show at 
orientation to align a dialog to a side etc.

On Wednesday, July 21, 2021 at 9:46:07 AM UTC+3 rdvg...@gmail.com wrote:

> Hi,
>
> I'm trying to resize the window and change the margins from left to right 
> for the "Dialog Body" component, but I can't make it smaller.
>
> Greetings
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/122b641c-7535-48cb-9304-bfc670a18f55n%40googlegroups.com.


[codenameone-discussions] Re: Get IMEI

2021-07-21 Thread Shai Almog
Hi,
as far as I know Android also ended support for IMEI access without vendor 
permissions. This only worked on older devices.

On Wednesday, July 21, 2021 at 9:42:57 AM UTC+3 rdvg...@gmail.com wrote:

> Hi,
>
> How do I get the IMEI number?
>
> I only need it on Android, I tried with "Display.getInstance().getMsisdn() 
> ", but this does not work.
>
> 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/0a798733-d548-41c3-b034-9df7a2264b7fn%40googlegroups.com.


[codenameone-discussions] Re: Problems consuming WS

2021-07-20 Thread Shai Almog
Hi,
there are two possibilities:
- The URL could be unreachable from the device. It's possible that the IP 
address you gave isn't public
- Phones block HTTP URLs by default (there's a warning in the console if 
you'll look). See this answer for Android: 
https://stackoverflow.com/a/57130188/756809 

Notice you will need to have a proper HTTPS server for production...

On Tuesday, July 20, 2021 at 7:07:11 AM UTC+3 rdvg...@gmail.com wrote:

> Hi,
>
> My project is quite large and to demonstrate my problem I have created a 
> small code.
>
> I have a WS in PHP that I have tested with Postman working 100%. In the 
> debugger I run my little code and as the image shows I can see the result 
> of the query without problem.
>
> When I put the app on the cell phone, it sent me the error message that is 
> shown at the end of the attached image.
>
> It is also good that they know that there is a web development that makes 
> use of the DB (not the WS) without problem.
>
> Could you give me any suggestions on how to solve the problem?
> Greetings
>
> [image: error.png]
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/35ea7f75-936f-452b-a50b-01a5649ec46fn%40googlegroups.com.


[codenameone-discussions] Re: Variable that is not refreshed

2021-07-19 Thread Shai Almog
Hi,
static final fields are copied by the javac compiler. So even if you change 
them you might still have an older value all over the code. 
Do a clean build to workaround this.

On Tuesday, July 20, 2021 at 5:53:52 AM UTC+3 rdvg...@gmail.com wrote:

> Hi,
>
> I have a static variable "SERVER_URL" where I keep the URL that I use to 
> consume a WS. At some point put the address 172.31.29.165 for testing. 
> Currently I use 3.12.118.139 as shown in the box in the attached image, but 
> for some reason it sends me an error directing me to the other IP address.
> I am using Netbeans as IDE.
>
> This has me surprised and I appreciate your comments.
> [image: error.png]
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/c16fad1d-95bb-4138-8451-161aed8208fan%40googlegroups.com.


[codenameone-discussions] Re: Netbeans and Maven

2021-07-19 Thread Shai Almog
The plugin is no longer applicable with Maven so that's OK. Not sure about 
the problem in NetBeans, we'll need to check.

On Monday, July 19, 2021 at 11:07:01 PM UTC+3 mcw wrote:

>
> I have been away from CodenameOne for months and am just getting back. 
> Everything has changed and I am trying to convert my projects to Maven
>
> I am running Netbeans 8.2 on Kubuntu 20.04
> I have the CodenameOne plugin 7.0
>
> I downloaded the latest version of the migration tool, 1.0.3 and converted 
> my project I got a Success message.
>
> I opened my project in Netbeans, the first thing I noticed was that the 
> project icon said it was a Netbeans project not a CodenameOne project. The 
> CodenameOne menu item was missing. I tried to build the project but it 
> failed:
>
> cd /rware/src/rware_mobile/cn1/rwmain; JAVA_HOME=/opt/jdk1.8.0_292 
> /opt/netbeans-8.2/java/maven/bin/mvn -f 
> /rware/src/rware_mobile/cn1/rwmain/pom.xml install
> Scanning for projects...
>
> Some problems were encountered while building the effective model for 
> com.readerware.xware.readerware:rwmain-common:jar:1.0-SNAPSHOT
> 'build.plugins.plugin.version' for 
> org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 300, 
> column 21
>
> It is highly recommended to fix these problems because they threaten the 
> stability of your build.
>
> For this reason, future Maven versions might no longer support building 
> such malformed projects.
>
> 
> Reactor Build Order:
>
> rwmain
> rwmain-cn1libs
> cn1-codescan
> rwmain-common
> 
> 
> Building rwmain 1.0-SNAPSHOT
> 
> Downloading: 
> http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.3.1/maven-install-plugin-2.3.1.pom
>
> 
> Reactor Summary:
>
> rwmain  FAILURE [0.392s]
> rwmain-cn1libs  SKIPPED
> cn1-codescan .. SKIPPED
> rwmain-common . SKIPPED
> 
> BUILD FAILURE
> 
> Total time: 0.505s
> Finished at: Mon Jul 19 12:51:30 PDT 2021
> Final Memory: 7M/119M
> 
> Plugin org.apache.maven.plugins:maven-install-plugin:2.3.1 or one of its 
> dependencies could not be resolved: Failed to read artifact descriptor for 
> org.apache.maven.plugins:maven-install-plugin:jar:2.3.1: Could not transfer 
> artifact org.apache.maven.plugins:maven-install-plugin:pom:2.3.1 from/to 
> central (http://repo.maven.apache.org/maven2): Failed to transfer file: 
> http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.3.1/maven-install-plugin-2.3.1.pom.
>  
> Return code is: 501 , ReasonPhrase:HTTPS Required. -> [Help 1]
>
> To see the full stack trace of the errors, re-run Maven with the -e switch.
> Re-run Maven using the -X switch to enable full debug logging.
>
> For more information about the errors and possible solutions, please read 
> the following articles:
> [Help 1] 
> http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
>
> Any idea what I am doing wrong?
>
> I also used the Codename One initializr to build the Bare-bones Java App, 
> same problem in Netbeans. When I tried to run it from the command line, it 
> worked.
>
> Thanks,
>
> Martin
>
>
>
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/a8f2743c-48e7-4a04-bf73-a2ee9f0f23e8n%40googlegroups.com.


[codenameone-discussions] Re: Custom Loading progress for BrowserComponent

2021-07-19 Thread Shai Almog
Hi,
this is a native Android feature. You can just place any animation you want 
on top of the UI e.g. in the LayeredPane (not a dialog). 
Then when you get the web event you can just remove the animation.

On Monday, July 19, 2021 at 10:16:50 PM UTC+3 davidwaf wrote:

> Hi,
>
> I was reading on this, and I see one can hide loading progress:
> Display.getInstance().setProperty("WebLoadingHidden", "true");
>
> Is there a way to customize the loading, with own image besides hiding it ?
>
> -- 
> David W
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/f46dbb0f-f433-418a-b37f-371dee519c9cn%40googlegroups.com.


[codenameone-discussions] Re: How to remove the strip that appears at the top of the form

2021-07-16 Thread Shai Almog
Hi,
you can use the Component Inspector tool from the simulator to see the 
offending component and style it.
In this case a simple hack of getToolbar().setUIID("Container"); will 
probably do the trick.

On Saturday, July 17, 2021 at 4:16:35 AM UTC+3 rdvg...@gmail.com wrote:

> Hi,
>
> The image shows a line at the top of the shape. I don't use the designer 
> for the form.
> Before showing this form I use a splash type that only shows the logo.
> How is this corrected? Thanks
>
> [image: error.png]
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/48da3415-a3b7-46ec-b146-bb4c0470ec18n%40googlegroups.com.


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

2021-07-11 Thread Shai Almog
Bundle is already supported for all builds and has been for a while. Can 
you send a build and send a message with your account email in chat? 

We can try to reactivate it so we can understand what failed.

On Sunday, July 11, 2021 at 11:37:11 AM UTC+3 javier...@gmail.com wrote:

> 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,  wrote:
>
>> 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 case it's stuck 
>>> forever try canceling and resending the build. 
>>>
>>> On Saturday, July 10, 2021 at 10:19:57 PM UTC+3 javier...@gmail.com 
>>> wrote:
>>>
>>>> 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 10, 2021 at 2:55:50 AM UTC-7 javier...@gmail.com 
>>>>> wrote:
>>>>>
>>>>>> 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 PM UTC+3 javier...@gmail.com 
>>>>>>> wrote:
>>>>>>>
>>>>>>>> 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 short build which only takes 2 minutes.
>>>>>>>>>>
>>>>>>>>>> On Sunday, July 4, 2021 at 6:56:19 PM UTC-7 Shai Almog wrote:
>>>>>>>>>>
>>>>>>>>>>> These are crashes or timeouts in the servers. We're looking into 
>>>>>>>>>>> these but they're pretty hard to debug.
>>>>>>>>>>>
>>>>>>>>>>> On Sunday, July 4, 2021 at 6:30:46 AM UTC+3 daved...@gmail.com 
>>>>>>>>>>> wrote:
>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> Sometimes the builds list gets stuck with an app in "building" 
>>>>>>>>>>>> state,
>>>>>>>>>>>> where it actually has finished.  Refreshing the browser window
>>>>>>>>>>>> doesn't fix it.  The underlying database knows the truth and 
>>>>>>>>>>>> lets
>>>>>>>>>>>> me start another build, but I can never get the status or result
>>>>>>>>>>>> of the bad build.
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> -- 
>>>>>>>>> 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-discu...@googlegroups.com.
>>>>>>&g

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

2021-07-11 Thread Shai Almog
For Daves case he can just reload the page. If in your case it's stuck 
forever try canceling and resending the build. 

On Saturday, July 10, 2021 at 10:19:57 PM UTC+3 javier...@gmail.com wrote:

> 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 10, 2021 at 2:55:50 AM UTC-7 javier...@gmail.com wrote:
>>
>>> 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 PM UTC+3 javier...@gmail.com wrote:
>>>>
>>>>> 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 
>>>>>>> short build which only takes 2 minutes.
>>>>>>>
>>>>>>> On Sunday, July 4, 2021 at 6:56:19 PM UTC-7 Shai Almog wrote:
>>>>>>>
>>>>>>>> These are crashes or timeouts in the servers. We're looking into 
>>>>>>>> these but they're pretty hard to debug.
>>>>>>>>
>>>>>>>> On Sunday, July 4, 2021 at 6:30:46 AM UTC+3 daved...@gmail.com 
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>>
>>>>>>>>> Sometimes the builds list gets stuck with an app in "building" 
>>>>>>>>> state,
>>>>>>>>> where it actually has finished.  Refreshing the browser window
>>>>>>>>> doesn't fix it.  The underlying database knows the truth and lets
>>>>>>>>> me start another build, but I can never get the status or result
>>>>>>>>> of the bad build.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> -- 
>>>>>> 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-discu...@googlegroups.com.
>>>>>> To view this discussion on the web visit 
>>>>>> https://groups.google.com/d/msgid/codenameone-discussions/ad20b9ac-e9d7-4e5f-8376-1772aff01b4an%40googlegroups.com
>>>>>>  
>>>>>> <https://groups.google.com/d/msgid/codenameone-discussions/ad20b9ac-e9d7-4e5f-8376-1772aff01b4an%40googlegroups.com?utm_medium=email_source=footer>
>>>>>> .
>>>>>>
>>>>> -- 
>>>> 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-discu...@googlegroups.com.
>>>>
>>> To view this discussion on the web visit 
>>>> https://groups.google.com/d/msgid/codenameone-discussions/206b2b0c-44d4-41d6-94a6-395343f797b2n%40googlegroups.com
>>>>  
>>>> <https://groups.google.com/d/msgid/codenameone-discussions/206b2b0c-44d4-41d6-94a6-395343f797b2n%40googlegroups.com?utm_medium=email_source=footer>
>>>> .
>>>>
>>> -- 
>> 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-discu...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/codenameone-discussions/6a29004b-f468-4dcd-8b11-387bb6362a06n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/codenameone-discussions/6a29004b-f468-4dcd-8b11-387bb6362a06n%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/ea045c72-9cda-4a39-93a1-0d4d4779bc23n%40googlegroups.com.


[codenameone-discussions] Re: I cannot detect the cancellation in the password addition in FingerPrint

2021-07-11 Thread Shai Almog
Hi,
is the callback invoked at all? You can show a toast if it is. Are we 
talking about Android here?

On Saturday, July 10, 2021 at 7:43:31 PM UTC+3 rdvg...@gmail.com wrote:

> Hi,
>
> I am testing with the example that is in github, I changed the add method 
> and I cannot detect the cancellation.
>
> Code:
> addItem.addActionListener(evt -> {
> if (!Fingerprint.isAvailable()) {
> ToastBar.showErrorMessage("Fingerprint not avaiable on 
> this platform");
> return;
> }
> AsyncResource r = Fingerprint.addPassword("Adding 
> secure item to keystore", keyName.getText(), keyValue.getText());
> if (r.isCancelled()) {
> Dialog.show("Error", "Cancelled process", "Continuar", 
> null);
> }
> });
>
> 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/729671bb-5e32-4081-8a6c-6864863dc91fn%40googlegroups.com.


[codenameone-discussions] Re: android certicicate generator

2021-07-11 Thread Shai Almog
Hi,
It's still there under the "Advanced" section.

On Saturday, July 10, 2021 at 2:09:18 PM UTC+3 pbellpi...@gmail.com wrote:

> Hi 
>
> There is no android certificate generator anymore in codenameone settings. 
> How do i sign a android app now with codename one.
>
> ciao
> Peter Bell
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/22a0293f-b38f-4d66-899a-37440d7b1b6an%40googlegroups.com.


[codenameone-discussions] Re: Doubts about the fingerprint

2021-07-09 Thread Shai Almog
Hi,
As far as I know biometrics aren't editable or added via apps. But I'm not 
an expert in this field.

On Saturday, July 10, 2021 at 7:48:36 AM UTC+3 rdvg...@gmail.com wrote:

> Hi,
>
> Sorry, I was quick to draw conclusions, apparently the success of its use 
> is through the key.
>
> El Thursday, July 8, 2021 a la(s) 10:51:22 PM UTC-5, rdvg...@gmail.com 
> escribió:
>
>> Hi,
>>
>> Thanks for answering.
>> What you comment makes a lot of logic. One of the things I try is to 
>> ensure that there are no security leaks. A user could pass the cell phone 
>> to another person and register their fingerprint (up to 4 are allowed) and 
>> use the app without problem. That's why it seems important to me that the 
>> footprint can be created and managed from the app.
>>
>> El jueves, 8 de julio de 2021 a las 22:15:41 UTC-5, Shai Almog escribió:
>>
>>> As far as I recall the device needs to already have your fingerprint 
>>> scanned and authenticated. So if the device is passed to someone else he'll 
>>> need to go into settings and update the list of fingerprints. If your OK 
>>> with any user as long as he's authenticated you can just approve everyone 
>>> who has a fingerprint on the device. Since the device is already secured by 
>>> password/fingerprint this should work.
>>>
>>> On Thursday, July 8, 2021 at 7:08:33 PM UTC+3 rdvg...@gmail.com wrote:
>>>
>>>> I have to make an app that, depending on the option that the user 
>>>> takes, must first be validated by the fingerprint reader in order to 
>>>> continue.
>>>>
>>>> Users can use the cell phone for several months and then be replaced by 
>>>> other users, it is for that reason that I thought that my app should allow 
>>>> to create or update the fingerprint according to the need.
>>>>
>>>> Download the example program and do tests on a Samsung A50 and for the 
>>>> example to work I first had to create the footprint in the configuration 
>>>> options.
>>>>
>>>> In the example it is allowed to enter a key and its value.
>>>>
>>>> I'm sure I'm not understanding how it works and I have the following 
>>>> doubts:
>>>> Is there a way to create the fingerprint without having it previously 
>>>> created in the cell phone settings?
>>>> What is the key for me if I can add, take or delete an item without it?
>>>> Although the device supports the fingerprint reader, I don't see a way 
>>>> for an app to detect it if there is not a configured fingerprint first. 
>>>> This can be misleading.
>>>>
>>>> I appreciate your comments.
>>>>
>>>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/bfb8556c-4189-49df-a49e-2737d949cbacn%40googlegroups.com.


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

2021-07-09 Thread Shai Almog
I suggest filing an issue. 

On Friday, July 9, 2021 at 4:55:07 PM UTC+3 javier...@gmail.com wrote:

> 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 
>>> short build which only takes 2 minutes.
>>>
>>> On Sunday, July 4, 2021 at 6:56:19 PM UTC-7 Shai Almog wrote:
>>>
>>>> These are crashes or timeouts in the servers. We're looking into these 
>>>> but they're pretty hard to debug.
>>>>
>>>> On Sunday, July 4, 2021 at 6:30:46 AM UTC+3 daved...@gmail.com wrote:
>>>>
>>>>>
>>>>> Sometimes the builds list gets stuck with an app in "building" state,
>>>>> where it actually has finished.  Refreshing the browser window
>>>>> doesn't fix it.  The underlying database knows the truth and lets
>>>>> me start another build, but I can never get the status or result
>>>>> of the bad build.
>>>>>
>>>>>
>>>>> -- 
>> 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-discu...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/codenameone-discussions/ad20b9ac-e9d7-4e5f-8376-1772aff01b4an%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/codenameone-discussions/ad20b9ac-e9d7-4e5f-8376-1772aff01b4an%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/206b2b0c-44d4-41d6-94a6-395343f797b2n%40googlegroups.com.


[codenameone-discussions] Re: editing properties on a new platform

2021-07-09 Thread Shai Almog
Is this on Maven or on the plugin. I suggest moving to maven where this 
migration should work more smoothly.
On Friday, July 9, 2021 at 9:54:45 AM UTC+3 daved...@gmail.com wrote:

> also, after editing to make the paths superficially acceptable, the wizard
> is unable to save - but there are no complaints, just a lack of result.
>
> On Thursday, July 8, 2021 at 10:06:38 PM UTC-7 Dave Dyer wrote:
>
>>
>> This is a minor FYI.  I'm experimenting with moving
>> projects from a PC to a Mac, and I expect to have to
>> do some wrangling to get the path names correct.
>>
>> However, the "Codename1 Settings " action in eclipse
>> doesn't even open the wizard due to some problem with
>> the pc style pathnames embedded in codenameone-settings.properties
>>
>>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/5221d9df-f8ba-44a2-99c3-09ead7e81a19n%40googlegroups.com.


[codenameone-discussions] Re: TextField editing causes disturbance to BrowserComponent

2021-07-08 Thread Shai Almog
I'm guessing there's an exception in the JavaScript side. Ideally you would 
connect to the iOS webkit debugger on the device to see that. Haven't tried 
this: 
https://stackoverflow.com/questions/25871586/how-to-debug-javascript-code-inside-a-wkwebview

On Thursday, July 8, 2021 at 1:21:47 PM UTC+3 P5music wrote:

> My app features a BrowserComponent where text is edited and it is also 
> possible that material icons are displayed as images inside the BC.
>
> The images are created as base64 data and injected as IMG tags.
> It works, but there is something very strange happening.
>
> The user experience is the following (iOS simulator, iOS 14, iOS 12):
>
> -entering the editable area inside the BC
> -clicking one button outside the BC to inject the image at the caret 
> position
> -the button has a listener, and when the method is executed the some 
> javascript is executed
> -the javascript detects the caret position and calls a callback.success 
> method that opens a dialog (it's a special class CommandDialog) with 
> confirmation buttons and a TextField.
>
> now
> two possible scenarios are experienced:
> 1-the user hits the OK button and the image is correctly injected with 
> another javascript command
>
> 2-the user edits the TextField or just enters it (click inside) and the 
> image is not injected, so I think the javascript command is uneffective, or 
> the selection range is lost (the care position is in that range javascript 
> object)
>
> When entering the textfield I see that something happens in the layout, 
> maybe it is recalculated, I notice slight movement of some buttons.
>
> Are you aware or guessing of some problems that the TextField can cause to 
> the described workflow? What disturbance is made to the BC, just when the 
> TextField is entered?
>
> This issue is not present when testing on the CN1 simulator. Images are 
> always correctly injected despite even editing the TextField.
>
> Thanks in advance
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/edec807f-6d2b-4156-9d68-b7c48d2aa1b7n%40googlegroups.com.


[codenameone-discussions] Re: Doubts about the fingerprint

2021-07-08 Thread Shai Almog
As far as I recall the device needs to already have your fingerprint 
scanned and authenticated. So if the device is passed to someone else he'll 
need to go into settings and update the list of fingerprints. If your OK 
with any user as long as he's authenticated you can just approve everyone 
who has a fingerprint on the device. Since the device is already secured by 
password/fingerprint this should work.

On Thursday, July 8, 2021 at 7:08:33 PM UTC+3 rdvg...@gmail.com wrote:

> I have to make an app that, depending on the option that the user takes, 
> must first be validated by the fingerprint reader in order to continue.
>
> Users can use the cell phone for several months and then be replaced by 
> other users, it is for that reason that I thought that my app should allow 
> to create or update the fingerprint according to the need.
>
> Download the example program and do tests on a Samsung A50 and for the 
> example to work I first had to create the footprint in the configuration 
> options.
>
> In the example it is allowed to enter a key and its value.
>
> I'm sure I'm not understanding how it works and I have the following 
> doubts:
> Is there a way to create the fingerprint without having it previously 
> created in the cell phone settings?
> What is the key for me if I can add, take or delete an item without it?
> Although the device supports the fingerprint reader, I don't see a way for 
> an app to detect it if there is not a configured fingerprint first. This 
> can be misleading.
>
> I appreciate your comments.
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/4280a8ab-ef19-4be1-b29e-e6a01097c214n%40googlegroups.com.


[codenameone-discussions] Re: Custom permission messages

2021-07-08 Thread Shai Almog
If you can produce a test case for this please file an issue and we'll try 
to look into it.

On Thursday, July 8, 2021 at 11:29:06 PM UTC+3 hana@gmail.com wrote:

> I can see I get the custom notification after I deny the permission and 
> then trigger the location requirement again. For some reason I was 
> convinced that this message should appear when the Location called, not 
> only when the permission is denied. 
> This works with android.permission.ACCESS_FINE_LOCATION.
> However,  android.permission.ACCESS_BACKGROUND_LOCATION still doesn't show 
> custom messages - after you denied it, and then tried to use Location 
> again, it's asking default "Allow background location".
>
> I created a simple dialog for the moment when the permission will be 
> asked. 
>
> On Wednesday, July 7, 2021 at 10:02:36 PM UTC-4 Shai Almog wrote:
>
>> What about android.permission.ACCESS_FINE_LOCATION ?
>> Do you have the exact text of the message you're getting? I can search 
>> the source code for it and see where it's coming from.
>>
>> On Wednesday, July 7, 2021 at 4:12:09 PM UTC+3 hana@gmail.com wrote:
>>
>>> Thank you. 
>>> I tried with the  ACCESS_BACKGROUND_LOCATION too, same result - no 
>>> message is shown. 
>>>
>>> Am I missing something? 
>>>
>>> On Tuesday, July 6, 2021 at 10:47:06 PM UTC-4 Shai Almog wrote:
>>>
>>>> I don't see that permission in code. I see fine location and 
>>>> android.permission.ACCESS_BACKGROUND_LOCATION 
>>>> but not COARSE. I'll have to check.
>>>>
>>>> On Tuesday, July 6, 2021 at 10:05:07 PM UTC+3 hana@gmail.com wrote:
>>>>
>>>>> Sorry, wrong link. 
>>>>> Here is the one I followed:
>>>>>
>>>>> https://www.codenameone.com/blog/switching-on-android-marshmallow-permission-prompts.html
>>>>>
>>>>> On Tuesday, July 6, 2021 at 3:03:15 PM UTC-4 Hannah R wrote:
>>>>>
>>>>>> How to add custom permission messages? 
>>>>>>
>>>>>> I followed this blog (
>>>>>> https://www.codenameone.com/blog/tip-intercept-incoming-sms-on-android.html)
>>>>>>  
>>>>>> and added 
>>>>>> Display.getInstance().setProperty("android.permission.ACCESS_COARSE_LOCATION",
>>>>>>  
>>>>>> "We need access to your location"); into my init() method, but 
>>>>>> nothing happened. I still get default dialogs when the permission is 
>>>>>> requested.
>>>>>>
>>>>>> Thank you. 
>>>>>
>>>>>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/6cecddf6-70f7-4700-b805-e8804a87ff00n%40googlegroups.com.


[codenameone-discussions] Re: Custom permission messages

2021-07-07 Thread Shai Almog
What about android.permission.ACCESS_FINE_LOCATION ?
Do you have the exact text of the message you're getting? I can search the 
source code for it and see where it's coming from.

On Wednesday, July 7, 2021 at 4:12:09 PM UTC+3 hana@gmail.com wrote:

> Thank you. 
> I tried with the  ACCESS_BACKGROUND_LOCATION too, same result - no message 
> is shown. 
>
> Am I missing something? 
>
> On Tuesday, July 6, 2021 at 10:47:06 PM UTC-4 Shai Almog wrote:
>
>> I don't see that permission in code. I see fine location and 
>> android.permission.ACCESS_BACKGROUND_LOCATION 
>> but not COARSE. I'll have to check.
>>
>> On Tuesday, July 6, 2021 at 10:05:07 PM UTC+3 hana@gmail.com wrote:
>>
>>> Sorry, wrong link. 
>>> Here is the one I followed:
>>>
>>> https://www.codenameone.com/blog/switching-on-android-marshmallow-permission-prompts.html
>>>
>>> On Tuesday, July 6, 2021 at 3:03:15 PM UTC-4 Hannah R wrote:
>>>
>>>> How to add custom permission messages? 
>>>>
>>>> I followed this blog (
>>>> https://www.codenameone.com/blog/tip-intercept-incoming-sms-on-android.html)
>>>>  
>>>> and added 
>>>> Display.getInstance().setProperty("android.permission.ACCESS_COARSE_LOCATION",
>>>>  
>>>> "We need access to your location"); into my init() method, but nothing 
>>>> happened. I still get default dialogs when the permission is requested.
>>>>
>>>> Thank you. 
>>>
>>>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/607cef82-3fc9-4bc8-b600-834e52197d47n%40googlegroups.com.


[codenameone-discussions] Re: Custom permission messages

2021-07-06 Thread Shai Almog
I don't see that permission in code. I see fine location and 
android.permission.ACCESS_BACKGROUND_LOCATION 
but not COARSE. I'll have to check.

On Tuesday, July 6, 2021 at 10:05:07 PM UTC+3 hana@gmail.com wrote:

> Sorry, wrong link. 
> Here is the one I followed:
>
> https://www.codenameone.com/blog/switching-on-android-marshmallow-permission-prompts.html
>
> On Tuesday, July 6, 2021 at 3:03:15 PM UTC-4 Hannah R wrote:
>
>> How to add custom permission messages? 
>>
>> I followed this blog (
>> https://www.codenameone.com/blog/tip-intercept-incoming-sms-on-android.html) 
>> and added 
>> Display.getInstance().setProperty("android.permission.ACCESS_COARSE_LOCATION",
>>  
>> "We need access to your location"); into my init() method, but nothing 
>> happened. I still get default dialogs when the permission is requested.
>>
>> Thank you. 
>
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/83a87591-1ff7-4fb8-b003-9da3ada2084fn%40googlegroups.com.


[codenameone-discussions] Re: build list gets stuck

2021-07-05 Thread Shai Almog
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 short 
> build which only takes 2 minutes.
>
> On Sunday, July 4, 2021 at 6:56:19 PM UTC-7 Shai Almog wrote:
>
>> These are crashes or timeouts in the servers. We're looking into these 
>> but they're pretty hard to debug.
>>
>> On Sunday, July 4, 2021 at 6:30:46 AM UTC+3 daved...@gmail.com wrote:
>>
>>>
>>> Sometimes the builds list gets stuck with an app in "building" state,
>>> where it actually has finished.  Refreshing the browser window
>>> doesn't fix it.  The underlying database knows the truth and lets
>>> me start another build, but I can never get the status or result
>>> of the bad build.
>>>
>>>
>>>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/ad20b9ac-e9d7-4e5f-8376-1772aff01b4an%40googlegroups.com.


[codenameone-discussions] Re: Log messages not appearing on the iOS simulator console

2021-07-05 Thread Shai Almog
Release should still print logging.
I don't see any change in the native code with the latest maven release so 
I don't think that's possible.
On Monday, July 5, 2021 at 6:38:13 PM UTC+3 P5music wrote:

> No, it does not work as well.
> I would like to know if it is possible that I altered something in my 
> project inadvertently, like changing from Debug to Release somewhere.
> It is something that happens only with the CN1 app, opening the snapshot 
> project as created by maven.
> Is it also possible that the maven script has a bug in it, so its last 
> version that runs now, causes absent logging, or set the project to Release?
> Regards
> Il giorno lunedì 5 luglio 2021 alle 15:21:03 UTC+2 hana@gmail.com ha 
> scritto:
>
>> Just in case, maybe try Log.p("Message ", Log.DEBUG); too. 
>> It should be the same as suggested by Shai, but it never hurts to try. 
>>
>> On Sunday, July 4, 2021 at 10:05:44 PM UTC-4 Shai Almog wrote:
>>
>>> If nothing appears then this isn't us. It's an environment problem, not 
>>> sure how to debug that.
>>>
>>> On Sunday, July 4, 2021 at 10:43:51 AM UTC+3 P5music wrote:
>>>
>>>> It does not work. Nothing changes.
>>>> Nothing is displayed in the console, not even the other stuff from the 
>>>> system or CN1.
>>>> The process is attached. I also detached and attached again.
>>>> Regards
>>>>
>>>> Il giorno domenica 4 luglio 2021 alle 03:57:31 UTC+2 Shai Almog ha 
>>>> scritto:
>>>>
>>>>> Try using Log.p(String).
>>>>>
>>>>> On Saturday, July 3, 2021 at 11:46:20 AM UTC+3 P5music wrote:
>>>>>
>>>>>> I am testing my CN1 app on the iOS simulator.
>>>>>> I had many lines like
>>>>>> System.out.println("something to be logged");
>>>>>> throughout the app.
>>>>>>
>>>>>> I replaced all those lines with static calls to 
>>>>>> MyUtils.MyLog(string);
>>>>>>
>>>>>> that just wraps the println instruction with an if condition like
>>>>>> if (logAllowed) System.out.println(param);
>>>>>>
>>>>>> I put logAllowed=true just inside the MyLog method.
>>>>>> The log messages are printed in the CN1 simulator console
>>>>>>
>>>>>> but I cannot see such console messages on the iOS simulator.
>>>>>>
>>>>>> It is likely it does not depend on the Utils.MyLog call (or it is 
>>>>>> because it is static?).
>>>>>>
>>>>>> So is there something that can prevent the logging from appearing in 
>>>>>> the iOS simulator console? I do not see any message, not even the usual 
>>>>>> messages from CN1 or the system.
>>>>>> But the Swift version of my app correctly logs as usual on the same 
>>>>>> iOS simulator instance.
>>>>>>
>>>>>> Thanks in advance
>>>>>>
>>>>>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/7e464fd8-a926-4529-a9a3-892a1aec6664n%40googlegroups.com.


[codenameone-discussions] Re: Log messages not appearing on the iOS simulator console

2021-07-04 Thread Shai Almog
If nothing appears then this isn't us. It's an environment problem, not 
sure how to debug that.

On Sunday, July 4, 2021 at 10:43:51 AM UTC+3 P5music wrote:

> It does not work. Nothing changes.
> Nothing is displayed in the console, not even the other stuff from the 
> system or CN1.
> The process is attached. I also detached and attached again.
> Regards
>
> Il giorno domenica 4 luglio 2021 alle 03:57:31 UTC+2 Shai Almog ha scritto:
>
>> Try using Log.p(String).
>>
>> On Saturday, July 3, 2021 at 11:46:20 AM UTC+3 P5music wrote:
>>
>>> I am testing my CN1 app on the iOS simulator.
>>> I had many lines like
>>> System.out.println("something to be logged");
>>> throughout the app.
>>>
>>> I replaced all those lines with static calls to 
>>> MyUtils.MyLog(string);
>>>
>>> that just wraps the println instruction with an if condition like
>>> if (logAllowed) System.out.println(param);
>>>
>>> I put logAllowed=true just inside the MyLog method.
>>> The log messages are printed in the CN1 simulator console
>>>
>>> but I cannot see such console messages on the iOS simulator.
>>>
>>> It is likely it does not depend on the Utils.MyLog call (or it is 
>>> because it is static?).
>>>
>>> So is there something that can prevent the logging from appearing in the 
>>> iOS simulator console? I do not see any message, not even the usual 
>>> messages from CN1 or the system.
>>> But the Swift version of my app correctly logs as usual on the same iOS 
>>> simulator instance.
>>>
>>> Thanks in advance
>>>
>>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/d26be844-2a24-4968-a06b-c4a7735bb9d1n%40googlegroups.com.


[codenameone-discussions] Re: Change image of component "Check"

2021-07-04 Thread Shai Almog
Hi,
the current check box isn't in the theme. It's a material icon that's a 
special case.
If you replace it you need to use a MultiImage so the size will be 
different based on the device density so there's no accurate size in pixels.

In the developer guide: https://www.codenameone.com/developer-guide.html

Look for the code setRadioButtonImages.

The code for CheckBoxes is almost identical with setCheckBoxImages instead: 
https://www.codenameone.com/javadoc/com/codename1/ui/plaf/DefaultLookAndFeel.html#setCheckBoxImages-com.codename1.ui.Image-com.codename1.ui.Image-com.codename1.ui.Image-com.codename1.ui.Image-

Alternatively you can use a few theme constants: 
https://www.codenameone.com/developer-guide.html#theme-constants-section
Specifically: checkBoxCheckDisImage, checkBoxCheckedImage, 
checkBoxUncheckDisImage and checkBoxUncheckedImage.

On Sunday, July 4, 2021 at 9:03:29 AM UTC+3 rdvg...@gmail.com wrote:

> Hi,
>
> I know how to place a new image in the CN1 Designer, but in the case of 
> components like Check I need to change the background color only of the 
> check and from what I understand this is achieved by changing the image.
> I tried to modify the UIID and the results were not good.
> [image: Muestra.png]
>
> 1. How big should the new image be (I imagine it should be png)?
> 2. Can you download the current image that is in the theme to be able to 
> manipulate it in an editor?
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/43bc417d-9d33-48d8-852c-a300582a7a53n%40googlegroups.com.


[codenameone-discussions] Re: build list gets stuck

2021-07-04 Thread Shai Almog
These are crashes or timeouts in the servers. We're looking into these but 
they're pretty hard to debug.

On Sunday, July 4, 2021 at 6:30:46 AM UTC+3 daved...@gmail.com wrote:

>
> Sometimes the builds list gets stuck with an app in "building" state,
> where it actually has finished.  Refreshing the browser window
> doesn't fix it.  The underlying database knows the truth and lets
> me start another build, but I can never get the status or result
> of the bad build.
>
>
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/78f6c949-a211-4d60-80b5-cc2e39f74c72n%40googlegroups.com.


[codenameone-discussions] Re: [Need Direction] Got selected under OSPP 21

2021-07-03 Thread Shai Almog
Welcome Anshumaan,
Congratulations!  Writing a private note.

On Saturday, July 3, 2021 at 1:40:39 PM UTC+3 anshumaan...@gmail.com wrote:

> Hello everyone/members,
> I am Anshumaan, Junior at Information Technology & Services, got selected 
> from "Open Source Promotional Program 2021". I didn't know whether it will 
> be right place to put my queries!
> But I want to know, how can I way to contribute to the organization?
>
> Project Name: *First Class Kotlin Support*
>
> Thankyou!
> Anshumaan Kumar Prasad
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/0d234716-fbca-46a8-b57c-7376933efef5n%40googlegroups.com.


[codenameone-discussions] Re: Log messages not appearing on the iOS simulator console

2021-07-03 Thread Shai Almog
Try using Log.p(String).

On Saturday, July 3, 2021 at 11:46:20 AM UTC+3 P5music wrote:

> I am testing my CN1 app on the iOS simulator.
> I had many lines like
> System.out.println("something to be logged");
> throughout the app.
>
> I replaced all those lines with static calls to 
> MyUtils.MyLog(string);
>
> that just wraps the println instruction with an if condition like
> if (logAllowed) System.out.println(param);
>
> I put logAllowed=true just inside the MyLog method.
> The log messages are printed in the CN1 simulator console
>
> but I cannot see such console messages on the iOS simulator.
>
> It is likely it does not depend on the Utils.MyLog call (or it is because 
> it is static?).
>
> So is there something that can prevent the logging from appearing in the 
> iOS simulator console? I do not see any message, not even the usual 
> messages from CN1 or the system.
> But the Swift version of my app correctly logs as usual on the same iOS 
> simulator instance.
>
> Thanks in advance
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/f47f9b6a-4e3e-47c1-bb6a-cdb39542389cn%40googlegroups.com.


[codenameone-discussions] Re: Facial recognition

2021-07-02 Thread Shai Almog
Hi,
if you just use it for authentication and the user has face recognition 
enabled in his device it should "just work". As far as I know. 

On Friday, July 2, 2021 at 10:48:23 AM UTC+3 rdvg...@gmail.com wrote:

> Hi,
>
> Thanks for answering.
>
> I have reviewed and I do not see documentation of how to use finger print 
> with facial recognition, could you give me a link or an example.
>
> Greetings
>
> El Thursday, July 1, 2021 a la(s) 10:21:51 PM UTC-5, Shai Almog escribió:
>
>> Hi,
>> the finger print CN1Lib supports authenticating with faces if that's your 
>> requirement.
>>
>> On Friday, July 2, 2021 at 4:22:57 AM UTC+3 rdvg...@gmail.com wrote:
>>
>>> Hi,
>>>
>>> I have seen many posts on the topic of facial recognition on CN1. The 
>>> recommendation was always that CN1 has the tools for the programmer to 
>>> carry out this type of development.
>>>
>>> Today I find myself with the need for this functionality and I accept 
>>> that I do not feel qualified to do it.
>>>
>>> Do you have plans to include it?
>>> Is there a developer in the group who has done it and wants to share it?
>>>
>>> I appreciate your comments.
>>>
>>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/1000ec48-4161-46ae-8a9e-bd0982046d78n%40googlegroups.com.


[codenameone-discussions] Re: Facial recognition

2021-07-01 Thread Shai Almog
Hi,
the finger print CN1Lib supports authenticating with faces if that's your 
requirement.

On Friday, July 2, 2021 at 4:22:57 AM UTC+3 rdvg...@gmail.com wrote:

> Hi,
>
> I have seen many posts on the topic of facial recognition on CN1. The 
> recommendation was always that CN1 has the tools for the programmer to 
> carry out this type of development.
>
> Today I find myself with the need for this functionality and I accept that 
> I do not feel qualified to do it.
>
> Do you have plans to include it?
> Is there a developer in the group who has done it and wants to share it?
>
> I appreciate your comments.
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/9ed44bfc-ce55-42d7-bd31-8b0e78aed2e4n%40googlegroups.com.


Re: [codenameone-discussions] Re: Native interfaces in Intellij

2021-07-01 Thread Shai Almog
They don't have the right name. I'm checking.

On Thursday, July 1, 2021 at 7:14:31 AM UTC+3 a2nd...@gmail.com wrote:

> The files appear to be here:
>
> src/main/objectivec/com_symdesign_shoppinggenie_MyNativeImpl.h
> src/main/objectivec/com_symdesign_shoppinggenie_MyNativeImpl.m
>
> On Wednesday, June 30, 2021 at 10:05:05 PM UTC-4 Shai Almog wrote:
>
>> In iOS it generates 
>> native_com_symdesign_shoppinggenie_MyNativeImplCodenameOne.m 
>> and native_com_symdesign_shoppinggenie_MyNativeImplCodenameOne.h
>> Which you need to edit.
>>
>> For some reason it seems 
>> native_com_symdesign_shoppinggenie_MyNativeImplCodenameOne.h 
>> is missing. Do you have any idea why?
>>
>> On Wednesday, June 30, 2021 at 10:14:28 PM UTC+3 a2nd...@gmail.com wrote:
>>
>>> I deleted the files and it did seem to compile and run on an android 
>>> device but I can't do a build for the iphone.
>>>
>>> When I did the "genereate native interfaces" it didn't seem to create a 
>>> "MyNativeImpl" file for the iphone and it generates an error file which 
>>> I've attached.
>>>
>>>
>>> On Monday, June 28, 2021 at 9:44:15 PM UTC-4 Shai Almog wrote:
>>>
>>>> By default we don't overwrite files that are already there. I suggest 
>>>> deleting and regenerating.
>>>>
>>>> On Monday, June 28, 2021 at 5:56:58 PM UTC+3 a2nd...@gmail.com wrote:
>>>>
>>>>> The file MyNative.java I created. I assume it was used to create the 
>>>>> MyNativeImpl.java. I see that file is in three places:
>>>>>
>>>>> android/target/classes/com/symdesign/shoppinggenie/MyNativeImpl.java
>>>>> android/src/main/java/com/symdesign/shoppinggenie/MyNativeImpl.java
>>>>> javase/src/main/java/com/symdesign/shoppinggenie/MyNativeImpl.java
>>>>>
>>>>> when I do "generate native interfaces" only the last one is updated. 
>>>>> Should the other two be there ? They are about 3 weeks old.
>>>>>
>>>>>
>>>>>
>>>>> On Sunday, June 27, 2021 at 9:43:20 PM UTC-4 Shai Almog wrote:
>>>>>
>>>>>> Not common. Under the android hierarchy you should have a file with 
>>>>>> the name MyNativeImpl.java
>>>>>>
>>>>>> On Sunday, June 27, 2021 at 6:23:28 AM UTC+3 a2nd...@gmail.com wrote:
>>>>>>
>>>>>>> I'm not quite sure what you mean by the "Android native" file. The 
>>>>>>> file with my NativeInterface interface code is in 
>>>>>>> "common/src/main/java/com/symdesigns/shoppinggenie/MyNative.java.
>>>>>>> The cn1.pluging.version is 7.0.26 .
>>>>>>>
>>>>>>> On Saturday, June 26, 2021 at 9:47:06 PM UTC-4 Shai Almog wrote:
>>>>>>>
>>>>>>>> Just the Android version is enough. If the Android native file 
>>>>>>>> there?
>>>>>>>> Under which directory from project root?
>>>>>>>>
>>>>>>>> What's the cn1.plugin.version in the pom.xml?
>>>>>>>> On Sunday, June 27, 2021 at 1:21:03 AM UTC+3 a2nd...@gmail.com 
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> Do you need to add native code for all of the native platforms? At 
>>>>>>>>> the moment I only need it for android. I did go through the video 
>>>>>>>>> tutorial.
>>>>>>>>>
>>>>>>>>> I didn't include the error file from the cloud build because it 
>>>>>>>>> was so long but nevertheless I've attached it below. 
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Wednesday, June 23, 2021 at 9:50:50 PM UTC-4 Shai Almog wrote:
>>>>>>>>>
>>>>>>>>>> Where's the rest of the error log?
>>>>>>>>>> Also you didn't implement the native code for each of the native 
>>>>>>>>>> platforms e.g. Android would have its own impl file and so would iOS.
>>>>>>>>>> Did you look at the How Do I video tutorial for native 
>>>>>>>>>> interfaces? It's pre-maven but should cover all of this.
>>>>>>>>>>
>>>>>>>>>> On Thursday, June 24, 

Re: [codenameone-discussions] Re: Native interfaces in Intellij

2021-06-30 Thread Shai Almog
In iOS it generates 
native_com_symdesign_shoppinggenie_MyNativeImplCodenameOne.m 
and native_com_symdesign_shoppinggenie_MyNativeImplCodenameOne.h
Which you need to edit.

For some reason it seems 
native_com_symdesign_shoppinggenie_MyNativeImplCodenameOne.h 
is missing. Do you have any idea why?

On Wednesday, June 30, 2021 at 10:14:28 PM UTC+3 a2nd...@gmail.com wrote:

> I deleted the files and it did seem to compile and run on an android 
> device but I can't do a build for the iphone.
>
> When I did the "genereate native interfaces" it didn't seem to create a 
> "MyNativeImpl" file for the iphone and it generates an error file which 
> I've attached.
>
>
> On Monday, June 28, 2021 at 9:44:15 PM UTC-4 Shai Almog wrote:
>
>> By default we don't overwrite files that are already there. I suggest 
>> deleting and regenerating.
>>
>> On Monday, June 28, 2021 at 5:56:58 PM UTC+3 a2nd...@gmail.com wrote:
>>
>>> The file MyNative.java I created. I assume it was used to create the 
>>> MyNativeImpl.java. I see that file is in three places:
>>>
>>> android/target/classes/com/symdesign/shoppinggenie/MyNativeImpl.java
>>> android/src/main/java/com/symdesign/shoppinggenie/MyNativeImpl.java
>>> javase/src/main/java/com/symdesign/shoppinggenie/MyNativeImpl.java
>>>
>>> when I do "generate native interfaces" only the last one is updated. 
>>> Should the other two be there ? They are about 3 weeks old.
>>>
>>>
>>>
>>> On Sunday, June 27, 2021 at 9:43:20 PM UTC-4 Shai Almog wrote:
>>>
>>>> Not common. Under the android hierarchy you should have a file with the 
>>>> name MyNativeImpl.java
>>>>
>>>> On Sunday, June 27, 2021 at 6:23:28 AM UTC+3 a2nd...@gmail.com wrote:
>>>>
>>>>> I'm not quite sure what you mean by the "Android native" file. The 
>>>>> file with my NativeInterface interface code is in 
>>>>> "common/src/main/java/com/symdesigns/shoppinggenie/MyNative.java.
>>>>> The cn1.pluging.version is 7.0.26 .
>>>>>
>>>>> On Saturday, June 26, 2021 at 9:47:06 PM UTC-4 Shai Almog wrote:
>>>>>
>>>>>> Just the Android version is enough. If the Android native file there?
>>>>>> Under which directory from project root?
>>>>>>
>>>>>> What's the cn1.plugin.version in the pom.xml?
>>>>>> On Sunday, June 27, 2021 at 1:21:03 AM UTC+3 a2nd...@gmail.com wrote:
>>>>>>
>>>>>>> Do you need to add native code for all of the native platforms? At 
>>>>>>> the moment I only need it for android. I did go through the video 
>>>>>>> tutorial.
>>>>>>>
>>>>>>> I didn't include the error file from the cloud build because it was 
>>>>>>> so long but nevertheless I've attached it below. 
>>>>>>>
>>>>>>>
>>>>>>> On Wednesday, June 23, 2021 at 9:50:50 PM UTC-4 Shai Almog wrote:
>>>>>>>
>>>>>>>> Where's the rest of the error log?
>>>>>>>> Also you didn't implement the native code for each of the native 
>>>>>>>> platforms e.g. Android would have its own impl file and so would iOS.
>>>>>>>> Did you look at the How Do I video tutorial for native interfaces? 
>>>>>>>> It's pre-maven but should cover all of this.
>>>>>>>>
>>>>>>>> On Thursday, June 24, 2021 at 1:19:17 AM UTC+3 a2nd...@gmail.com 
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> I forgot to add the code used to test it:
>>>>>>>>>
>>>>>>>>> if(cn != null && cn.isSupported()) {
>>>>>>>>> rv = cn.doInNative("string");
>>>>>>>>> Log.p(rv);
>>>>>>>>> }
>>>>>>>>>
>>>>>>>>> which returns "Dummy" as expected.
>>>>>>>>> ---
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Wednesday, June 23, 2021 at 6:15:12 PM UTC-4 Dennis Rogers 
>>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>> I'm at a loss in trying to do a native interface. I created the 
>>>>&g

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

2021-06-30 Thread Shai Almog
Hi,
multipart is a multipart file upload. Which isn't "form-data" it's 
"x-www-form-urlencode" which is a very different thing.
If you don't need that you shouldn't use multipart and should use a regular 
connection request. Just submit the file as a byte[]. 

If an argument is passed as get just pass it manually in the URL by adding 
it to the string using the ? and & characters.

On Wednesday, June 30, 2021 at 9:59:33 PM UTC+3 rdvg...@gmail.com wrote:

> Hi,
>
> Uff, at some point delete the line "addToQueue (mp);". Also note that 
> although in Postman I use the "POST" method it is necessary for the 
> parameters to be detected in PHP with $ _GET ['variable'], however when it 
> is executed from a client it is necessary to use $ _POST ['variable'].
>
> Thanks for the support and sorry for the inconvenience.
>
> El Wednesday, June 30, 2021 a la(s) 11:26:32 AM UTC-5, rdvg...@gmail.com 
> escribió:
>
>> Hi,
>>
>> Thank you mr Shai and mr Javier for your reply
>> I thought it worked, but I was wrong.
>> *I'm going to name everything I've done. As I mentioned in postman it 
>> works fine and this is the configuration:*
>> [image: Postman.png]
>> *The code in PHP is small and although it is not the topic of this forum 
>> I am going to include it (suddenly someone detects a problem):*
>> //Coloca los encabezados 
>> header('Access-Control-Allow-Origin: *');
>> header('Access-Control-Allow-Methods: PUT, GET, POST, DELETE');  
>> header('Content-Type: application/json; text/html; charset=UTF-8; 
>> multipart/form-data');
>> header('Access-Control-Max-Age: 3600');
>> header('Access-Control-Allow-Headers: Content-Type, 
>> Access-Control-Allow-Headers, Authorization, X-Requested-With');
>> // Generar archivo .htaccess si es necesario.
>> ws_htaccess();
>>
>> $bd = isset($_GET['bd']) ? $_GET['bd'] : null;
>> if (isset($_FILES['imagen']['name'])) {
>> $fileName  =  $_FILES['imagen']['name'];
>> $tempPath  =  $_FILES['imagen']['tmp_name'];
>> // Extensiones validas
>> $valid_extensions = array('jpeg', 'jpg', 'png', 'gif'); 
>> $ext = strtolower(pathinfo($fileName, PATHINFO_EXTENSION)); // toma la 
>> extension de la imagen
>> if (in_array($ext, $valid_extensions)) { // Valida que la extensión sea 
>> valida
>> $ruta = "../../../file/img/".$bd."/imagen";
>> if (!file_exists($ruta)) {
>> mkdir($ruta, 0777, true);
>> }
>> move_uploaded_file($tempPath, $ruta."/".$fileName);
>> }
>> } else {
>> return getResponse('error', null, 500, 'Fallo en la creación / 
>> actualización de la foto');
>> }
>>
>>
>> *And finally the code in the mobile app:*
>> public static void actualizaImagenFoto(String imagen, String rutaImagen) {
>> try {
>> MultipartRequest mp = new MultipartRequest();
>> mp.setUrl(SERVER_URL + "ws_foto_imagen/ws_foto_imagen.php");
>> mp.addArgument("bd", Preferences.get("bd", "tempus"));
>> mp.addData("imagen", rutaImagen, "image/jpeg");
>> mp.setFilename("imagen", imagen);
>> mp.setPost(true);
>> System.out.println(Integer.toString(mp.getResponseCode()) + 
>> "   " + mp.getResponseErrorMessage());
>> } catch (IOException err) {
>> Log.e(err);
>> ToastBar.showErrorMessage("Error en actualización de la foto: 
>> " + err.getMessage());
>> }
>> }
>>
>> With or without the setPost and setFileName methods it's not working for 
>> me.
>>
>> I appreciate your comments because I do not know what to continue doing.
>>
>> El Wednesday, June 30, 2021 a la(s) 12:04:09 AM UTC-5, 
>> javier...@gmail.com escribió:
>>
>>> 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-multipart-form-data-request-using-postman
>>>
>>>
>>> On Wed, 30 Jun 2021 at 03:22, rdvg...@gmail.com  
>>> wrote:
>>>
>>>> Hi,
>>>>
>>>> I asked him about the arguments because I did not get the ws to 
>>>> recognize them
>>>>
>>>> El Tuesday, June 29, 2021 a la(s) 8:33:36 PM 

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

2021-06-29 Thread Shai Almog
Hi,
using the regular addArgument should work just fine. It will be added to 
the multipart seamlessly.

On Wednesday, June 30, 2021 at 3:15:35 AM UTC+3 rdvg...@gmail.com wrote:

> Hi,
>
> Detect the problem by including the following parameters:
>  mp.setFilename ("image", "data.jpeg");
>  mp.setPost (true);
>
> However, I would like to know how I can send 2 additional arguments 
> (Database and Company Number).
>
> Thanks
>
>
> El Tuesday, June 29, 2021 a la(s) 6:37:59 PM UTC-5, rdvg...@gmail.com 
> escribió:
>
>> Hi,
>>
>> I am working on a WS made in PHP. I was able to create some routines to 
>> receive an image and save them in a folder on the server. All this I have 
>> been testing in Postman and it works 100%.
>> In the WS I do not validate the HTTP method, but I assume it is POST.
>>
>> From my mobile app I send the file with the MultipartRequest class. I was 
>> able to validate by debugging the response code 200, however I can't get 
>> the file to be created in the folder.
>>
>> I have 3 days struggling with this and I don't see the problem. I copy 
>> the code to see if you can see the error.
>>
>> I take this opportunity to ask if it is valid to send additional 
>> arguments, since I need to send the name of the database and the company 
>> code to create the folder where the image will be saved.
>>
>> My code:
>> public static void actualizaImagenFoto(String rutaImagen, Long 
>> visitaId) {
>> try {
>> MultipartRequest mp = new MultipartRequest();
>> mp.setUrl(SERVER_URL + "ws_foto_imagen/ws_foto_imagen.php");
>>  //   mp.addArgument("token", UsuarioService.getToken());
>>  //   mp.addArgument("fot_visita_id", visitaId.toString());
>> mp.addData("imagen", rutaImagen, "image/jpeg");
>> addToQueue(mp);
>> System.out.println(Integer.toString(mp.getResponseCode()) + 
>> "   " + mp.getResponseErrorMessage());
>> } catch (IOException err) {
>> Log.e(err);
>> ToastBar.showErrorMessage("Error en actualización de la foto: 
>> " + err.getMessage());
>> }
>> }
>>
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/59de8f90-aea5-4594-af52-315c4010397cn%40googlegroups.com.


Re: [codenameone-discussions] Re: Native interfaces in Intellij

2021-06-27 Thread Shai Almog
Not common. Under the android hierarchy you should have a file with the 
name MyNativeImpl.java

On Sunday, June 27, 2021 at 6:23:28 AM UTC+3 a2nd...@gmail.com wrote:

> I'm not quite sure what you mean by the "Android native" file. The file 
> with my NativeInterface interface code is in 
> "common/src/main/java/com/symdesigns/shoppinggenie/MyNative.java.
> The cn1.pluging.version is 7.0.26 .
>
> On Saturday, June 26, 2021 at 9:47:06 PM UTC-4 Shai Almog wrote:
>
>> Just the Android version is enough. If the Android native file there?
>> Under which directory from project root?
>>
>> What's the cn1.plugin.version in the pom.xml?
>> On Sunday, June 27, 2021 at 1:21:03 AM UTC+3 a2nd...@gmail.com wrote:
>>
>>> Do you need to add native code for all of the native platforms? At the 
>>> moment I only need it for android. I did go through the video tutorial.
>>>
>>> I didn't include the error file from the cloud build because it was so 
>>> long but nevertheless I've attached it below. 
>>>
>>>
>>> On Wednesday, June 23, 2021 at 9:50:50 PM UTC-4 Shai Almog wrote:
>>>
>>>> Where's the rest of the error log?
>>>> Also you didn't implement the native code for each of the native 
>>>> platforms e.g. Android would have its own impl file and so would iOS.
>>>> Did you look at the How Do I video tutorial for native interfaces? It's 
>>>> pre-maven but should cover all of this.
>>>>
>>>> On Thursday, June 24, 2021 at 1:19:17 AM UTC+3 a2nd...@gmail.com wrote:
>>>>
>>>>> I forgot to add the code used to test it:
>>>>>
>>>>> if(cn != null && cn.isSupported()) {
>>>>> rv = cn.doInNative("string");
>>>>> Log.p(rv);
>>>>> }
>>>>>
>>>>> which returns "Dummy" as expected.
>>>>> ---
>>>>>
>>>>>
>>>>> On Wednesday, June 23, 2021 at 6:15:12 PM UTC-4 Dennis Rogers wrote:
>>>>>
>>>>>> I'm at a loss in trying to do a native interface. I created the class 
>>>>>> "MyNative" 
>>>>>>
>>>>>> package com.symdesign.myapp;
>>>>>>
>>>>>> import com.codename1.system.NativeInterface;
>>>>>>
>>>>>> public interface MyNative extends NativeInterface {
>>>>>> public String doInNative(String hi);
>>>>>> }
>>>>>>
>>>>>> Then I ran the tool "create native interfaces" which created the file 
>>>>>> "MyNativeImpl.java" in the javase folder which 
>>>>>> I modified to: 
>>>>>>
>>>>>> package com.symdesign.myapp;
>>>>>>
>>>>>> public class MyNativeImpl implements 
>>>>>> com.symdesign.shoppinggenie.MyNative{
>>>>>> public String doInNative(String param) {
>>>>>> return "Dummy";
>>>>>> }
>>>>>>
>>>>>> public boolean isSupported() {
>>>>>> return true;
>>>>>> }
>>>>>> }
>>>>>>
>>>>>> If I run this in the simulator it seems to work ok, but when I 
>>>>>> compile it to the cloud I get an error file with the error at the top:
>>>>>>
>>>>>> Found hyp.beamId
>>>>>> Tried to start hyperlog but failed: Failed to start hyperlog: Cannot 
>>>>>> run program "hyp": error=2, No such file or directory
>>>>>> User-level: 9000
>>>>>> Request Args: 
>>>>>> -
>>>>>> build.incSources=1
>>>>>> hyp.beamId=9cfefcf3-f2c3-467c-b459-83c8c6dc3181
>>>>>> ios.includePush=true
>>>>>> java.version=8
>>>>>> maven.codenameone-maven-plugin=7.0.26
>>>>>> ios.newStorageLocation=true
>>>>>> maven.codenameone-core.version=7.0.26
>>>>>> android.release=false
>>>>>> android.debug=true
>>>>>> ---
>>>>>> .
>>>>>> .
>>>>>> On Wednesday, June 16, 2021 at 12:18:48 PM UTC-4 Dennis Rogers wrote:
>>>>>>
>>>>>>> Thanks, but that didn't seem to help. I don't get any errors when 
>>>>>>> buil

Re: [codenameone-discussions] Re: Native interfaces in Intellij

2021-06-26 Thread Shai Almog
Just the Android version is enough. If the Android native file there?
Under which directory from project root?

What's the cn1.plugin.version in the pom.xml?
On Sunday, June 27, 2021 at 1:21:03 AM UTC+3 a2nd...@gmail.com wrote:

> Do you need to add native code for all of the native platforms? At the 
> moment I only need it for android. I did go through the video tutorial.
>
> I didn't include the error file from the cloud build because it was so 
> long but nevertheless I've attached it below. 
>
>
> On Wednesday, June 23, 2021 at 9:50:50 PM UTC-4 Shai Almog wrote:
>
>> Where's the rest of the error log?
>> Also you didn't implement the native code for each of the native 
>> platforms e.g. Android would have its own impl file and so would iOS.
>> Did you look at the How Do I video tutorial for native interfaces? It's 
>> pre-maven but should cover all of this.
>>
>> On Thursday, June 24, 2021 at 1:19:17 AM UTC+3 a2nd...@gmail.com wrote:
>>
>>> I forgot to add the code used to test it:
>>>
>>> if(cn != null && cn.isSupported()) {
>>> rv = cn.doInNative("string");
>>> Log.p(rv);
>>> }
>>>
>>> which returns "Dummy" as expected.
>>> ---
>>>
>>>
>>> On Wednesday, June 23, 2021 at 6:15:12 PM UTC-4 Dennis Rogers wrote:
>>>
>>>> I'm at a loss in trying to do a native interface. I created the class 
>>>> "MyNative" 
>>>>
>>>> package com.symdesign.myapp;
>>>>
>>>> import com.codename1.system.NativeInterface;
>>>>
>>>> public interface MyNative extends NativeInterface {
>>>> public String doInNative(String hi);
>>>> }
>>>>
>>>> Then I ran the tool "create native interfaces" which created the file 
>>>> "MyNativeImpl.java" in the javase folder which 
>>>> I modified to: 
>>>>
>>>> package com.symdesign.myapp;
>>>>
>>>> public class MyNativeImpl implements 
>>>> com.symdesign.shoppinggenie.MyNative{
>>>> public String doInNative(String param) {
>>>> return "Dummy";
>>>> }
>>>>
>>>> public boolean isSupported() {
>>>> return true;
>>>> }
>>>> }
>>>>
>>>> If I run this in the simulator it seems to work ok, but when I compile 
>>>> it to the cloud I get an error file with the error at the top:
>>>>
>>>> Found hyp.beamId
>>>> Tried to start hyperlog but failed: Failed to start hyperlog: Cannot 
>>>> run program "hyp": error=2, No such file or directory
>>>> User-level: 9000
>>>> Request Args: 
>>>> -
>>>> build.incSources=1
>>>> hyp.beamId=9cfefcf3-f2c3-467c-b459-83c8c6dc3181
>>>> ios.includePush=true
>>>> java.version=8
>>>> maven.codenameone-maven-plugin=7.0.26
>>>> ios.newStorageLocation=true
>>>> maven.codenameone-core.version=7.0.26
>>>> android.release=false
>>>> android.debug=true
>>>> ---
>>>> .
>>>> .
>>>> On Wednesday, June 16, 2021 at 12:18:48 PM UTC-4 Dennis Rogers wrote:
>>>>
>>>>> Thanks, but that didn't seem to help. I don't get any errors when 
>>>>> building the app. I get these errors when trying to load it onto the 
>>>>> phone:
>>>>>
>>>>> $ adb install -i ShoppingGenie-debug.apk 
>>>>>
>>>>> Performing Streamed Install
>>>>> adb: failed to install ShoppingGenie-debug.apk: Error: Unable to open 
>>>>> file: 8370465
>>>>> Consider using a file under /data/local/tmp/
>>>>> Error: Can't open file: 8370465
>>>>>
>>>>> Exception occurred while executing:
>>>>> java.lang.IllegalArgumentException: Error: Can't open file: 8370465
>>>>> at 
>>>>> com.android.server.pm.PackageManagerShellCommand.setParamsSize(PackageManagerShellCommand.java:461)
>>>>> at 
>>>>> com.android.server.pm.PackageManagerShellCommand.runInstall(PackageManagerShellCommand.java:1060)
>>>>> at 
>>>>> com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:169)
>>>>> at android.os.ShellCommand.exec(ShellCommand.java:104)
>>>>> at 
>>>>> c

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

2021-06-25 Thread Shai Almog
Hi,
the initial code you listed should work fine in Codename One. What isn't 
working when you try to run that code?

On Saturday, June 26, 2021 at 3:04:48 AM UTC+3 rdvg...@gmail.com wrote:

> Hi,
>
> Thanks for the comments, I wish you could do the test of the method that I 
> included with the test data and validate the problem that I am detecting.
>
> El Friday, June 25, 2021 a la(s) 4:28:11 PM UTC-5, daved...@gmail.com 
> escribió:
>
>> The problem with SimpleDateFormat is that it can't cope with a lot of the 
>> junk that passes for "date" out there
>> in the real world.  I gave up and wrote my own parser, which I have 
>> extended to handle the dates that I actually
>> encounter.
>>
>>
>> On Thursday, June 24, 2021 at 8:30:41 PM UTC-7 Shai Almog wrote:
>>
>>> Hi,
>>> I don't understand the problem. We have SimpleDateFormat in Codename One 
>>> it's just under the codename one packages in the import.
>>>
>>> On Thursday, June 24, 2021 at 11:35:56 AM UTC+3 rdvg...@gmail.com wrote:
>>>
>>>> Hi,
>>>>
>>>> I created a new method in CodenameOne, but it is sending me an error. 
>>>> To test:
>>>>   fecha = new Date (). ToString () 
>>>>   tipo = "T"
>>>>
>>>> public static String cambiaFormatoFecha(String fecha, String tipo) {
>>>> String formato = tipo.equals("F") ? "-MM-dd" : 
>>>> tipo.equals("H") ? "hh:mm:ss" : tipo.equals("T") ? "-MM-dd hh:mm:ss" : 
>>>> "";
>>>> SimpleDateFormat formaFecha = new SimpleDateFormat(formato);
>>>> Date d = null;
>>>> try {
>>>> d = formaFecha.parse(fecha);
>>>> } catch (ParseException ex) {
>>>> Dialog.show("Error", "Error formato de fecha", "Continuar", 
>>>> null);
>>>> }
>>>> return formaFecha.format(d);
>>>> }
>>>>
>>>> El Wednesday, June 23, 2021 a la(s) 11:17:52 PM UTC-5, 
>>>> rdvg...@gmail.com escribió:
>>>>
>>>>> Hi,
>>>>>
>>>>> In java you could have the following method:
>>>>>
>>>>> public static Date ParseFecha(String fecha) { 
>>>>>  SimpleDateFormat formato = new SimpleDateFormat("dd/MM/"); 
>>>>>  Date fechaDate = null; 
>>>>>  try { 
>>>>>fechaDate = formato.parse(fecha); 
>>>>>   }   
>>>>>catch (ParseException ex) {
>>>>>System.out.println(ex); 
>>>>>   } 
>>>>>  return fechaDate; 
>>>>>  }
>>>>>
>>>>> How can I get this to work in CodenameOne?
>>>>>
>>>>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/c5e56fcf-7fed-42dc-8862-e730ad9cf934n%40googlegroups.com.


[codenameone-discussions] Re: UIID for TextComponent

2021-06-24 Thread Shai Almog
You can type in a constant in the designer tool. The list isn't always 
complete.

On Friday, June 25, 2021 at 2:48:05 AM UTC+3 ngosti2000 wrote:

> Am having a hard time trying to set the UIID for teh textcomponent.
> The documentation says we can use this constant textComponentFieldUIID but 
>
>
>- *textComponentFieldUIID is not in the list of constants in the 
>theme.res*
>- 
> *Hashtable uuids=new Hashtable<>();
>uuids.put("textComponentFieldUIID", "inputfields"); 
>UIManager.getInstance().addThemeProps(uuids);*
>
> Using the UIManager does not seem to work. What am i missing?
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/65fc9f0d-8eee-4553-ac91-1015f64cc5c2n%40googlegroups.com.


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

2021-06-24 Thread Shai Almog
Hi,
I don't understand the problem. We have SimpleDateFormat in Codename One 
it's just under the codename one packages in the import.

On Thursday, June 24, 2021 at 11:35:56 AM UTC+3 rdvg...@gmail.com wrote:

> Hi,
>
> I created a new method in CodenameOne, but it is sending me an error. 
> To test:
>   fecha = new Date (). ToString () 
>   tipo = "T"
>
> public static String cambiaFormatoFecha(String fecha, String tipo) {
> String formato = tipo.equals("F") ? "-MM-dd" : 
> tipo.equals("H") ? "hh:mm:ss" : tipo.equals("T") ? "-MM-dd hh:mm:ss" : 
> "";
> SimpleDateFormat formaFecha = new SimpleDateFormat(formato);
> Date d = null;
> try {
> d = formaFecha.parse(fecha);
> } catch (ParseException ex) {
> Dialog.show("Error", "Error formato de fecha", "Continuar", 
> null);
> }
> return formaFecha.format(d);
> }
>
> El Wednesday, June 23, 2021 a la(s) 11:17:52 PM UTC-5, rdvg...@gmail.com 
> escribió:
>
>> Hi,
>>
>> In java you could have the following method:
>>
>> public static Date ParseFecha(String fecha) { 
>>  SimpleDateFormat formato = new SimpleDateFormat("dd/MM/"); 
>>  Date fechaDate = null; 
>>  try { 
>>fechaDate = formato.parse(fecha); 
>>   }   
>>catch (ParseException ex) {
>>System.out.println(ex); 
>>   } 
>>  return fechaDate; 
>>  }
>>
>> How can I get this to work in CodenameOne?
>>
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/908e2e0c-ede8-4864-aebe-525fdc011492n%40googlegroups.com.


Re: [codenameone-discussions] Re: Native interfaces in Intellij

2021-06-23 Thread Shai Almog
Where's the rest of the error log?
Also you didn't implement the native code for each of the native platforms 
e.g. Android would have its own impl file and so would iOS.
Did you look at the How Do I video tutorial for native interfaces? It's 
pre-maven but should cover all of this.

On Thursday, June 24, 2021 at 1:19:17 AM UTC+3 a2nd...@gmail.com wrote:

> I forgot to add the code used to test it:
>
> if(cn != null && cn.isSupported()) {
> rv = cn.doInNative("string");
> Log.p(rv);
> }
>
> which returns "Dummy" as expected.
> ---
>
>
> On Wednesday, June 23, 2021 at 6:15:12 PM UTC-4 Dennis Rogers wrote:
>
>> I'm at a loss in trying to do a native interface. I created the class 
>> "MyNative" 
>>
>> package com.symdesign.myapp;
>>
>> import com.codename1.system.NativeInterface;
>>
>> public interface MyNative extends NativeInterface {
>> public String doInNative(String hi);
>> }
>>
>> Then I ran the tool "create native interfaces" which created the file 
>> "MyNativeImpl.java" in the javase folder which 
>> I modified to: 
>>
>> package com.symdesign.myapp;
>>
>> public class MyNativeImpl implements com.symdesign.shoppinggenie.MyNative{
>> public String doInNative(String param) {
>> return "Dummy";
>> }
>>
>> public boolean isSupported() {
>> return true;
>> }
>> }
>>
>> If I run this in the simulator it seems to work ok, but when I compile it 
>> to the cloud I get an error file with the error at the top:
>>
>> Found hyp.beamId
>> Tried to start hyperlog but failed: Failed to start hyperlog: Cannot run 
>> program "hyp": error=2, No such file or directory
>> User-level: 9000
>> Request Args: 
>> -
>> build.incSources=1
>> hyp.beamId=9cfefcf3-f2c3-467c-b459-83c8c6dc3181
>> ios.includePush=true
>> java.version=8
>> maven.codenameone-maven-plugin=7.0.26
>> ios.newStorageLocation=true
>> maven.codenameone-core.version=7.0.26
>> android.release=false
>> android.debug=true
>> ---
>> .
>> .
>> On Wednesday, June 16, 2021 at 12:18:48 PM UTC-4 Dennis Rogers wrote:
>>
>>> Thanks, but that didn't seem to help. I don't get any errors when 
>>> building the app. I get these errors when trying to load it onto the phone:
>>>
>>> $ adb install -i ShoppingGenie-debug.apk 
>>>
>>> Performing Streamed Install
>>> adb: failed to install ShoppingGenie-debug.apk: Error: Unable to open 
>>> file: 8370465
>>> Consider using a file under /data/local/tmp/
>>> Error: Can't open file: 8370465
>>>
>>> Exception occurred while executing:
>>> java.lang.IllegalArgumentException: Error: Can't open file: 8370465
>>> at 
>>> com.android.server.pm.PackageManagerShellCommand.setParamsSize(PackageManagerShellCommand.java:461)
>>> at 
>>> com.android.server.pm.PackageManagerShellCommand.runInstall(PackageManagerShellCommand.java:1060)
>>> at 
>>> com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:169)
>>> at android.os.ShellCommand.exec(ShellCommand.java:104)
>>> at 
>>> com.android.server.pm.PackageManagerService.onShellCommand(PackageManagerService.java:21745)
>>> at android.os.Binder.shellCommand(Binder.java:881)
>>> at android.os.Binder.onTransact(Binder.java:765)
>>> at 
>>> android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:4860)
>>> at 
>>> com.android.server.pm.PackageManagerService.onTransact(PackageManagerService.java:4015)
>>> at android.os.Binder.execTransactInternal(Binder.java:1021)
>>> at android.os.Binder.execTransact(Binder.java:994)
>>>
>>>
>>> On Wednesday, June 16, 2021 at 8:02:59 AM UTC-4 Steve Hannah wrote:
>>>
>>>> Add the following to the dependences section of your javase/pom.xml 
>>>> file:
>>>>
>>>> 
>>>> com.codenameone
>>>> codenameone-core
>>>> provided
>>>> 
>>>>
>>>>
>>>> That should fix the issue.  (Mind you you haven't shared any error 
>>>> messages so it's hard to say what your specific problem is).
>>>>
>>>>
>>>> Steve
>>>>
>>>>
>>>> On Tue, Jun 15, 2021 at 9:30 PM Dennis Rogers  
>>>> wrote:
>>>>
>>>>> Since I add

[codenameone-discussions] Re: 2.4Kb jar is rejected from server because it is 1.8Mb with dependencies

2021-06-21 Thread Shai Almog
Odd, I'll need to check. Make sure to define the DPI of your image to dpi 0.

On Monday, June 21, 2021 at 1:29:33 PM UTC+3 P5music wrote:

> I inspected the jar and I realized that it is not JSON's fault.
> There are three reasons the footprint grow:
> 1-I loaded images inside the theme.res (964kb) 
> I loaded 512px images and CN1 created the derived ones I guess, but are 
> they created before installing? Should not they be created in the app 
> folder at installation time?
> 2-I found a file that is not found in the project, I do not see it: 
> white_container_theme.res (594kb). It was created some time ago but I think 
> it is not used anywhere. In fact it is neither seen in the project 
> structure nor inside the theme.res itself, still it is in the jar (?) I 
> also searched the occurrence in the project but it is not found.
> 3-The html folder is duplicated (170Kb)
>
> I do not know if the limit would not be exceeded but each point is worth 
> understanding.
>
> Thanks
> Regards
> Il giorno sabato 19 giugno 2021 alle 05:22:31 UTC+2 Shai Almog ha scritto:
>
>> I guess that's a big dependency. Which library did you use?
>> Try to build with dependencies in maven and unzip the resulting jar to 
>> see what gets packaged there.
>>
>> On Friday, June 18, 2021 at 9:09:31 AM UTC+3 P5music wrote:
>>
>>> It seems that the app just has the JSON library dependency.
>>> Regards
>>>
>>> Il giorno venerdì 18 giugno 2021 alle 05:31:58 UTC+2 Shai Almog ha 
>>> scritto:
>>>
>>>> The dependencies are part of the jar. We don't package them in the 
>>>> servers. I suggest checking which dependency blew up the jar and removing 
>>>> that dependency.
>>>>
>>>> On Thursday, June 17, 2021 at 10:19:21 AM UTC+3 P5music wrote:
>>>>
>>>>>
>>>>> I have a free account and sometimes I need to build my app on Android 
>>>>> with the server build. (I am trying to build with AndroidStudio but there 
>>>>> are some issues)
>>>>> Until now it was possible.
>>>>>
>>>>> When I switched to maven, and possibly also because I replaced 
>>>>> Flamingo classes with real images, the jar limit seems to have been 
>>>>> reached.
>>>>>
>>>>> I find a message about this in the build output (that is successful) 
>>>>> on IntelliJ IDEA IDE.
>>>>>
>>>>> It is strange because my app did not change so much.
>>>>> It has a 2.4Kb footprint when considered alone, if I am not wrong.
>>>>>
>>>>> I knew that dependencies do not pile up.
>>>>> What's going on?
>>>>> Regards
>>>>>
>>>>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/41bdad52-2007-4c80-807f-903567547afdn%40googlegroups.com.


[codenameone-discussions] Re: IntelliJ IDEA+AndroidStudio local Android build failed

2021-06-21 Thread Shai Almog
I think it's the correct spelling. We were a bit inconsistent in naming 
over the years. 

I'm not sure. I'll ask how this can happen.

On Monday, June 21, 2021 at 1:10:38 PM UTC+3 P5music wrote:

> I just have a single android build hint
>
> android.xintent_filter
>
> By the way is it wrong?
>
> 1)Is the correct naming 
> android.xintentFilter instead?
>
> This is the content:
>  android:name="android.intent.action.VIEW" /> android:name="android.intent.action.PICK" /> android:name="android.intent.category.DEFAULT" /> android:name="android.intent.category.BROWSABLE" /> android:name="android.intent.category.OPENABLE" /> android:scheme="file" /> android:mimeType="*/*" />
>
> 2) What are the right parameters in the gradle files? The value was 0 for 
> many of them, as I said.
>
> Regards
>
> Il giorno sabato 19 giugno 2021 alle 05:27:51 UTC+2 Shai Almog ha scritto:
>
>> I think this relates to the previous problems you fixed manually. The 
>> defaults should have been correct and you didn't need to explicitly state 
>> the versions. 
>> What android.* build hints do you have in place?
>>
>> On Friday, June 18, 2021 at 9:17:25 AM UTC+3 P5music wrote:
>>
>>> Please see the attached file.
>>> Regards
>>>
>>> Il giorno venerdì 18 giugno 2021 alle 05:30:54 UTC+2 Shai Almog ha 
>>> scritto:
>>>
>>>> What does the gradle file contain?
>>>>
>>>> FYI we have here binaries which you can use to workaround problems with 
>>>> gradle: https://github.com/codenameone/cn1-binaries/tree/master/android
>>>>
>>>> On Thursday, June 17, 2021 at 10:10:13 AM UTC+3 P5music wrote:
>>>>
>>>>> I put
>>>>>
>>>>> compileSdkVersion 30
>>>>> buildToolsVersion "30.0.3"
>>>>>
>>>>> in the gradle file, because I found that those fields were set to 0, 
>>>>> like also
>>>>>
>>>>> minSdkVersion 15
>>>>> targetSdkVersion 30
>>>>>
>>>>> they were 0 too.
>>>>>
>>>>> In the txt attachment you can see the issue.
>>>>> In the SDK manager I downloaded all the necessary.
>>>>> On the internet someone says 
>>>>>
>>>>> From Android Studio go to: Tools >> Android >> SDK Manager
>>>>>
>>>>> Select and install "Extras|Android Support Repository" 
>>>>> but I do not find it.
>>>>>
>>>>> How to fix and compile?
>>>>>
>>>>> Thanks in advance
>>>>>
>>>>> Il giorno sabato 5 giugno 2021 alle 06:11:35 UTC Shai Almog ha scritto:
>>>>>
>>>>>> I can't read anything there. Usually Android studio offers an option 
>>>>>> to "fix" projects when there's a failure like that. As far as I know we 
>>>>>> don't use R8 so I'm guessing it was ignored by newer versions of Android 
>>>>>> Studio.
>>>>>>
>>>>>> On Friday, June 4, 2021 at 9:28:06 AM UTC+3 P5music wrote:
>>>>>>
>>>>>>> I am using a Arch Linux system so the AndroidStudio installation is 
>>>>>>> curated by the system itself. So I do not know what do you mean about 
>>>>>>> two 
>>>>>>> versions of it, but I provide some further information.
>>>>>>> Android Studio 4.2.1
>>>>>>> Build #AI-202.7660.26.42.7351085, built on May 10, 2021
>>>>>>> Runtime version: 11.0.8+0-b944-P17168821 amd64
>>>>>>> VM: OpenJDK 64-Bit Server VM by N/A
>>>>>>> Linux 5.12.5-zen1-1-zen
>>>>>>> GC: G1 Young Generation, G1 Old Generation
>>>>>>> Memory: 1280M
>>>>>>> Cores: 4
>>>>>>> Registry: external.system.auto.import.disabled=true
>>>>>>> Current Desktop: GNOME 40.1.0 
>>>>>>> X11
>>>>>>> Garuda Linux; ID version: rolling
>>>>>>>
>>>>>>> What do you read inside the log files to say that? What's the issue 
>>>>>>> about the build?
>>>>>>>
>>>>>>> Regards
>>>>>>> Il giorno venerdì 4 giugno 2021 alle 03:15:39 UTC Shai Almog ha 
>>>>>>> scritto:
>>>>>>>
>>>>>>>> Do you have more than one version of Android Studio installed?
>>>>>>>> Which versions are installed on your system?
>>>>>>>>
>>>>>>>> On Thursday, June 3, 2021 at 7:48:52 PM UTC+3 P5music wrote:
>>>>>>>>
>>>>>>>>> I have to run a slightly modified version of my CN1 app on the 
>>>>>>>>> Android emulator.
>>>>>>>>> I performed a local Android build on a Linux machine, as I did for 
>>>>>>>>> the iOS build on a OSX machine.
>>>>>>>>> The build failed with errors that can be found in the text 
>>>>>>>>> attachments.
>>>>>>>>>
>>>>>>>>> log1 is from AndroidStudio subsequent build.
>>>>>>>>> log2 and log3 are from IntelliJ IDEA.
>>>>>>>>>
>>>>>>>>> Thanks in advance
>>>>>>>>>
>>>>>>>>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/2ad5536e-acd5-4a4e-b2bf-7bf850c5d0d4n%40googlegroups.com.


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

2021-06-21 Thread Shai Almog
Notice that date in milliseconds is in GMT/UTC so it should work well 
universally even if your server is in a different time zone (which is very 
likely). That's probably the source of the problem you're experiencing. 
This is why the response from Javier should work as it removes the 
time/location from the date and focuses on the calendar day.

On Monday, June 21, 2021 at 9:39:50 AM UTC+3 javier...@gmail.com wrote:

> 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  wrote:
>
>> Sorry, correction:
>>
>>public static String cambiaNumeroFecha(Long fecha) {
>> Calendar c = Calendar.getInstance();
>> Date d = new Date(fecha);
>> c.setTime(d);
>>
>>  String r = Integer.toString(c.get(Calendar.YEAR)) + "-"
>> + Integer.toString(c.get(Calendar.MONTH)) + "-"
>> + Integer.toString(c.get(Calendar.DAY_OF_MONTH));
>> return r;
>> }
>>
>> El Sunday, June 20, 2021 a la(s) 11:36:23 PM UTC-5, rdvg...@gmail.com 
>> escribió:
>>
>>> My app sends the date in milliseconds to a WS. Upon receiving it, I 
>>> convert it to date format in the WS, but it appears to me with differences 
>>> with respect to the initial value.
>>> I decided to send the date in string format and as my logic in the app 
>>> always uses the date in milliseconds, it seemed correct to create a method 
>>> to return the date in string.
>>>
>>> The problem I have is that he always returns me with a wrong month. I 
>>> have tried to use DateUtil, but can't find a way to apply it.
>>>
>>> My method is as follows and I appreciate the support.
>>>
>>> public static String cambiaNumeroFecha(Long fecha) {
>>> Calendar c = Calendar.getInstance();
>>> Date d = new Date(fecha);
>>>
>>>  String r = Integer.toString(c.get(Calendar.YEAR)) + "-"
>>> + Integer.toString(c.get(Calendar.MONTH)) + "-"
>>> + Integer.toString(c.get(Calendar.DAY_OF_MONTH));
>>> return r;
>>> }
>>>
>> -- 
>> 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-discu...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/codenameone-discussions/e9bf0310-47d8-4bcd-b9fe-dce771e3f0c6n%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/e93ea1c2-98fd-4e89-bf87-56896c6e1884n%40googlegroups.com.


[codenameone-discussions] Re: IOS Udp broadcast

2021-06-18 Thread Shai Almog
I answered this here: 
https://stackoverflow.com/questions/68038597/codenameone-ios-entitlements-for-multicast-udp

On Friday, June 18, 2021 at 11:37:50 PM UTC+3 daved...@gmail.com wrote:

>
> My UDP broadcast code for IOS mysteriously stopped working. Code from the 
> same source still works on old iphones, which makes me suspect some snafu 
> in the build process. According to some docs, apple requires 
> com.apple.developer.networking.multicast entitlement as of IOS 14.  I've 
> never done anything specifically to provide that,
> but I'm pretty sure the code was previously working under IOS 14.
>
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/1bb8260d-a9e7-4a6a-a0da-623ed79fad36n%40googlegroups.com.


[codenameone-discussions] Re: IntelliJ IDEA+AndroidStudio local Android build failed

2021-06-18 Thread Shai Almog
I think this relates to the previous problems you fixed manually. The 
defaults should have been correct and you didn't need to explicitly state 
the versions. 
What android.* build hints do you have in place?

On Friday, June 18, 2021 at 9:17:25 AM UTC+3 P5music wrote:

> Please see the attached file.
> Regards
>
> Il giorno venerdì 18 giugno 2021 alle 05:30:54 UTC+2 Shai Almog ha scritto:
>
>> What does the gradle file contain?
>>
>> FYI we have here binaries which you can use to workaround problems with 
>> gradle: https://github.com/codenameone/cn1-binaries/tree/master/android
>>
>> On Thursday, June 17, 2021 at 10:10:13 AM UTC+3 P5music wrote:
>>
>>> I put
>>>
>>> compileSdkVersion 30
>>> buildToolsVersion "30.0.3"
>>>
>>> in the gradle file, because I found that those fields were set to 0, 
>>> like also
>>>
>>> minSdkVersion 15
>>> targetSdkVersion 30
>>>
>>> they were 0 too.
>>>
>>> In the txt attachment you can see the issue.
>>> In the SDK manager I downloaded all the necessary.
>>> On the internet someone says 
>>>
>>> From Android Studio go to: Tools >> Android >> SDK Manager
>>>
>>> Select and install "Extras|Android Support Repository" 
>>> but I do not find it.
>>>
>>> How to fix and compile?
>>>
>>> Thanks in advance
>>>
>>> Il giorno sabato 5 giugno 2021 alle 06:11:35 UTC Shai Almog ha scritto:
>>>
>>>> I can't read anything there. Usually Android studio offers an option to 
>>>> "fix" projects when there's a failure like that. As far as I know we don't 
>>>> use R8 so I'm guessing it was ignored by newer versions of Android Studio.
>>>>
>>>> On Friday, June 4, 2021 at 9:28:06 AM UTC+3 P5music wrote:
>>>>
>>>>> I am using a Arch Linux system so the AndroidStudio installation is 
>>>>> curated by the system itself. So I do not know what do you mean about two 
>>>>> versions of it, but I provide some further information.
>>>>> Android Studio 4.2.1
>>>>> Build #AI-202.7660.26.42.7351085, built on May 10, 2021
>>>>> Runtime version: 11.0.8+0-b944-P17168821 amd64
>>>>> VM: OpenJDK 64-Bit Server VM by N/A
>>>>> Linux 5.12.5-zen1-1-zen
>>>>> GC: G1 Young Generation, G1 Old Generation
>>>>> Memory: 1280M
>>>>> Cores: 4
>>>>> Registry: external.system.auto.import.disabled=true
>>>>> Current Desktop: GNOME 40.1.0 
>>>>> X11
>>>>> Garuda Linux; ID version: rolling
>>>>>
>>>>> What do you read inside the log files to say that? What's the issue 
>>>>> about the build?
>>>>>
>>>>> Regards
>>>>> Il giorno venerdì 4 giugno 2021 alle 03:15:39 UTC Shai Almog ha 
>>>>> scritto:
>>>>>
>>>>>> Do you have more than one version of Android Studio installed?
>>>>>> Which versions are installed on your system?
>>>>>>
>>>>>> On Thursday, June 3, 2021 at 7:48:52 PM UTC+3 P5music wrote:
>>>>>>
>>>>>>> I have to run a slightly modified version of my CN1 app on the 
>>>>>>> Android emulator.
>>>>>>> I performed a local Android build on a Linux machine, as I did for 
>>>>>>> the iOS build on a OSX machine.
>>>>>>> The build failed with errors that can be found in the text 
>>>>>>> attachments.
>>>>>>>
>>>>>>> log1 is from AndroidStudio subsequent build.
>>>>>>> log2 and log3 are from IntelliJ IDEA.
>>>>>>>
>>>>>>> Thanks in advance
>>>>>>>
>>>>>>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/29d52749-6031-4e2f-ade1-bbbf8b30a45an%40googlegroups.com.


[codenameone-discussions] Re: 2.4Kb jar is rejected from server because it is 1.8Mb with dependencies

2021-06-18 Thread Shai Almog
I guess that's a big dependency. Which library did you use?
Try to build with dependencies in maven and unzip the resulting jar to see 
what gets packaged there.

On Friday, June 18, 2021 at 9:09:31 AM UTC+3 P5music wrote:

> It seems that the app just has the JSON library dependency.
> Regards
>
> Il giorno venerdì 18 giugno 2021 alle 05:31:58 UTC+2 Shai Almog ha scritto:
>
>> The dependencies are part of the jar. We don't package them in the 
>> servers. I suggest checking which dependency blew up the jar and removing 
>> that dependency.
>>
>> On Thursday, June 17, 2021 at 10:19:21 AM UTC+3 P5music wrote:
>>
>>>
>>> I have a free account and sometimes I need to build my app on Android 
>>> with the server build. (I am trying to build with AndroidStudio but there 
>>> are some issues)
>>> Until now it was possible.
>>>
>>> When I switched to maven, and possibly also because I replaced Flamingo 
>>> classes with real images, the jar limit seems to have been reached.
>>>
>>> I find a message about this in the build output (that is successful) on 
>>> IntelliJ IDEA IDE.
>>>
>>> It is strange because my app did not change so much.
>>> It has a 2.4Kb footprint when considered alone, if I am not wrong.
>>>
>>> I knew that dependencies do not pile up.
>>> What's going on?
>>> Regards
>>>
>>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/03750958-6f99-44a1-b365-826c25be4a5cn%40googlegroups.com.


[codenameone-discussions] Re: 2.4Kb jar is rejected from server because it is 1.8Mb with dependencies

2021-06-17 Thread Shai Almog
The dependencies are part of the jar. We don't package them in the servers. 
I suggest checking which dependency blew up the jar and removing that 
dependency.

On Thursday, June 17, 2021 at 10:19:21 AM UTC+3 P5music wrote:

>
> I have a free account and sometimes I need to build my app on Android with 
> the server build. (I am trying to build with AndroidStudio but there are 
> some issues)
> Until now it was possible.
>
> When I switched to maven, and possibly also because I replaced Flamingo 
> classes with real images, the jar limit seems to have been reached.
>
> I find a message about this in the build output (that is successful) on 
> IntelliJ IDEA IDE.
>
> It is strange because my app did not change so much.
> It has a 2.4Kb footprint when considered alone, if I am not wrong.
>
> I knew that dependencies do not pile up.
> What's going on?
> Regards
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/22074a31-9672-4908-9651-4a73ccafe55fn%40googlegroups.com.


[codenameone-discussions] Re: IntelliJ IDEA+AndroidStudio local Android build failed

2021-06-17 Thread Shai Almog
What does the gradle file contain?

FYI we have here binaries which you can use to workaround problems with 
gradle: https://github.com/codenameone/cn1-binaries/tree/master/android

On Thursday, June 17, 2021 at 10:10:13 AM UTC+3 P5music wrote:

> I put
>
> compileSdkVersion 30
> buildToolsVersion "30.0.3"
>
> in the gradle file, because I found that those fields were set to 0, like 
> also
>
> minSdkVersion 15
> targetSdkVersion 30
>
> they were 0 too.
>
> In the txt attachment you can see the issue.
> In the SDK manager I downloaded all the necessary.
> On the internet someone says 
>
> From Android Studio go to: Tools >> Android >> SDK Manager
>
> Select and install "Extras|Android Support Repository" 
> but I do not find it.
>
> How to fix and compile?
>
> Thanks in advance
>
> Il giorno sabato 5 giugno 2021 alle 06:11:35 UTC Shai Almog ha scritto:
>
>> I can't read anything there. Usually Android studio offers an option to 
>> "fix" projects when there's a failure like that. As far as I know we don't 
>> use R8 so I'm guessing it was ignored by newer versions of Android Studio.
>>
>> On Friday, June 4, 2021 at 9:28:06 AM UTC+3 P5music wrote:
>>
>>> I am using a Arch Linux system so the AndroidStudio installation is 
>>> curated by the system itself. So I do not know what do you mean about two 
>>> versions of it, but I provide some further information.
>>> Android Studio 4.2.1
>>> Build #AI-202.7660.26.42.7351085, built on May 10, 2021
>>> Runtime version: 11.0.8+0-b944-P17168821 amd64
>>> VM: OpenJDK 64-Bit Server VM by N/A
>>> Linux 5.12.5-zen1-1-zen
>>> GC: G1 Young Generation, G1 Old Generation
>>> Memory: 1280M
>>> Cores: 4
>>> Registry: external.system.auto.import.disabled=true
>>> Current Desktop: GNOME 40.1.0 
>>> X11
>>> Garuda Linux; ID version: rolling
>>>
>>> What do you read inside the log files to say that? What's the issue 
>>> about the build?
>>>
>>> Regards
>>> Il giorno venerdì 4 giugno 2021 alle 03:15:39 UTC Shai Almog ha scritto:
>>>
>>>> Do you have more than one version of Android Studio installed?
>>>> Which versions are installed on your system?
>>>>
>>>> On Thursday, June 3, 2021 at 7:48:52 PM UTC+3 P5music wrote:
>>>>
>>>>> I have to run a slightly modified version of my CN1 app on the Android 
>>>>> emulator.
>>>>> I performed a local Android build on a Linux machine, as I did for the 
>>>>> iOS build on a OSX machine.
>>>>> The build failed with errors that can be found in the text attachments.
>>>>>
>>>>> log1 is from AndroidStudio subsequent build.
>>>>> log2 and log3 are from IntelliJ IDEA.
>>>>>
>>>>> Thanks in advance
>>>>>
>>>>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/8623948b-25fb-400a-a664-e8f8bba8873cn%40googlegroups.com.


[codenameone-discussions] Re: Native interfaces in Intellij

2021-06-14 Thread Shai Almog
That sounds like a bug in the maven project. Let me check.

On Tuesday, June 15, 2021 at 12:00:09 AM UTC+3 a2nd...@gmail.com wrote:

> Sorry but I'm a little confused. I created a file, MyNative.java, in the 
> common folder along with my other code:
>
> package com.symdesign.shoppinggenie;
>
> import com.codename1.system.NativeInterface;
> public interface MyNative extends NativeInterface {
>  String helloWorld(String hi);
> }
>
> When I run "Generate Native Interfaces" I get the error "cannot access 
> com.codename1.system.NativeInterface" but nevertheless
> it creates a file in MyProject/src/main/java/com.symdesign/myproject/ 
> called MyNativeImpl.java which looks like the advertised stub. (Is it in 
> this file that I should put my native code? )
>
>
> On Sunday, June 13, 2021 at 9:37:18 PM UTC-4 Shai Almog wrote:
>
>> On which file?
>> notice that the native side shouldn't include the native interface, it 
>> should only be in common.
>>
>> On Monday, June 14, 2021 at 1:08:30 AM UTC+3 a2nd...@gmail.com wrote:
>>
>>> I generated the native interface but when I try to build it, it says it 
>>> can't find com.codename1.system.NativeInterface.
>>>
>>> On Saturday, June 12, 2021 at 9:41:08 PM UTC-4 Shai Almog wrote:
>>>
>>>> The plugin is only applicable to Ant projects not to maven projects. 
>>>> For maven Generate Native Interfaces is one of the run configurations.
>>>> On Sunday, June 13, 2021 at 12:01:09 AM UTC+3 a2nd...@gmail.com wrote:
>>>>
>>>>> I'm trying to create a native interface to access android's 
>>>>> SpeechRecognitionHelper. Following the manual I created andinterface that 
>>>>> extends NativeInterface i.e.
>>>>>
>>>>> import com.codename1.system.NativeInterface;
>>>>>
>>>>> public interface MyNative extends NativeInterface {
>>>>> String getSpeech(String hi);
>>>>> }
>>>>>
>>>>> The manual then says I can generate initial native code by right 
>>>>> clicking on the interface and selecting "Generate Native Access" . This 
>>>>> option doesn't seem to be available in my setup and I don't know where to 
>>>>> go from here.
>>>>>
>>>>> -Dennis
>>>>>
>>>>>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/164c44ea-722c-4b4f-8829-b6f3347be77bn%40googlegroups.com.


[codenameone-discussions] Re: Avoid calling localNotificationReceived on iOS automatically

2021-06-14 Thread Shai Almog
Hi,
That sounds like the correct behavior.
Looking at the code I don't see anywhere where we keep "state" of what was 
processed. I think this is just iOS that isn't sending the state if it was 
already sent. So I'm not sure if there's something we can do about it.
On Monday, June 14, 2021 at 10:48:32 PM UTC+3 Ivan wrote:

> Hi, 
> yes, in that case it is invoked properly. 
>
>
> Dátum: piatok 11. júna 2021, čas: 4:34:35 UTC+2, odosielateľ: Shai Almog
>
>> Hi,
>> if you kill the app and then click the notification will the 
>> localNotificationReceived be invoked?
>>
>> On Friday, June 11, 2021 at 12:06:35 AM UTC+3 Ivan wrote:
>>
>>> Hi guys,
>>>
>>> I'm using local notifications in my application. On android everything 
>>> works well.
>>> I have troubles with iOS. When the application is active and 
>>> notification is scheduled and sent it's immediately received 
>>> (localNotificationReceived is called). 
>>>
>>> I tried to use LocalNotification.setForeground(true) and to trap the 
>>> automatic call of localNotificationReceived. In this case the notification 
>>> is displayed in notification area but clicking on it does not call  
>>> localNotificationReceived anymore (because it was received already, 
>>> probably)
>>>
>>> Is it possible to disable automatic call of localNotificationReceived() 
>>> in iOS when application is active? 
>>>
>>> thanks
>>>
>>> Ivan
>>>
>>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/fe2be18f-eaa6-4abc-baa4-f97f42c351d3n%40googlegroups.com.


[codenameone-discussions] Re: How to know the id of the last inserted record through SQLMap API?

2021-06-14 Thread Shai Almog
Hi,
right now you'll need to select again to get that id. We don't 
automatically update the primary key on insert yet.

On Monday, June 14, 2021 at 11:13:05 AM UTC+3 rdvg...@gmail.com wrote:

> Hi,
>
> I am using the SQLMap API inserting records into a table with auto 
> increment. Could you tell me how you can get the id of the last inserted 
> 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 email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/0af6efde-855b-43ad-b32c-32768d2889c3n%40googlegroups.com.


[codenameone-discussions] Re: Native interfaces in Intellij

2021-06-13 Thread Shai Almog
On which file?
notice that the native side shouldn't include the native interface, it 
should only be in common.

On Monday, June 14, 2021 at 1:08:30 AM UTC+3 a2nd...@gmail.com wrote:

> I generated the native interface but when I try to build it, it says it 
> can't find com.codename1.system.NativeInterface.
>
> On Saturday, June 12, 2021 at 9:41:08 PM UTC-4 Shai Almog wrote:
>
>> The plugin is only applicable to Ant projects not to maven projects. 
>> For maven Generate Native Interfaces is one of the run configurations.
>> On Sunday, June 13, 2021 at 12:01:09 AM UTC+3 a2nd...@gmail.com wrote:
>>
>>> I'm trying to create a native interface to access android's 
>>> SpeechRecognitionHelper. Following the manual I created andinterface that 
>>> extends NativeInterface i.e.
>>>
>>> import com.codename1.system.NativeInterface;
>>>
>>> public interface MyNative extends NativeInterface {
>>> String getSpeech(String hi);
>>> }
>>>
>>> The manual then says I can generate initial native code by right 
>>> clicking on the interface and selecting "Generate Native Access" . This 
>>> option doesn't seem to be available in my setup and I don't know where to 
>>> go from here.
>>>
>>> -Dennis
>>>
>>>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/f92ae03a-296a-4042-b5bc-9af764c486e4n%40googlegroups.com.


[codenameone-discussions] Re: Problems using PUT method with Restful api

2021-06-13 Thread Shai Almog
In the screenshot you posted it looks like you passed the parameters in the 
URL.

On Sunday, June 13, 2021 at 5:14:04 PM UTC+3 rdvg...@gmail.com wrote:

> Hi,
> Excuse me, if it works fine when I send information through the body.
>
>
> El Sunday, June 13, 2021 a la(s) 8:31:23 AM UTC-5, rdvg...@gmail.com 
> escribió:
>
>> Hi,
>>
>> Thank you very much Mr. Shai, I have other methods in my application that 
>> they use in the PUT method and I need to send information through the body. 
>> In this scenario it also sends me error. Have another trick to move forward?
>>
>> El Saturday, June 12, 2021 a la(s) 8:38:36 PM UTC-5, Shai Almog escribió:
>>
>>> Hi,
>>> PUT defaults to sending parameters as POST within the Rest API. I'll add 
>>> a way to override that behavior with a postParameters(false) method. 
>>> This will be there next week.
>>> A potential workaround might be to use a "hack" like this:
>>> Response r = Rest.put(SERVER_URL + 
>>> "ws_carga1/ws_carga1.php?carga_id=" + Long.toString(cargaId) + "=" + 
>>> Long.toString(fecha) + "=aceptar_carga")).
>>> header("token", UsuarioService.getToken()).
>>> getAsString();
>>>
>>> On Saturday, June 12, 2021 at 9:39:21 AM UTC+3 rdvg...@gmail.com wrote:
>>>
>>>> Hi,
>>>> I am trying to update a record by sending parameters to a Webservice. 
>>>> When I run it it returns the code 400 (Bad Request).
>>>> The method used is the following:
>>>> public static Response aceptarCarga(Long cargaId, Long fecha) {
>>>> Response r = Rest.put(SERVER_URL + 
>>>> "ws_carga1/ws_carga1.php").
>>>> header("token", UsuarioService.getToken()).
>>>> queryParam("carga_id", Long.toString(cargaId)).
>>>> queryParam("fecha", Long.toString(fecha)).
>>>> queryParam("accion", "aceptar_carga").
>>>> getAsString();
>>>> return r;
>>>> }
>>>> Provide the same parameters sent through Postman and they run correctly.
>>>> I include an image that returns the correct SQL to me via Postman
>>>> [image: Postman.png]
>>>>
>>>>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/3d7043c5-1971-42f1-9800-a6131ba691c6n%40googlegroups.com.


[codenameone-discussions] Re: Native interfaces in Intellij

2021-06-12 Thread Shai Almog
The plugin is only applicable to Ant projects not to maven projects. 
For maven Generate Native Interfaces is one of the run configurations.
On Sunday, June 13, 2021 at 12:01:09 AM UTC+3 a2nd...@gmail.com wrote:

> I'm trying to create a native interface to access android's 
> SpeechRecognitionHelper. Following the manual I created andinterface that 
> extends NativeInterface i.e.
>
> import com.codename1.system.NativeInterface;
>
> public interface MyNative extends NativeInterface {
> String getSpeech(String hi);
> }
>
> The manual then says I can generate initial native code by right clicking 
> on the interface and selecting "Generate Native Access" . This option 
> doesn't seem to be available in my setup and I don't know where to go from 
> here.
>
> -Dennis
>
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/8dbf7057-b8f4-4490-831f-4112934d33aan%40googlegroups.com.


[codenameone-discussions] Re: Problems using PUT method with Restful api

2021-06-12 Thread Shai Almog
Hi,
PUT defaults to sending parameters as POST within the Rest API. I'll add a 
way to override that behavior with a postParameters(false) method. This 
will be there next week.
A potential workaround might be to use a "hack" like this:
Response r = Rest.put(SERVER_URL + 
"ws_carga1/ws_carga1.php?carga_id=" + Long.toString(cargaId) + "=" + 
Long.toString(fecha) + "=aceptar_carga")).
header("token", UsuarioService.getToken()).
getAsString();

On Saturday, June 12, 2021 at 9:39:21 AM UTC+3 rdvg...@gmail.com wrote:

> Hi,
> I am trying to update a record by sending parameters to a Webservice. When 
> I run it it returns the code 400 (Bad Request).
> The method used is the following:
> public static Response aceptarCarga(Long cargaId, Long fecha) {
> Response r = Rest.put(SERVER_URL + 
> "ws_carga1/ws_carga1.php").
> header("token", UsuarioService.getToken()).
> queryParam("carga_id", Long.toString(cargaId)).
> queryParam("fecha", Long.toString(fecha)).
> queryParam("accion", "aceptar_carga").
> getAsString();
> return r;
> }
> Provide the same parameters sent through Postman and they run correctly.
> I include an image that returns the correct SQL to me via Postman
> [image: Postman.png]
>
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/d72516b4-295c-4441-b4cd-2c95ebcac6d3n%40googlegroups.com.


[codenameone-discussions] Re: iOS simulator - Files app freezes when sharing a file with custom extension for my app

2021-06-10 Thread Shai Almog
This might be a problem related to the storage hack we did. It reverses the 
order of the directories listed and might have broken the code that copies 
over the file.

On Thursday, June 10, 2021 at 10:07:41 AM UTC+3 P5music wrote:

> I am testing the import function of my CN1 app in some special cases. 
> Normal use cases work, like using the Document folder to load/save files 
> with custom extension.  
>
> But there are also other cases:
> the plist inject build hint encompasses registering the custom extension 
> in the system. 
> I used a iOS XCode template about a Document app to create the relevant 
> string in the build hint.
>
> It seems to work, indeed the start() method is called with AppArg 
> -when a file is dragged onto the simulator from the OSX filesystem 
> -when the user shares a file copying it to my app 
>
> I see that Documents/Inbox is used But I get an exception when reading the 
> input stream  File not found: 
> /Users/mac/Library/Developer/CoreSimulator/Devices/2491FACD-C843-4238-AA5F-648480FFF637/data/Containers/Data/Application/56C50CA4-E53F-4284-A566-41718AC64CF6/Documents/Inbox/myfile.ext
>  
>
>
> and in some cases also (very strange)  
> Connection error Https://cloud.codenameone.com/register/device 
> java.io.IOException - An SSL error has occurred and a secure connection to 
> the server cannot be made. 2021-06-09 17:07:48.353087+0200 
> MyApp[4053:46162] java.io.IOException at 
> com_codename1_impl_ios_IOSImplementation_NetworkConnection.ensureConnection:7159
>  
> at com_codename1_impl_ios_IOSImplementation.getResponseCode:7496 at 
> com_codename1_io_ConnectionRequest.performOperationComplete:904 at 
> com_codename1_io_NetworkManager_NetworkThread.run:340 at 
> com_codename1_impl_CodenameOneThread.run:176  
>
> The path is local, so it could depend on it, but I think also the sharing 
> operation uses the local path when the iOS simulator is used. 
>
> The sharing (copy to MyApp) option seemed to be working until today.   
> But when the build hint was appended with some parts to address all the 
> functionalities about the custom extension ,
> further testing on many simulated devices seems to show bad functioning: 
> the Files app is stuck or crashes when attempting to send a file to my 
> app.  
>
> This could be related to the above mentioned errors, but I could not catch 
> them on the debug console when the Files app freezes.  
>
> Do you know something about this? 
> Regards
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/ff2c9105-9327-49e5-9c2e-747a5a19c3a8n%40googlegroups.com.


[codenameone-discussions] Re: Callback Function from Server in iOS

2021-06-10 Thread Shai Almog
Hi,
I need more details to help. Ideally here: 
https://stackoverflow.com/questions/67924050/callback-function-from-server-in-codename-one-ios-build

On Thursday, June 10, 2021 at 6:11:55 PM UTC+3 bsystems@gmail.com wrote:

> Hello
> Callback functions from server works perfectly android devices but do not 
> work on iOS devices.
> Please can you help me with this issue
> Thank you
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/3ef15c2e-c6d3-4978-98df-7f8f8ab8a2c6n%40googlegroups.com.


Re: [codenameone-discussions] Re: Unable to restart the IEHS App

2021-06-10 Thread Shai Almog
java:137)
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:210)
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:156)
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:148)
> at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
> (LifecycleModuleBuilder.java:117)
> at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
> (LifecycleModuleBuilder.java:81)
> at 
> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
>  
> (SingleThreadedBuilder.java:56)
> at org.apache.maven.lifecycle.internal.LifecycleStarter.execute 
> (LifecycleStarter.java:128)
> at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
> at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
> at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
> at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
> at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
> at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
> at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native 
> Method)
> at jdk.internal.reflect.NativeMethodAccessorImpl.invoke 
> (NativeMethodAccessorImpl.java:62)
> at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke 
> (DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke (Method.java:566)
> at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced 
> (Launcher.java:282)
> at org.codehaus.plexus.classworlds.launcher.Launcher.launch 
> (Launcher.java:225)
> at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode 
> (Launcher.java:406)
> at org.codehaus.plexus.classworlds.launcher.Launcher.main 
> (Launcher.java:347)
> at org.codehaus.classworlds.Launcher.main (Launcher.java:47)
>
>
> On Thursday, June 10, 2021 at 1:06:55 PM UTC-4 shannah wrote:
>
>> That won't be the problem here.  If you're using IntelliJ, add the "-e" 
>> flag to the maven command by choosing "Edit Configurations"
>>
>> [image: image.png]
>>
>> Then select the build target in the left column, and add "-e" to the 
>> "Command line:" field on the right.
>>
>> [image: image.png]
>>
>> You should then see more error details.
>>
>>
>>
>> On Thu, Jun 10, 2021 at 9:48 AM Dennis Rogers  wrote:
>>
>>> I also found this in the output:
>>>
>>> 'build.plugins.plugin.version' for 
>>> org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 293, 
>>> column 21
>>>
>>> Sounds like it may be the problem. I'm using Intellij and it shows the 
>>> maven plugin "bundled". 
>>>
>>> On Tuesday, June 8, 2021 at 9:22:29 PM UTC-4 Steve Hannah wrote:
>>>
>>>> What IDE ate you using?  you may need to enable error reporting (-e) in 
>>>> the maven command to see the full stack trace of the error.
>>>>
>>>> On Tue, Jun 8, 2021 at 11:11 AM Dennis Rogers  
>>>> wrote:
>>>>
>>>>> Tried that but no joy.  Any other suggestions?
>>>>>
>>>>> On Monday, June 7, 2021 at 9:20:59 PM UTC-4 Shai Almog wrote:
>>>>>
>>>>>> Try killing Java processes and see if it solves the issue. 
>>>>>>
>>>>>> On Tuesday, June 8, 2021 at 1:05:53 AM UTC+3 a2nd...@gmail.com wrote:
>>>>>>
>>>>>>> Suddenly I've not been able to send builds to the cloud. Nothings 
>>>>>>> changed in the code and I get the error :
>>>>>>>
>>>>>>> Failed to execute goal 
>>>>>>> com.codenameone:codenameone-maven-plugin:7.0.26:build (build-android) 
>>>>>>> on 
>>>>>>> project shoppinggenie-android: Execution build-android of goal 
>>>>>>> com.codenameone:codenameone-maven-plugin:7.0.26:build failed: !!! 
>>>>>>> Unable to 
>>>>>>> restart the IEHS App !!!
>>>>>>>
>>>>>>> Is this an authorization problem ? -Dennis
>>>>>>>
>>>>>> -- 
>>>>> 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-discu...@googlegroups.com.
>>>>> To view this discussion on the web visit 
>>>>> https://groups.google.com/d/msgid/codenameone-discussions/cb10ca40-5407-44b1-91e9-5fb96b2cdb24n%40googlegroups.com
>>>>>  
>>>>> <https://groups.google.com/d/msgid/codenameone-discussions/cb10ca40-5407-44b1-91e9-5fb96b2cdb24n%40googlegroups.com?utm_medium=email_source=footer>
>>>>> .
>>>>>
>>>> -- 
>>>> Steve Hannah
>>>> Software Developer
>>>> Codename One
>>>> http://www.codenameone.com
>>>>
>>> -- 
>>> 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-discu...@googlegroups.com.
>>>
>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/codenameone-discussions/88ea6687-9f6e-414f-bd3c-cdf4a708610cn%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/codenameone-discussions/88ea6687-9f6e-414f-bd3c-cdf4a708610cn%40googlegroups.com?utm_medium=email_source=footer>
>>> .
>>>
>>
>>
>> -- 
>> Steve Hannah
>> Web Lite Solutions Corp.
>>
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/92d24777-3c8f-43a3-b53e-2741400a270bn%40googlegroups.com.


[codenameone-discussions] Re: Avoid calling localNotificationReceived on iOS automatically

2021-06-10 Thread Shai Almog
Hi,
if you kill the app and then click the notification will the 
localNotificationReceived be invoked?

On Friday, June 11, 2021 at 12:06:35 AM UTC+3 Ivan wrote:

> Hi guys,
>
> I'm using local notifications in my application. On android everything 
> works well.
> I have troubles with iOS. When the application is active and notification 
> is scheduled and sent it's immediately received (localNotificationReceived 
> is called). 
>
> I tried to use LocalNotification.setForeground(true) and to trap the 
> automatic call of localNotificationReceived. In this case the notification 
> is displayed in notification area but clicking on it does not call  
> localNotificationReceived anymore (because it was received already, 
> probably)
>
> Is it possible to disable automatic call of localNotificationReceived() in 
> iOS when application is active? 
>
> thanks
>
> Ivan
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/ba364ea4-af37-4a4f-bd57-0b2973e4dc48n%40googlegroups.com.


[codenameone-discussions] Re: Suggestion about changing the location of cn1storage folder

2021-06-09 Thread Shai Almog
It's possible there's some code somewhere that does that but I'm unaware of 
this. Since this literally replaces the order of the roots it should be OK. 
To be fair this isn't a use case we thought of when we built this behavior 
so I might be missing something.

This is the code that handles this: 
https://github.com/codenameone/CodenameOne/blob/master/Ports/iOSPort/src/com/codename1/impl/ios/IOSImplementation.java#L7594

And also this: 
https://github.com/codenameone/CodenameOne/blob/master/Ports/iOSPort/src/com/codename1/impl/ios/IOSImplementation.java#L7691

On Wednesday, June 9, 2021 at 10:11:41 PM UTC+3 P5music wrote:

> Do you know if 
> ios.newStorageLocation=false
> is overidden in some cases?
> For example for some iOS versions.
> I am testing with iOS 12, along with some other versions, and it seems 
> that for iOS 12 the cn1storage folder is created even with that build hint.
> Does it make sense to you? Is it possible?
>
> Thanks
> Il giorno martedì 8 giugno 2021 alle 08:24:31 UTC P5music ha scritto:
>
>> So, I used the ios.newStorageLocation=false hint
>> and
>> String documentsRoot=FileSystemStorage.getInstance().getRoots()[0];
>> yields a different path of course, I had to change the code for 
>> retrieving the "Application Support" and the "Documents" folders path.
>> It seems to work.
>> Regards
>> Il giorno domenica 6 giugno 2021 alle 03:05:52 UTC+2 Shai Almog ha 
>> scritto:
>>
>>> We place the HTML files from the html directory there, if you pass a 
>>> file to the app it's generally copied into there. We don't write there 
>>> normally though.
>>>
>>> On Saturday, June 5, 2021 at 10:13:28 AM UTC+3 P5music wrote:
>>>
>>>> (5)
>>>> So could the Documents folder passed random content according to what 
>>>> the user does with my app? so the user can see files not moved there 
>>>> explicitly by him/her?
>>>> Is that folder used as the inbox folder for my app and other things as 
>>>> a matter of fact?
>>>> Regards
>>>> Il giorno sabato 5 giugno 2021 alle 06:20:02 UTC Shai Almog ha scritto:
>>>>
>>>>> You might be able to move storage by setting 
>>>>> ios.newStorageLocation=false which will place stoage under the caches 
>>>>> directory. Notice that it might have adverse effects on some things but I 
>>>>> doubt it will impact you much.
>>>>>
>>>>> 1. It might be recreated since things like Preferences use storage and 
>>>>> we use Preferences internally. 
>>>>> 2, 3. Not at this time
>>>>> 4. I think that will work. Didn't test this though
>>>>> 5. Such as? We have the app home directory which we use when you open 
>>>>> a file association etc.
>>>>> On Friday, June 4, 2021 at 9:45:03 AM UTC+3 P5music wrote:
>>>>>
>>>>>> Ok,
>>>>>> I meant for new projects or for developers who are aware of it, 
>>>>>> before publishing the app, like me.
>>>>>>
>>>>>> However, I would like to understand if some other solution is 
>>>>>> available for my project.
>>>>>> My app does not use the Storage at all. It just has two data files in 
>>>>>> the Library/Application Support folder, and uses the Documents folder. 
>>>>>> Both 
>>>>>> are managed with the FileSystem access.
>>>>>>
>>>>>> 1 - Can I delete the cn1storage folder? 
>>>>>> 2 - Can its re-creation be prevented?
>>>>>> 3 - Can I hide the folder? 
>>>>>> 4 - Can it be deleted by mistake but that being harmless, so I do not 
>>>>>> care if the user deletes it, even when it is hidden?
>>>>>> 5 - What about the other CN1 content that can be seen in the 
>>>>>> Documents folder?
>>>>>>
>>>>>> Regards
>>>>>> Il giorno venerdì 4 giugno 2021 alle 03:09:24 UTC Shai Almog ha 
>>>>>> scritto:
>>>>>>
>>>>>>> We can't change something dynamically as it will break 
>>>>>>> compatibility. You can submit an RFE or pull request which provides the 
>>>>>>> different storage location option as an API or configuration.
>>>>>>>
>>>>>>> On Thursday, June 3, 2021 at 4:10:05 PM UTC+3 P5music wrote:
>>>>>>>
>>>>>>>> Can the cn1storage folder be under 

[codenameone-discussions] Re: Layout involving BrowserComponents revalidates when typing

2021-06-08 Thread Shai Almog
I don't think we revalidate the browser component while typing but I'll 
confirm that. 

On Tuesday, June 8, 2021 at 11:33:47 AM UTC+3 P5music wrote:

>
> I am testing my CN1 app in the iOS simulator. On my OSX system performance 
> is variable according to what device is simulated. They are pretty slow, I 
> can notice something.
> My app has buttons, textfields and BrowserComponents in the layout.
> I see that 
> when a textfield is edited, even in a foregrounded Dialog, or the text 
> inside the BC itself is edited,
> both the BrowserComponents in the layout (they are in different 
> containers) "blink".
> I know that in the simulator the BC are flacky,
> but a more serious question is raised.
>
> I do not know what happens on real devices but my suspect is that each 
> time a character is typed the overall layout is computed.
>
> Is it possible to make the BCs not "revalidate" during those typings?
> I mean, the BCs have fixed size, no changes happen when typing.
>
> Thanks in advance
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/b28c6d0b-d9f8-46e4-8935-788112d8a731n%40googlegroups.com.


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

2021-06-08 Thread Shai Almog
I don't understand how you expect this to work?
You have a button with long text that breaks lines. How do you expect this 
to be centered?
If you explicitly line break with \n then there will be room for centering.

Alternatively just use a bit of margin on the side to limit the space 
available for the buttons and form the effect of centering.

On Tuesday, June 8, 2021 at 10:53:29 AM UTC+3 javier...@gmail.com wrote:

>
> 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...@googlegroups.com> wrote:
>
>> Thanks
>> I already tried with FlowLayout and the size is correct, but the button 
>> is on the left.
>> So I added the FlowLayout container to a BorderLayout in the CENTER 
>> position, but the button still is on the left.
>> Regards
>> Il giorno martedì 8 giugno 2021 alle 00:00:58 UTC+2 javier...@gmail.com 
>> ha scritto:
>>
>>> 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...@googlegroups.com> wrote:
>>>
 There are only two Buttons with a round border over my CN1 app.

 I have an issue with the two buttons. I did not realize it before 
 because they had no border and no bg.

 I put them in a BoxLayout.y() container along with other components.
 They are in different places of the vertical container but it does not 
 matter.

 They are horizontally centered, while one would expect they are on the 
 left.
 But this is good for me because I want those buttons to be centered.

 The issue is that they are huge, the text is centered but the buttons 
 span the entire screen width.

 I just want them to be centered buttons that wrap their text.
 I also tried enclosing each of them in a BorderLayout container but its 
 the same.

 Maybe I forgot some silly thing, but I do not know.

 Thanks in advance

 -- 
 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-discu...@googlegroups.com.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/codenameone-discussions/de82d9d6-a2fe-4ebd-89a5-08f99c5f11c3n%40googlegroups.com
  
 
 .

>>> -- 
>> 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-discu...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/codenameone-discussions/eec24794-bd12-4d29-8c09-507e4e7065ean%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/158ee73c-e824-4ffb-b993-3ac103602b4bn%40googlegroups.com.


[codenameone-discussions] Re: Unable to restart the IEHS App

2021-06-08 Thread Shai Almog
Is this the full output you see in the console? 
Steve?

On Tuesday, June 8, 2021 at 9:11:40 PM UTC+3 a2nd...@gmail.com wrote:

> Tried that but no joy.  Any other suggestions?
>
> On Monday, June 7, 2021 at 9:20:59 PM UTC-4 Shai Almog wrote:
>
>> Try killing Java processes and see if it solves the issue. 
>>
>> On Tuesday, June 8, 2021 at 1:05:53 AM UTC+3 a2nd...@gmail.com wrote:
>>
>>> Suddenly I've not been able to send builds to the cloud. Nothings 
>>> changed in the code and I get the error :
>>>
>>> Failed to execute goal 
>>> com.codenameone:codenameone-maven-plugin:7.0.26:build (build-android) on 
>>> project shoppinggenie-android: Execution build-android of goal 
>>> com.codenameone:codenameone-maven-plugin:7.0.26:build failed: !!! Unable to 
>>> restart the IEHS App !!!
>>>
>>> Is this an authorization problem ? -Dennis
>>>
>>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/56548693-6cd3-4dad-b1b9-e157b0c31763n%40googlegroups.com.


[codenameone-discussions] Re: Unable to restart the IEHS App

2021-06-07 Thread Shai Almog
Try killing Java processes and see if it solves the issue. 

On Tuesday, June 8, 2021 at 1:05:53 AM UTC+3 a2nd...@gmail.com wrote:

> Suddenly I've not been able to send builds to the cloud. Nothings changed 
> in the code and I get the error :
>
> Failed to execute goal 
> com.codenameone:codenameone-maven-plugin:7.0.26:build (build-android) on 
> project shoppinggenie-android: Execution build-android of goal 
> com.codenameone:codenameone-maven-plugin:7.0.26:build failed: !!! Unable to 
> restart the IEHS App !!!
>
> Is this an authorization problem ? -Dennis
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/9196ae7f-0aec-4134-8702-f6b079ea6181n%40googlegroups.com.


[codenameone-discussions] Re: build times (again)

2021-06-06 Thread Shai Almog
We had this discussion before. You create queues with these long builds. 
This is probably the impact of the new xcode. That's not something we can 
fix.

On Monday, June 7, 2021 at 12:37:35 AM UTC+3 daved...@gmail.com wrote:

>
> Your IOS build times are pretty irregular.  The first three "apple" builds
> in this snap are identical.   In my case, using an arbitry build time limit
> is a counter productive strategy if your intent is to conserve your 
> resources.
>
> [image: slow.jpg]
> -- it would be more rational to have a "build time" build hint so I could
> annotate these long builds, and retain your timeout (at a much lower value)
> as the default to catch genuine runaways.
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/012ae7de-210f-493b-b08d-0914cf952344n%40googlegroups.com.


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

2021-06-06 Thread Shai Almog
We're looking into this.

On Sunday, June 6, 2021 at 9:56:10 PM UTC+3 javier...@gmail.com wrote:

> 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. Use 'android list targets' to get the 
> target ids.
>
> Does something need updating? Gradle version perhaps?
>
> Thanks
>
> Javier
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/d300913a-542a-4443-9be8-30418d3be22cn%40googlegroups.com.


[codenameone-discussions] Re: Custom extension not registered and not opening files with AppArg on iOS

2021-06-05 Thread Shai Almog
Maybe under Codename One Samples: 
https://github.com/codenameone/CodenameOne/tree/master/Samples
If there isn't anything there then probably not.

On Saturday, June 5, 2021 at 10:16:57 AM UTC+3 P5music wrote:

> Well there are differences between the two projects, they have almost the 
> same features, but how could I compare them, what do you  mean?
> If you mean the plist file, the ext registering part is the same.
>
> However, have you a working sample, like Kitchen Sink, that has the 
> feature working to inspect it?
>
> Thanks
> Il giorno sabato 5 giugno 2021 alle 06:13:52 UTC Shai Almog ha scritto:
>
>> When you generate the xcode project can you review what's different 
>> between the project we generated and the one that works for you in Swift?
>> I'm guessing it's some different configuration in the plist or something 
>> of that type.
>>
>> On Friday, June 4, 2021 at 9:35:12 AM UTC+3 P5music wrote:
>>
>>> Sorry no,
>>> Only the Swift version of my app is able to register the type, but that 
>>> just means that the description is visible, so I think it is registered.
>>> The feature is not yet developed.
>>>
>>> Instead the feature is fully developed in the CN1 version and it works 
>>> on the CN1 simulator.
>>> But the CN1 app is not even able to register the type on the iOS 
>>> simulator (the description is not displayed and the option to open with the 
>>> app is not presented). 
>>> When selecting a file with custom extension the start method is not 
>>> called, indeed the app is not even brought to the foreground.
>>> No log messages are printed in the console about that part of code (they 
>>> are when the app runs in the CN1 simulator).
>>> So that code is not executed.
>>>
>>> Regards
>>>
>>> Il giorno venerdì 4 giugno 2021 alle 03:13:30 UTC Shai Almog ha scritto:
>>>
>>>> So if I understand correctly your app appears correctly in the list of 
>>>> options for the file. But the arg isn't passed when you click on the app. 
>>>> On which version of iOS are you testing this?
>>>>
>>>> On Thursday, June 3, 2021 at 4:36:41 PM UTC+3 P5music wrote:
>>>>
>>>>>
>>>>> My CN1 app has to open data files with custom extension when the user 
>>>>> selects one of them to be opened from the Files app, or another app (like 
>>>>> opening it as e-mail attachment, for example).
>>>>> The import/export feature works.
>>>>>
>>>>> This is a part of the ios.plistInject string:
>>>>>
>>>>>
>>>>> UTExportedTypeDeclarations 
>>>>> UTTypeDescriptionList of 
>>>>> datatypeUTTypeConformsTopublic.jsonpublic.databasepublic.datapublic.textpublic.contentUTTypeIdentifiercom.myapp.datatypeUTTypeTagSpecificationpublic.filename-extensionextpublic.mime-typeapplication/json
>>>>>  
>>>>>
>>>>>
>>>>> the ios.plistInject has also other keys that correspond to working 
>>>>> features of the app, so it means that the plist injection is accepted and 
>>>>> processed by XCode.
>>>>>
>>>>> Instead, the custom extension is not registered in the system (iOS 
>>>>> simulator).
>>>>>
>>>>> The Swift counterpart of the CN1 app is able to register the 
>>>>> extension, so when the data file with custom extension is displayed as 
>>>>> json 
>>>>> it shows its description 
>>>>> "List of datatype"
>>>>>
>>>>> Only the file name is displayed instead with the CN1 app installed.
>>>>>
>>>>> The CN1 app does not open the file if the user selects it in the Files 
>>>>> app, and no option is available.
>>>>>
>>>>> The following code is used, and it works on the CN1 simulator
>>>>>
>>>>> // it is in the start() method
>>>>> String arg=Display.getInstance().getProperty("AppArg",null);
>>>>> System.out.println("arg="+arg);
>>>>> if (arg!=null) importArg(arg);
>>>>>
>>>>> Is that string in ios.plistInject wrong? It is the same of the Swift 
>>>>> app, it was pasted from there in fact (see below).
>>>>>
>>>>> Thanks in advance.
>>>>>
>>>>> UTExportedTypeDeclarations
>>>>> 
>>>&g

[codenameone-discussions] Re: Suggestion about changing the location of cn1storage folder

2021-06-05 Thread Shai Almog
We place the HTML files from the html directory there, if you pass a file 
to the app it's generally copied into there. We don't write there normally 
though.

On Saturday, June 5, 2021 at 10:13:28 AM UTC+3 P5music wrote:

> (5)
> So could the Documents folder passed random content according to what the 
> user does with my app? so the user can see files not moved there explicitly 
> by him/her?
> Is that folder used as the inbox folder for my app and other things as a 
> matter of fact?
> Regards
> Il giorno sabato 5 giugno 2021 alle 06:20:02 UTC Shai Almog ha scritto:
>
>> You might be able to move storage by setting ios.newStorageLocation=false 
>> which will place stoage under the caches directory. Notice that it might 
>> have adverse effects on some things but I doubt it will impact you much.
>>
>> 1. It might be recreated since things like Preferences use storage and we 
>> use Preferences internally. 
>> 2, 3. Not at this time
>> 4. I think that will work. Didn't test this though
>> 5. Such as? We have the app home directory which we use when you open a 
>> file association etc.
>> On Friday, June 4, 2021 at 9:45:03 AM UTC+3 P5music wrote:
>>
>>> Ok,
>>> I meant for new projects or for developers who are aware of it, before 
>>> publishing the app, like me.
>>>
>>> However, I would like to understand if some other solution is available 
>>> for my project.
>>> My app does not use the Storage at all. It just has two data files in 
>>> the Library/Application Support folder, and uses the Documents folder. Both 
>>> are managed with the FileSystem access.
>>>
>>> 1 - Can I delete the cn1storage folder? 
>>> 2 - Can its re-creation be prevented?
>>> 3 - Can I hide the folder? 
>>> 4 - Can it be deleted by mistake but that being harmless, so I do not 
>>> care if the user deletes it, even when it is hidden?
>>> 5 - What about the other CN1 content that can be seen in the Documents 
>>> folder?
>>>
>>> Regards
>>> Il giorno venerdì 4 giugno 2021 alle 03:09:24 UTC Shai Almog ha scritto:
>>>
>>>> We can't change something dynamically as it will break compatibility. 
>>>> You can submit an RFE or pull request which provides the different storage 
>>>> location option as an API or configuration.
>>>>
>>>> On Thursday, June 3, 2021 at 4:10:05 PM UTC+3 P5music wrote:
>>>>
>>>>> Can the cn1storage folder be under the Library directory on iOS 
>>>>> instead of Documents for new maven templates or as an option for existing 
>>>>> projects (at least those unpublished yet like mine)?
>>>>>
>>>>> My app exposes the Documents folder to the user.
>>>>> The user doesn't want to see other content among the "documents". It 
>>>>> also can be accidentally deleted 
>>>>> even if it is made not visible, but it could be an option, I think. I 
>>>>> saw also other files there, as for example a sort of package.
>>>>> There is no technical reason to leave it in the Documents directory, 
>>>>> the Library folder is under control of the app. 
>>>>>
>>>>> My app also created Library/Application Support, that is private to it.
>>>>> Also other folders can be created under Library, that are different 
>>>>> from the Application Support one (please do not put it there).
>>>>>
>>>>> Regards
>>>>>
>>>>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/9b8c05fc-7349-4822-8db7-96fbf892d525n%40googlegroups.com.


[codenameone-discussions] Re: Suggestion about changing the location of cn1storage folder

2021-06-05 Thread Shai Almog
You might be able to move storage by setting ios.newStorageLocation=false 
which will place stoage under the caches directory. Notice that it might 
have adverse effects on some things but I doubt it will impact you much.

1. It might be recreated since things like Preferences use storage and we 
use Preferences internally. 
2, 3. Not at this time
4. I think that will work. Didn't test this though
5. Such as? We have the app home directory which we use when you open a 
file association etc.
On Friday, June 4, 2021 at 9:45:03 AM UTC+3 P5music wrote:

> Ok,
> I meant for new projects or for developers who are aware of it, before 
> publishing the app, like me.
>
> However, I would like to understand if some other solution is available 
> for my project.
> My app does not use the Storage at all. It just has two data files in the 
> Library/Application Support folder, and uses the Documents folder. Both are 
> managed with the FileSystem access.
>
> 1 - Can I delete the cn1storage folder? 
> 2 - Can its re-creation be prevented?
> 3 - Can I hide the folder? 
> 4 - Can it be deleted by mistake but that being harmless, so I do not care 
> if the user deletes it, even when it is hidden?
> 5 - What about the other CN1 content that can be seen in the Documents 
> folder?
>
> Regards
> Il giorno venerdì 4 giugno 2021 alle 03:09:24 UTC Shai Almog ha scritto:
>
>> We can't change something dynamically as it will break compatibility. You 
>> can submit an RFE or pull request which provides the different storage 
>> location option as an API or configuration.
>>
>> On Thursday, June 3, 2021 at 4:10:05 PM UTC+3 P5music wrote:
>>
>>> Can the cn1storage folder be under the Library directory on iOS instead 
>>> of Documents for new maven templates or as an option for existing projects 
>>> (at least those unpublished yet like mine)?
>>>
>>> My app exposes the Documents folder to the user.
>>> The user doesn't want to see other content among the "documents". It 
>>> also can be accidentally deleted 
>>> even if it is made not visible, but it could be an option, I think. I 
>>> saw also other files there, as for example a sort of package.
>>> There is no technical reason to leave it in the Documents directory, the 
>>> Library folder is under control of the app. 
>>>
>>> My app also created Library/Application Support, that is private to it.
>>> Also other folders can be created under Library, that are different from 
>>> the Application Support one (please do not put it there).
>>>
>>> Regards
>>>
>>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/db0a8c9b-0527-4fcf-a9fc-f838ea7e2daan%40googlegroups.com.


[codenameone-discussions] Re: Custom extension not registered and not opening files with AppArg on iOS

2021-06-05 Thread Shai Almog
When you generate the xcode project can you review what's different between 
the project we generated and the one that works for you in Swift?
I'm guessing it's some different configuration in the plist or something of 
that type.

On Friday, June 4, 2021 at 9:35:12 AM UTC+3 P5music wrote:

> Sorry no,
> Only the Swift version of my app is able to register the type, but that 
> just means that the description is visible, so I think it is registered.
> The feature is not yet developed.
>
> Instead the feature is fully developed in the CN1 version and it works on 
> the CN1 simulator.
> But the CN1 app is not even able to register the type on the iOS simulator 
> (the description is not displayed and the option to open with the app is 
> not presented). 
> When selecting a file with custom extension the start method is not 
> called, indeed the app is not even brought to the foreground.
> No log messages are printed in the console about that part of code (they 
> are when the app runs in the CN1 simulator).
> So that code is not executed.
>
> Regards
>
> Il giorno venerdì 4 giugno 2021 alle 03:13:30 UTC Shai Almog ha scritto:
>
>> So if I understand correctly your app appears correctly in the list of 
>> options for the file. But the arg isn't passed when you click on the app. 
>> On which version of iOS are you testing this?
>>
>> On Thursday, June 3, 2021 at 4:36:41 PM UTC+3 P5music wrote:
>>
>>>
>>> My CN1 app has to open data files with custom extension when the user 
>>> selects one of them to be opened from the Files app, or another app (like 
>>> opening it as e-mail attachment, for example).
>>> The import/export feature works.
>>>
>>> This is a part of the ios.plistInject string:
>>>
>>>
>>> UTExportedTypeDeclarations 
>>> UTTypeDescriptionList of 
>>> datatypeUTTypeConformsTopublic.jsonpublic.databasepublic.datapublic.textpublic.contentUTTypeIdentifiercom.myapp.datatypeUTTypeTagSpecificationpublic.filename-extensionextpublic.mime-typeapplication/json
>>>  
>>>
>>>
>>> the ios.plistInject has also other keys that correspond to working 
>>> features of the app, so it means that the plist injection is accepted and 
>>> processed by XCode.
>>>
>>> Instead, the custom extension is not registered in the system (iOS 
>>> simulator).
>>>
>>> The Swift counterpart of the CN1 app is able to register the extension, 
>>> so when the data file with custom extension is displayed as json it shows 
>>> its description 
>>> "List of datatype"
>>>
>>> Only the file name is displayed instead with the CN1 app installed.
>>>
>>> The CN1 app does not open the file if the user selects it in the Files 
>>> app, and no option is available.
>>>
>>> The following code is used, and it works on the CN1 simulator
>>>
>>> // it is in the start() method
>>> String arg=Display.getInstance().getProperty("AppArg",null);
>>> System.out.println("arg="+arg);
>>> if (arg!=null) importArg(arg);
>>>
>>> Is that string in ios.plistInject wrong? It is the same of the Swift 
>>> app, it was pasted from there in fact (see below).
>>>
>>> Thanks in advance.
>>>
>>> UTExportedTypeDeclarations
>>> 
>>> 
>>> UTTypeDescription
>>> List of datatype
>>> UTTypeConformsTo
>>> 
>>> public.json
>>> public.database
>>> public.data
>>> public.text
>>> public.content
>>> 
>>> UTTypeIdentifier
>>> com.myapp.datatype
>>> UTTypeTagSpecification
>>> 
>>> public.filename-extension
>>> 
>>> ext
>>> 
>>> public.mime-type
>>> 
>>> application/json
>>> 
>>> 
>>> 
>>> 
>>
>>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/47156681-61eb-46ca-98db-cf7467493f50n%40googlegroups.com.


[codenameone-discussions] Re: IntelliJ IDEA+AndroidStudio local Android build failed

2021-06-05 Thread Shai Almog
I can't read anything there. Usually Android studio offers an option to 
"fix" projects when there's a failure like that. As far as I know we don't 
use R8 so I'm guessing it was ignored by newer versions of Android Studio.

On Friday, June 4, 2021 at 9:28:06 AM UTC+3 P5music wrote:

> I am using a Arch Linux system so the AndroidStudio installation is 
> curated by the system itself. So I do not know what do you mean about two 
> versions of it, but I provide some further information.
> Android Studio 4.2.1
> Build #AI-202.7660.26.42.7351085, built on May 10, 2021
> Runtime version: 11.0.8+0-b944-P17168821 amd64
> VM: OpenJDK 64-Bit Server VM by N/A
> Linux 5.12.5-zen1-1-zen
> GC: G1 Young Generation, G1 Old Generation
> Memory: 1280M
> Cores: 4
> Registry: external.system.auto.import.disabled=true
> Current Desktop: GNOME 40.1.0 
> X11
> Garuda Linux; ID version: rolling
>
> What do you read inside the log files to say that? What's the issue about 
> the build?
>
> Regards
> Il giorno venerdì 4 giugno 2021 alle 03:15:39 UTC Shai Almog ha scritto:
>
>> Do you have more than one version of Android Studio installed?
>> Which versions are installed on your system?
>>
>> On Thursday, June 3, 2021 at 7:48:52 PM UTC+3 P5music wrote:
>>
>>> I have to run a slightly modified version of my CN1 app on the Android 
>>> emulator.
>>> I performed a local Android build on a Linux machine, as I did for the 
>>> iOS build on a OSX machine.
>>> The build failed with errors that can be found in the text attachments.
>>>
>>> log1 is from AndroidStudio subsequent build.
>>> log2 and log3 are from IntelliJ IDEA.
>>>
>>> Thanks in advance
>>>
>>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/abb16b64-91bf-49cf-9ab5-220c6d258db4n%40googlegroups.com.


[codenameone-discussions] Re: IntelliJ IDEA+AndroidStudio local Android build failed

2021-06-03 Thread Shai Almog
Do you have more than one version of Android Studio installed?
Which versions are installed on your system?

On Thursday, June 3, 2021 at 7:48:52 PM UTC+3 P5music wrote:

> I have to run a slightly modified version of my CN1 app on the Android 
> emulator.
> I performed a local Android build on a Linux machine, as I did for the iOS 
> build on a OSX machine.
> The build failed with errors that can be found in the text attachments.
>
> log1 is from AndroidStudio subsequent build.
> log2 and log3 are from IntelliJ IDEA.
>
> Thanks in advance
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/0aec644e-488d-44e1-bc89-16b20d9062bbn%40googlegroups.com.


[codenameone-discussions] Re: Custom extension not registered and not opening files with AppArg on iOS

2021-06-03 Thread Shai Almog
So if I understand correctly your app appears correctly in the list of 
options for the file. But the arg isn't passed when you click on the app. 
On which version of iOS are you testing this?

On Thursday, June 3, 2021 at 4:36:41 PM UTC+3 P5music wrote:

>
> My CN1 app has to open data files with custom extension when the user 
> selects one of them to be opened from the Files app, or another app (like 
> opening it as e-mail attachment, for example).
> The import/export feature works.
>
> This is a part of the ios.plistInject string:
>
>
> UTExportedTypeDeclarations 
> UTTypeDescriptionList of 
> datatypeUTTypeConformsTopublic.jsonpublic.databasepublic.datapublic.textpublic.contentUTTypeIdentifiercom.myapp.datatypeUTTypeTagSpecificationpublic.filename-extensionextpublic.mime-typeapplication/json
>  
>
>
> the ios.plistInject has also other keys that correspond to working 
> features of the app, so it means that the plist injection is accepted and 
> processed by XCode.
>
> Instead, the custom extension is not registered in the system (iOS 
> simulator).
>
> The Swift counterpart of the CN1 app is able to register the extension, so 
> when the data file with custom extension is displayed as json it shows its 
> description 
> "List of datatype"
>
> Only the file name is displayed instead with the CN1 app installed.
>
> The CN1 app does not open the file if the user selects it in the Files 
> app, and no option is available.
>
> The following code is used, and it works on the CN1 simulator
>
> // it is in the start() method
> String arg=Display.getInstance().getProperty("AppArg",null);
> System.out.println("arg="+arg);
> if (arg!=null) importArg(arg);
>
> Is that string in ios.plistInject wrong? It is the same of the Swift app, 
> it was pasted from there in fact (see below).
>
> Thanks in advance.
>
> UTExportedTypeDeclarations
> 
> 
> UTTypeDescription
> List of datatype
> UTTypeConformsTo
> 
> public.json
> public.database
> public.data
> public.text
> public.content
> 
> UTTypeIdentifier
> com.myapp.datatype
> UTTypeTagSpecification
> 
> public.filename-extension
> 
> ext
> 
> public.mime-type
> 
> application/json
> 
> 
> 
> 

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/5dc8fb38-4fdd-4598-a43d-1ef3830de819n%40googlegroups.com.


[codenameone-discussions] Re: Suggestion about changing the location of cn1storage folder

2021-06-03 Thread Shai Almog
We can't change something dynamically as it will break compatibility. You 
can submit an RFE or pull request which provides the different storage 
location option as an API or configuration.

On Thursday, June 3, 2021 at 4:10:05 PM UTC+3 P5music wrote:

> Can the cn1storage folder be under the Library directory on iOS instead of 
> Documents for new maven templates or as an option for existing projects (at 
> least those unpublished yet like mine)?
>
> My app exposes the Documents folder to the user.
> The user doesn't want to see other content among the "documents". It also 
> can be accidentally deleted 
> even if it is made not visible, but it could be an option, I think. I saw 
> also other files there, as for example a sort of package.
> There is no technical reason to leave it in the Documents directory, the 
> Library folder is under control of the app. 
>
> My app also created Library/Application Support, that is private to it.
> Also other folders can be created under Library, that are different from 
> the Application Support one (please do not put it there).
>
> Regards
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/01d90387-4279-4920-a0cf-3aad8129f0adn%40googlegroups.com.


[codenameone-discussions] Re: Problems with a webservice and population in Json

2021-06-02 Thread Shai Almog
In JSON [] means array or list and {} means object or map. So you do have a 
list of maps in the jSON which is what you see in Java.

Sorry it wasn't clear but I means java.util.List not com.codename1.ui.List. 
If you fix your import the code I posted above should work.

On Wednesday, June 2, 2021 at 6:06:04 AM UTC+3 rdvg...@gmail.com wrote:

> Hi,
>
> In with a JSON validator on the internet I put the URL that I am using:
>
> http://3.12.118.139:8091/scriptcase/app/tempus/blank_ws_autenticar/blank_ws_autenticar.php?usuario=demo1=123
>
> I was able to verify that the ws is working well as the validation 
> resulted in:
> [ { "usuario_id":"17", "usuario":"demo1", "nombre_empresa":"Embutidora 
> Nacional", "impuesto":"7", "menu_id":"1", "dispositivo_id":"4", 
> "lee_huella":"1", "imei":"5", "numero_telefono":"64237770", "correo":"
> rube...@yahoo.com", "nombre":"Usuario Embutidos", "radio":"300", 
> "fuente_inventario":"A", "permite_cambiar_foto":"1", "inicio_sesion":"1", 
> "rango_inicio":"11", "rango_fin":"15", "secuencia_orden":"100054", 
> "estado":"A", "token":"0a5b3d4a-5b8f-443d-af8e-cfb4100b71c4" }]
>
> For some reason that I do not understand, I am resiving it as a list and 
> therefore my problem must be with the client. The method to receive is:
>  
> public static void login(Idioma idioma, String usuario, String contrasena, 
> final SuccessCallback onSuccess, final FailureCallback 
> onError) {
>   Rest.get(SERVER_URL + 
> "blank_ws_autenticar/blank_ws_autenticar.php").
> acceptJson().
> queryParam("contrasena", contrasena).
> queryParam("usuario", usuario).
> getAsJsonMapAsync(new Callback>() {
>
> @Override
> public void onSucess(Response value) {
> usr = new Usuario();
> PreferencesObject.create(usr).bind();
> 
> usr.getPropertyIndex().populateFromMap(value.getResponseData());
>
> onSuccess.onSucess(usr);
> }
>
> @Override
> public void onError(Object sender, Throwable err, int 
> errorCode, String errorMessage) {
> onError.onError(null, err, errorCode, 
> errorMessage);
> }
> });
>   }
>
> I appreciate you pointing out what I'm doing wrong.
> Thanks
>
>
> El Tuesday, June 1, 2021 a la(s) 9:01:21 PM UTC-5, rdvg...@gmail.com 
> escribió:
>
>> Hi,
>>
>> Return error in List entries = (List)responseMap.get("data");
>>
>> java.lang.ClassCastException: class java.util.ArrayList cannot be cast to 
>> class com.codename1.ui.List (java.util.ArrayList is in module java.base of 
>> loader 'bootstrap'; com.codename1.ui.List is in unnamed module of loader 
>> com.codename1.impl.javase.ClassPathLoader @5d5eef3d)
>> at com.innova507.server.UsuarioService$1.onSucess(UsuarioService.java:84)
>> at com.innova507.server.UsuarioService$1.onSucess(UsuarioService.java:68)
>> at 
>> com.codename1.io.rest.RequestBuilder$6.actionPerformed(RequestBuilder.java:582)
>> at 
>> com.codename1.io.rest.RequestBuilder$6.actionPerformed(RequestBuilder.java:567)
>> at 
>> com.codename1.ui.util.EventDispatcher.fireActionSync(EventDispatcher.java:459)
>> at 
>> com.codename1.ui.util.EventDispatcher.access$100(EventDispatcher.java:45)
>> at 
>> com.codename1.ui.util.EventDispatcher$CallbackClass.run(EventDispatcher.java:95)
>> at com.codename1.ui.Display.processSerialCalls(Display.java:1365)
>> at com.codename1.ui.Display.edtLoopImpl(Display.java:1307)
>> at com.codename1.ui.Display.mainEDTLoop(Display.java:1189)
>> at com.codename1.ui.RunnableWrapper.run(RunnableWrapper.java:120)
>> at com.codename1.impl.CodenameOneThread.run(CodenameOneThread.java:176)
>>
>> El Tuesday, June 1, 2021 a la(s) 8:45:43 PM UTC-5, Shai Almog escribió:
>>
>>> Hi,
>>> It's a bit hard to read in this way but it looks like the server returns 
>>> a list of users. 
>>> So you would need something like this:
>>> Map responseMap = value.getResponseData();
>>> List entries = (List)responseMap.get(&qu

[codenameone-discussions] Re: Problems with a webservice and population in Json

2021-06-01 Thread Shai Almog
Hi,
It's a bit hard to read in this way but it looks like the server returns a 
list of users. 
So you would need something like this:
Map responseMap = value.getResponseData();
List entries = (List)responseMap.get("data");
usr.getPropertyIndex().populateFromMap((Map)entries.get(0));

On Tuesday, June 1, 2021 at 6:49:12 AM UTC+3 rdvg...@gmail.com wrote:

> Hi,
>
> In debug the value value.getResponseData () is:
> [image: Muestra.png]
> I have "*usuario*" class that implements PropertyBusinessObject to 
> receive interaction "0" (see image).
>
> When I try to receive the fields from the class they are in null (  
> *usr.getPropertyIndex().populateFromMap(value.getResponseData())*;  ).
>
> Thanks
>
> El Monday, May 31, 2021 a la(s) 8:45:59 PM UTC-5, Shai Almog escribió:
>
>> Hi,
>> It's hard to tell. Is the printout of data related to 
>> value.getResponseData()?
>> What are the fields of User?
>> How does it fail? Is the user object not set?
>> If you step over it with a debugger is it set for a short while? 
>>
>> On Monday, May 31, 2021 at 7:14:58 PM UTC+3 rdvg...@gmail.com wrote:
>>
>>> Hi,
>>>
>>> I am trying to consume a webservice using the restful API. It correctly 
>>> returns the information I request:
>>>
>>> data => [{usuarioid=17, usuario=demo1, nombreempresa=Embutidora 
>>> Nacional, impuesto=7, menuid=1, dispositivoid=4, leehuella=1, imei=5, 
>>> correo=rube...@yahoo.com, nombre=Usuario Embutidos, radio=300, 
>>> fuenteinventario=A, permitecambiarfoto=1, iniciosesion=1, 
>>> contrasena=202cb962ac59075b964b07152d234b70, rangoinicio=11, 
>>> rangofin=15, secuenciaorden=100054, estado=A, 
>>> token=0a5b3d4a-5b8f-443d-af8e-cfb4100b71c4}]
>>>
>>> To consume I do the following:
>>>
>>> public static void login(Idioma idioma, String usuario, String 
>>> contrasena, final SuccessCallback onSuccess, final 
>>> FailureCallback onError) {  
>>> Rest.get(SERVER_URL + 
>>> "blank_ws_autenticar/blank_ws_autenticar.php").
>>> acceptJson().
>>> queryParam("contrasena", contrasena).
>>> queryParam("usuario", usuario).
>>> getAsJsonMapAsync(new Callback>() {
>>>
>>> @Override
>>> public void onSucess(Response value) {
>>> usr = new Usuario();
>>> PreferencesObject.create(usr).bind(); 
>>>* 
>>> usr.getPropertyIndex().populateFromMap(value.getResponseData())*;
>>> onSuccess.onSucess(usr);
>>> }
>>>
>>> @Override
>>> public void onError(Object sender, Throwable err, 
>>> int errorCode, String errorMessage) {
>>> onError.onError(null, err, errorCode, 
>>> errorMessage);
>>> }
>>> });
>>> }
>>>
>>> I cannot pass the information through the property "populateFromMap"
>>> What is the correct way to do it?
>>>
>>> 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/1bf6c65e-8468-40b6-a40a-d5d575c05080n%40googlegroups.com.


[codenameone-discussions] Re: Problems with a webservice and population in Json

2021-05-31 Thread Shai Almog
Hi,
It's hard to tell. Is the printout of data related to 
value.getResponseData()?
What are the fields of User?
How does it fail? Is the user object not set?
If you step over it with a debugger is it set for a short while? 

On Monday, May 31, 2021 at 7:14:58 PM UTC+3 rdvg...@gmail.com wrote:

> Hi,
>
> I am trying to consume a webservice using the restful API. It correctly 
> returns the information I request:
>
> data => [{usuarioid=17, usuario=demo1, nombreempresa=Embutidora Nacional, 
> impuesto=7, menuid=1, dispositivoid=4, leehuella=1, imei=5, correo=
> rube...@yahoo.com, nombre=Usuario Embutidos, radio=300, 
> fuenteinventario=A, permitecambiarfoto=1, iniciosesion=1, 
> contrasena=202cb962ac59075b964b07152d234b70, rangoinicio=11, 
> rangofin=15, secuenciaorden=100054, estado=A, 
> token=0a5b3d4a-5b8f-443d-af8e-cfb4100b71c4}]
>
> To consume I do the following:
>
> public static void login(Idioma idioma, String usuario, String contrasena, 
> final SuccessCallback onSuccess, final FailureCallback 
> onError) {  
> Rest.get(SERVER_URL + 
> "blank_ws_autenticar/blank_ws_autenticar.php").
> acceptJson().
> queryParam("contrasena", contrasena).
> queryParam("usuario", usuario).
> getAsJsonMapAsync(new Callback>() {
>
> @Override
> public void onSucess(Response value) {
> usr = new Usuario();
> PreferencesObject.create(usr).bind(); 
>* 
> usr.getPropertyIndex().populateFromMap(value.getResponseData())*;
> onSuccess.onSucess(usr);
> }
>
> @Override
> public void onError(Object sender, Throwable err, int 
> errorCode, String errorMessage) {
> onError.onError(null, err, errorCode, 
> errorMessage);
> }
> });
> }
>
> I cannot pass the information through the property "populateFromMap"
> What is the correct way to do it?
>
> 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/54e17c02-f6cd-459e-b1d3-d708df13f73bn%40googlegroups.com.


[codenameone-discussions] Re: Native iOS Pickers

2021-05-30 Thread Shai Almog
Our picker looks native on iOS and can be customized to look more native. 
It's more functional than the native picker and doesn't have as many 
issues. If there's an issue with the L or functionality in the the 
lightweight picker we need to address that issue, not the "nativeness" 
which as I said, failed with literally every release of the OS.

Text selection is possible: 
https://www.codenameone.com/blog/lightweight-text-selection.html

On Sunday, May 30, 2021 at 12:25:21 PM UTC+3 Ch wrote:

> I don't know why the OP need native pickers, but from my perspective iOS 
> users expect consistency and don't understand why an iOS app would not use 
> native pickers as probably 99% of all apps do. iOS users basically don't 
> care about developer considerations and CN1 limitations. I had this 
> feedback from early tests of my app. Not sure if absence of native pickers 
> is make-or-break issue, but definitely an app doesn't score any points from 
> it.
>
> And personally, I hadn't even realized they had been deprecated on iOS. 
>
> There are also a couple of other differences/regressions between native 
> iOS apps and CN1 apps I've noticed: no (working) support for scroll-to-top 
> when tapping status bar, not possible to select displayed text for 
> copy/paste or Look Up, different feel of 'tensile' dynamics (eg bounce on 
> scroll to top/bottom). 
>
> On Saturday, May 29, 2021 at 6:58:14 AM UTC+2 Shai Almog wrote:
>
>> Native pickers break with every release of iOS. As a result we deprecated 
>> them on iOS. I'm not sure if we'll fix them. 
>> The question is: why do you need them? 
>>
>> On Friday, May 28, 2021 at 2:07:06 PM UTC+3 bsystems@gmail.com wrote:
>>
>>> We have noticed that implementing native pickers in ios does not work.
>>> We would like to find out why this happens.
>>>
>>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/df39e1a6-e72c-4ca5-b97f-e4cec228daf8n%40googlegroups.com.


[codenameone-discussions] Re: Native iOS Pickers

2021-05-28 Thread Shai Almog
Native pickers break with every release of iOS. As a result we deprecated 
them on iOS. I'm not sure if we'll fix them. 
The question is: why do you need them? 

On Friday, May 28, 2021 at 2:07:06 PM UTC+3 bsystems@gmail.com wrote:

> We have noticed that implementing native pickers in ios does not work.
> We would like to find out why this happens.
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/67c9f0d5-5cd8-4f31-a306-c13b4bc58eb8n%40googlegroups.com.


Re: [codenameone-discussions] iOS datepicker error

2021-05-28 Thread Shai Almog
Hi,
Native pickers break with every release of iOS. As a result we deprecated 
them on iOS. I'm not sure if we'll fix them. 
Our picker has a calendar mode which might be more similar to what you're 
trying to achieve.

You can explicitly force native pickers to work by invoking the set default 
method on the picker but I would recommend against it.

On Friday, May 28, 2021 at 2:03:15 PM UTC+3 Emma Wedi wrote:

>
> Hello,
> We are having issues implementing the lightweight picker and would like to 
> implement native ios pickers in the application.
> Could you please reconfigure your services to accept native ios pickers.
> Thank you
>
> On Friday, May 28, 2021 at 4:06:15 AM UTC Shai Almog wrote:
>
>> We changed the default on iOS to be the lightweight picker which should 
>> resolve this issue.
>>
>> On Thursday, May 27, 2021 at 5:22:23 PM UTC+3 Emma Wedi wrote:
>>
>>> When building with xcode 11.3, the datepicker works perfectly fine but 
>>> when the build is done with 14.2 the datepicker malfunctions and apple 
>>> needs builds to be done with 14 and above before it can be pushed to the 
>>> appstore
>>>
>>>
>>> On Thu, 27 May 2021, 01:56 Shai Almog,  wrote:
>>>
>>>> We don't support showing the picker without the button first. It's an 
>>>> API we used to have but there are portability issues involved since picker 
>>>> acts very differently when running on different OSs.
>>>>
>>>> On Wednesday, May 26, 2021 at 7:46:22 PM UTC+3 javier...@gmail.com 
>>>> wrote:
>>>>
>>>>> 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.setDate(new Date());
>>>>> center.add(startDateTimePicker);
>>>>> hi.add(BorderLayout.CENTER, center);
>>>>> hi.show();*
>>>>>
>>>>>
>>>>> On Wed, 26 May 2021 at 09:56, Emma Wedi  wrote:
>>>>>
>>>>>> Hello,
>>>>>> Am trying to implement ios datepicker(spinner) but it does not work 
>>>>>> but rather
>>>>>> displays a button on which you have to tap before the picker displays 
>>>>>> in the form of a modal.
>>>>>> Please any help on implementing ios native spinner datepicker
>>>>>> Thank you
>>>>>> Attached are images to demonstrate
>>>>>>
>>>>>> -- 
>>>>>> 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-discu...@googlegroups.com.
>>>>>> To view this discussion on the web visit 
>>>>>> https://groups.google.com/d/msgid/codenameone-discussions/2b44c0b2-6667-4cb3-a13b-fa735cc64ec8n%40googlegroups.com
>>>>>>  
>>>>>> <https://groups.google.com/d/msgid/codenameone-discussions/2b44c0b2-6667-4cb3-a13b-fa735cc64ec8n%40googlegroups.com?utm_medium=email_source=footer>
>>>>>> .
>>>>>>
>>>>> -- 
>>>>
>>> You received this message because you are subscribed to a topic in the 
>>>> Google Groups "CodenameOne Discussions" group.
>>>> To unsubscribe from this topic, visit 
>>>> https://groups.google.com/d/topic/codenameone-discussions/rSTsfSYS5kA/unsubscribe
>>>> .
>>>> To unsubscribe from this group and all its topics, send an email to 
>>>> codenameone-discu...@googlegroups.com.
>>>> To view this discussion on the web visit 
>>>> https://groups.google.com/d/msgid/codenameone-discussions/8db11869-ecda-41c5-8fc2-bc4d6c0ba17fn%40googlegroups.com
>>>>  
>>>> <https://groups.google.com/d/msgid/codenameone-discussions/8db11869-ecda-41c5-8fc2-bc4d6c0ba17fn%40googlegroups.com?utm_medium=email_source=footer>
>>>> .
>>>>
>>>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/7fd52cf3-ccf1-4d8f-b057-c2f87adcc025n%40googlegroups.com.


[codenameone-discussions] Re: iOS Date Picker UI Change

2021-05-28 Thread Shai Almog
Native pickers break with every release of iOS. As a result we deprecated 
them on iOS. I'm not sure if we'll fix them. 
Our picker has a calendar mode which might be more similar to what you're 
trying to achieve.

On Friday, May 28, 2021 at 11:03:52 AM UTC+3 bsystems@gmail.com wrote:

> When the app is built with xcode 11.3, the native ios datepicker displays 
> perfectly on both and old ios versions
> but when it is built with xcode 12.4, ios version 14 and upwards displays 
> a new native datepicker (image reference below).
>
> The goal is to build with xcode 12.4 (since any lesser version would be 
> restricted from publishing by apple) and still get the native ios picker 
> that displays when the built is done with 11.3
>
>
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/aa21594f-8650-4fd2-aed0-1914dce7e308n%40googlegroups.com.


Re: [codenameone-discussions] iOS datepicker error

2021-05-27 Thread Shai Almog
We changed the default on iOS to be the lightweight picker which should 
resolve this issue.

On Thursday, May 27, 2021 at 5:22:23 PM UTC+3 Emma Wedi wrote:

> When building with xcode 11.3, the datepicker works perfectly fine but 
> when the build is done with 14.2 the datepicker malfunctions and apple 
> needs builds to be done with 14 and above before it can be pushed to the 
> appstore
>
>
> On Thu, 27 May 2021, 01:56 Shai Almog,  wrote:
>
>> We don't support showing the picker without the button first. It's an API 
>> we used to have but there are portability issues involved since picker acts 
>> very differently when running on different OSs.
>>
>> On Wednesday, May 26, 2021 at 7:46:22 PM UTC+3 javier...@gmail.com wrote:
>>
>>> 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.setDate(new Date());
>>> center.add(startDateTimePicker);
>>> hi.add(BorderLayout.CENTER, center);
>>> hi.show();*
>>>
>>>
>>> On Wed, 26 May 2021 at 09:56, Emma Wedi  wrote:
>>>
>>>> Hello,
>>>> Am trying to implement ios datepicker(spinner) but it does not work but 
>>>> rather
>>>> displays a button on which you have to tap before the picker displays 
>>>> in the form of a modal.
>>>> Please any help on implementing ios native spinner datepicker
>>>> Thank you
>>>> Attached are images to demonstrate
>>>>
>>>> -- 
>>>> 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-discu...@googlegroups.com.
>>>> To view this discussion on the web visit 
>>>> https://groups.google.com/d/msgid/codenameone-discussions/2b44c0b2-6667-4cb3-a13b-fa735cc64ec8n%40googlegroups.com
>>>>  
>>>> <https://groups.google.com/d/msgid/codenameone-discussions/2b44c0b2-6667-4cb3-a13b-fa735cc64ec8n%40googlegroups.com?utm_medium=email_source=footer>
>>>> .
>>>>
>>> -- 
>>
> You received this message because you are subscribed to a topic in the 
>> Google Groups "CodenameOne Discussions" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/codenameone-discussions/rSTsfSYS5kA/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, send an email to 
>> codenameone-discu...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/codenameone-discussions/8db11869-ecda-41c5-8fc2-bc4d6c0ba17fn%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/codenameone-discussions/8db11869-ecda-41c5-8fc2-bc4d6c0ba17fn%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/b38a5700-a327-42f1-88ca-8a0c472cea88n%40googlegroups.com.


Re: [codenameone-discussions] iOS datepicker error

2021-05-26 Thread Shai Almog
We don't support showing the picker without the button first. It's an API 
we used to have but there are portability issues involved since picker acts 
very differently when running on different OSs.

On Wednesday, May 26, 2021 at 7:46:22 PM UTC+3 javier...@gmail.com wrote:

> 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.setDate(new Date());
> center.add(startDateTimePicker);
> hi.add(BorderLayout.CENTER, center);
> hi.show();*
>
>
> On Wed, 26 May 2021 at 09:56, Emma Wedi  wrote:
>
>> Hello,
>> Am trying to implement ios datepicker(spinner) but it does not work but 
>> rather
>> displays a button on which you have to tap before the picker displays in 
>> the form of a modal.
>> Please any help on implementing ios native spinner datepicker
>> Thank you
>> Attached are images to demonstrate
>>
>> -- 
>> 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-discu...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/codenameone-discussions/2b44c0b2-6667-4cb3-a13b-fa735cc64ec8n%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/8db11869-ecda-41c5-8fc2-bc4d6c0ba17fn%40googlegroups.com.


Re: [codenameone-discussions] Push notification while app is open in foreground

2021-05-25 Thread Shai Almog
We don't have a way to distinguish that and I'm not sure we have a way of 
making that distinction. You can check if start() was invoked recently by 
saving the time it was invoked then avoid the toastbar since the app just 
loaded. It's a bit of a hack but I'm not sure if there's a better way.

On Tuesday, May 25, 2021 at 10:03:55 PM UTC+3 hana@gmail.com wrote:

> I faced another question about implementing Toastbar for the push 
> notification on iOS.
>
> The problem is that when the push() method is called, the display is 
> always in foreground. Therefore, when you receive the push notification 
> while the app is in background, and then click the notification - when the 
> app opens into foreground, it shows the toastbar as well. It shouldn't - 
> toastbar must be shown only if the app was in foreground at the moment of 
> receiving of push. 
> I tried checking the app state by adding Display.getInstance
> ().isMinimized() statement and I keep a value in Preferences which is set 
> to show toast when the start() method is called and not to show toast 
> when the stop() method is called. 
>
> To compare, the order of methods in Android is following:
> -> Click on push notification in the notification drawer (because the 
> preference is set to background it shows the notification) ->  
> -> App calls push() and shows me the form that I want it to show - >
> -> App calls start() and the Preference is getting set to foreground (show 
> me a toastbar in the future). 
> As a result, Android has the proper behavior when I click on the push 
> notification. 
>
> iOS logic is reversed -  when you press the notification, 
> -> App calls start(), and then
> -> App calls push() . 
> So when app gets to the push method, it always thinks that the app was 
> previously in a foreground. 
>
>
> I'll appreciate any suggestions. Thank you! 
> On Thursday, January 7, 2021 at 9:43:45 AM UTC-5 javier...@gmail.com 
> wrote:
>
>> I believe Steve just added fg local notifications on iOS. So it is now 
>> possible to show fg notifications also on iOS. Pls correct me if I am wrong
>>
>> Toastbar is great but unless users are 100% focused on the app you run 
>> the risk of losing the user's attention since it shows for a limited time
>>
>> If you instead schedule a notif the user is forced to see it/ discard it. 
>> Toastbar might be enough, just saying..
>>
>> On Thu, 7 Jan 2021, 14:12 Hannah R,  wrote:
>>
>>> Shai, Ok, I hear your point.
>>>
>>> Toastbar works great. Thank you. 
>>>
>>> On Wednesday, January 6, 2021 at 10:04:36 PM UTC-5 Shai Almog wrote:
>>>
>>>> Push notification works in the foreground just fine. The push() method 
>>>> callback is invoked when you're in the foreground but we don't add the 
>>>> notification to the pull down as this behavior isn't consistent across 
>>>> platforms. 
>>>>
>>>> I would suggest showing a toastbar message when a push method arrives 
>>>> and the app is in the foreground. That would reduce clutter in the hidden 
>>>> pulldown UI and would increase user interaction.
>>>>
>>>> On Wednesday, January 6, 2021 at 11:26:24 PM UTC+2 hana@gmail.com 
>>>> wrote:
>>>>
>>>>> Is LocalNotification not supported on simulator?  Or it cannot be 
>>>>> displayed on application's foreground too? 
>>>>> Because I wrote a code but the simulator is not displaying local 
>>>>> notifications in foreground. It shows only if app is paused, same as push 
>>>>> notifications. 
>>>>>
>>>>> On Wednesday, January 6, 2021 at 2:48:02 PM UTC-5 javier...@gmail.com 
>>>>> wrote:
>>>>>
>>>>>> You're welcome
>>>>>>
>>>>>> On Wed, 6 Jan 2021, 19:43 Hannah R,  wrote:
>>>>>>
>>>>>>> Javier, 
>>>>>>>
>>>>>>> That sounds like a good solution. Thank you. 
>>>>>>>
>>>>>>> On Wed, Jan 6, 2021 at 2:37 PM Marisole Aromatherapy <
>>>>>>> javier...@gmail.com> wrote:
>>>>>>>
>>>>>>>> Hi Hannah,
>>>>>>>>
>>>>>>>> I can only speak for myself. You can schedule a local notification 
>>>>>>>> the moment you receive a push notification in the fg. That local 
>>>>>>>> notification will then be displayed. I usually schedule it for +200ms 
>>>>>>>> fr

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

2021-05-24 Thread Shai Almog
You can delete individual files in storage one by one. Just avoid the 
preferences file name.

On Monday, May 24, 2021 at 11:00:27 PM UTC+3 hana@gmail.com wrote:

> I noticed that Android 7 device (API 24) doesn't erase some of the 
> preferences when the app is being reinstalled, unless I call clearAll() 
> or manually choose "Clear Data" in the App Storage settings. 
> This caused some bugs. 
> Adding  android.allowBackup=false to the hints resolved this particular 
> problem. 
>
>
> On Friday, May 21, 2021 at 12:58:51 AM UTC-4 Shai Almog wrote:
>
>> Preferences clearAll is pretty destructive. I would suggest using it only 
>> in extreme cases. 
>>
>> On Thursday, May 20, 2021 at 7:16:51 PM UTC+3 javier...@gmail.com wrote:
>>
>>> 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,  wrote:
>>>
>>>> Thank you, Javier. 
>>>>
>>>> I wondered if there are any other options because I use 
>>>> Preferences.clearAll() in some cases, as well as I wasn't sure about 
>>>> app updates etc. But I guess if there are no other ways or this is the 
>>>> best 
>>>> one, will do it. 
>>>>
>>>> On Thursday, May 20, 2021 at 11:55:26 AM UTC-4 javier...@gmail.com 
>>>> wrote:
>>>>
>>>>> 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 launched the first time after 
>>>>>> installation? 
>>>>>> Thank you a lot. 
>>>>>>
>>>>>> -- 
>>>>>> 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-discu...@googlegroups.com.
>>>>>> To view this discussion on the web visit 
>>>>>> https://groups.google.com/d/msgid/codenameone-discussions/c7b0a5b4-cfc9-48d8-85c6-7619272c6d2bn%40googlegroups.com
>>>>>>  
>>>>>> <https://groups.google.com/d/msgid/codenameone-discussions/c7b0a5b4-cfc9-48d8-85c6-7619272c6d2bn%40googlegroups.com?utm_medium=email_source=footer>
>>>>>> .
>>>>>>
>>>>> -- 
>>>> 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-discu...@googlegroups.com.
>>>>
>>> To view this discussion on the web visit 
>>>> https://groups.google.com/d/msgid/codenameone-discussions/5d4d76ec-87d6-4c2a-8cd4-e8343da1b77cn%40googlegroups.com
>>>>  
>>>> <https://groups.google.com/d/msgid/codenameone-discussions/5d4d76ec-87d6-4c2a-8cd4-e8343da1b77cn%40googlegroups.com?utm_medium=email_source=footer>
>>>> .
>>>>
>>>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/cc65c25a-7a9a-4d79-a473-33f974c37b87n%40googlegroups.com.


[codenameone-discussions] Re: Can I create a LinearLayout (for example) with native android code and display it on a CN1 interface ?

2021-05-24 Thread Shai Almog
Answered here: 
https://stackoverflow.com/questions/67673539/display-an-android-linearlayout-in-a-codename-one-application

On Monday, May 24, 2021 at 5:24:27 PM UTC+3 ahmed.t...@gmail.com wrote:

> I have a method that implements native android code to create this view. 
> if the method returns an EditText or Button for example, all works fine. 
> but if it returns a LinearLayout, nothing happens and I have no error 
> message.
>
> signature of the method that calls on the native code:
> public interface NativeCall extends NativeInterface { public PeerComponent 
> getMainView(); } 
>
> native implementation code that works well:
> public class NativeCallImpl { public android.view.View getMainView() { 
> Button b0 = new Button(((Context) MyApplication.getContext())); return b0; 
> } public boolean isSupported() { return true; } } 
>
> native code implementation which does not work:
> public class NativeCallImpl { public android.view.View getMainView() { 
> Button b0 = new Button(((Context) MyApplication.getContext())); Button b1 = 
> new Button(((Context) MyApplication.getContext())); b0.setText("b0"); 
> b1.setText("b1"); LinearLayout linearLayout = new LinearLayout(((Context) 
> MyApplication.getContext())); 
> linearLayout.setOrientation(LinearLayout.VERTICAL); 
> linearLayout.addView(b0); linearLayout.addView(b1); return linearLayout; } 
> public boolean isSupported() { return true; } } 
>
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/5dead35c-508c-4610-90fc-7184a1fda2b3n%40googlegroups.com.


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

2021-05-24 Thread Shai Almog
That isn't something I'm waiting for right now so I don't know when I'll 
get that. We still need to do some changes for m1 support.

On Monday, May 24, 2021 at 5:22:50 PM UTC+3 javier...@gmail.com wrote:

> Shai,
>
> Once you get that M2 it would be great to see how the deployment process 
> has changed in the new version of xcode :). I have ceased to see "Desktop" 
> downloads since I deployed from the new xcode version. I believe it is now 
> required to build a separate build (Destination -> Build 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 Anton  wrote:
>
>> 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 mac.
>>>
>>> On Saturday, May 8, 2021 at 7:03:53 PM UTC+3 javier...@gmail.com wrote:
>>>
>>>> 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 Apple Silicon computer (M1), the 
>>>> AppStore warned that unless told not to it would start offering iOS apps 
>>>> on 
>>>> the AppStore to Mac (Apple Silicon) users
>>>>
>>>> But now it looks like we have to also tick this box in Xcode in order 
>>>> to mark apps for Apple Silicon?
>>>>
>>>> I don't have an Apple Silicon computer (I wish), so I wonder if anyone 
>>>> who does has been able to test whether ticking/unticking this box has any 
>>>> effect on whether an app is displayed for download in an Apple Silicon's 
>>>> AppStore
>>>>
>>>> Thanks
>>>>
>>>> Javier
>>>>
>>> -- 
>>> 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-discu...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/codenameone-discussions/5e6f2552-c799-41f5-8cec-0483c830d9f9n%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/codenameone-discussions/5e6f2552-c799-41f5-8cec-0483c830d9f9n%40googlegroups.com?utm_medium=email_source=footer>
>>> .
>>>
>>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/150e62ee-5d54-44eb-97e7-9792a6256739n%40googlegroups.com.


[codenameone-discussions] Re: Disabling timeouts for slow systems (timeouts are not meaningful there)

2021-05-23 Thread Shai Almog
The timeout for pod install is 5 minutes and for the entire build is 25 
minutes. It should be enough. 

On Sunday, May 23, 2021 at 3:36:03 PM UTC+3 P5music wrote:

> I would like to know if it is possible to change some parameters in the 
> maven build files so that there is no timeouts, at least at some build 
> stages.
>
> When using very slow systems, being in fact able to finish the build, it 
> is common to find a failed build for timeout reason.
> I think it is useful and meaningful only with powerful systems, where a 
> timeout means that something went wrong.
> In my case it works, but it is very slow, so timeouts are not useful to me.
> For example, it fails when it has to delete a lot of files near the end of 
> the build process.
>
> Is it possible to manually change or remove timeouts in some configuration 
> file?
>
> Thanks in advance
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/483b5d0c-c40a-4223-8a0b-7e359bb4c798n%40googlegroups.com.


Re: [codenameone-discussions] CocoaPods command not found from Maven on Linux (CocoaPods is successfully installed)

2021-05-21 Thread Shai Almog
We use some 3rd party tools that are not our own. Our code might also make 
some assumptions without realizing since we never tested on Linux.

On Friday, May 21, 2021 at 4:11:29 PM UTC+3 P5music wrote:

> It's my curiosity.
> It assumes that it is running on a Mac, of course.
> I guess that something other than CocoaPods is necessary, for example 
> something from XCode.
> But I wonder, the output is just source code, so why could it not be 
> produced in a Linux environment?
> I am talking in principle, I know you are busy and cannot create another 
> project target like "XCode build on Linux".
> But would it be possible? Maybe there is something that can be renounced 
> and post-poned to the XCode real compiling.
> It would be very useful to create the XCode project in Linux and then just 
> move the snapshot to the OSX machine, at least in some cases.
> Also it could be useful creating something like the remote simulator 
> "trick" by Microsoft, that I think bypass the XCode step, although it is 
> operated under the hood.
>
> Regards
> Il giorno venerdì 21 maggio 2021 alle 13:53:08 UTC+2 Steve Hannah ha 
> scritto:
>
>> Linux isn't a supported platform for the Xcode project target.  The 
>> process assumes that it is running on a Mac with Xcode.  Installing 
>> cocoapods on Linux won't work around this.  It requires a mac.
>>
>> On Fri, May 21, 2021 at 3:24 AM 'P5music' via CodenameOne Discussions <
>> codenameone...@googlegroups.com> wrote:
>>
>>> I installed ruby and CocoaPods on my Linux system (Arch Garuda) to be 
>>> able to create the XCode snapshot project for my app. This could allow me 
>>> to just run XCode and iOS simulator on OSX, creating the project on Linux.
>>>
>>> I launched the local build for XCode but
>>> I got
>>>
>>> Please install Cocoapods in order to generate Xcode projects.  E.g. 
>>> 'sudo gem install cocoapods'.  See https://cocoapods.org/
>>> java.io.IOException: Cannot run program "/usr/local/bin/pod" (in 
>>> directory "."):
>>>
>>> the pod command is recognized from terminal
>>> but it seems that 
>>> the internal configuration of maven files points to another location.
>>> It is reasonable. This is an attempt to use cocoapods on Linux, but 
>>> until XCode is involved, it could work.
>>> Am I wrong?
>>> How to change the maven settings so that it call the right commands?
>>> If it is not directly possible, could it be possible with some 
>>> modifications from CodenameOne part?
>>> Thanks in advance
>>>
>>> -- 
>>> 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-discu...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/codenameone-discussions/ca599f54-04db-4155-8245-600b4acbc3een%40googlegroups.com
>>>  
>>> 
>>> .
>>>
>>
>>
>> -- 
>> Steve Hannah
>> Software Developer
>> Codename One
>> http://www.codenameone.com
>>
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/97e88d00-93e8-4499-9b71-7c135e931713n%40googlegroups.com.


[codenameone-discussions] Re: Documents folder on iOS device for CN1 apps

2021-05-21 Thread Shai Almog
We typically detect the file in the private folder and seamlessly copy the 
file to a place that's visible by the other app. 

On Friday, May 21, 2021 at 1:50:49 PM UTC+3 P5music wrote:

> Maybe it's me but I could not find any explanatory documentation on this.
>
> My CN1 app can export some data files for the user's convenience.
> The workflow that's only possible with CN1 as far as I understand is
> 1->using the Documents folder
> 2->sending an email message
> (at present time)
>
> I opted for 1
>
> But I cannot understand how the Documents folder (of my app) is seen by 
> the iOS user.
>
> Like
> is there a general Documents folder, inside which the user finds the files 
> saved by my app
> or
> there is a special area for the app sandbox?
> (It could also involve iTunes, but I see that a special hint has to be 
> added)
>
> Thanks in advance
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/3a4d1af0-1d74-4039-af50-090a3b376d78n%40googlegroups.com.


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

2021-05-20 Thread Shai Almog
Preferences clearAll is pretty destructive. I would suggest using it only 
in extreme cases. 

On Thursday, May 20, 2021 at 7:16:51 PM UTC+3 javier...@gmail.com wrote:

> 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,  wrote:
>
>> Thank you, Javier. 
>>
>> I wondered if there are any other options because I use 
>> Preferences.clearAll() in some cases, as well as I wasn't sure about app 
>> updates etc. But I guess if there are no other ways or this is the best 
>> one, will do it. 
>>
>> On Thursday, May 20, 2021 at 11:55:26 AM UTC-4 javier...@gmail.com wrote:
>>
>>> 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 launched the first time after 
 installation? 
 Thank you a lot. 

 -- 
 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-discu...@googlegroups.com.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/codenameone-discussions/c7b0a5b4-cfc9-48d8-85c6-7619272c6d2bn%40googlegroups.com
  
 
 .

>>> -- 
>> 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-discu...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/codenameone-discussions/5d4d76ec-87d6-4c2a-8cd4-e8343da1b77cn%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/083c5762-0c65-4344-9d82-c471441e96ffn%40googlegroups.com.


Re: [codenameone-discussions] Push key is null

2021-05-20 Thread Shai Almog
I saw in the other thread you use preferences.clearAll(). That would pretty 
much explain your problem...

On Friday, May 21, 2021 at 7:56:25 AM UTC+3 Shai Almog wrote:

> You have this: if (!Preferences.get("setIt", false)) which indicates you 
> don't call it every time.
> However, Push.getPushKey() should work and never turn back to null unless 
> you wipe something from storage/preferences. Is there some other code that 
> encrypts, wipes, logs out etc?
> On Thursday, May 20, 2021 at 5:37:41 PM UTC+3 hana@gmail.com wrote:
>
>> Thank you for your responses. 
>>
>> *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* - Thank you, I'll do that. Worth to 
>> try. 
>>
>> *You need to call register for push every time the app loads* - It does 
>> register every time, at least that what I can see from logs. The 
>> registeredForPush() method is called and it shows me the push key in the 
>> logs every time I launch the app. However, when I try to use the push key 
>> later in my code (sending it in ConnectionRequest to the backend), it 
>> doesn't work (the Push.getPushKey() is null), unless I call the  
>> registeredForPush() method again (which I do by reopening the app). 
>> I want to make sure that it's working after the first loading of the app. 
>>
>>
>>
>> On Wednesday, May 19, 2021 at 10:35:40 PM UTC-4 Shai Almog wrote:
>>
>>> You need to call register for push every time the app loads. Not just 
>>> the first time. So even if it fails the first time the app loads it should 
>>> work the second time.
>>>
>>> On Thursday, May 20, 2021 at 12:52:26 AM UTC+3 javier...@gmail.com 
>>> wrote:
>>>
>>>> (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.github.com/javieranton-zz/821455be02cf9e899b98f609152e99d4
>>>>
>>>> On Wed, 19 May 2021 at 22:18, Hannah R  wrote:
>>>>
>>>>> Hello,
>>>>>
>>>>> I have the following issue:
>>>>> In Android 7.0, when getting Push.getPushKey()  (not in 
>>>>> registeredForPush() method) the first time, it's null. 
>>>>> I have *callSerially(() -> registerPush());*
>>>>> in my start() method and 
>>>>> besides that, I added 
>>>>>
>>>>>
>>>>>
>>>>> *  if (!Preferences.get("setIt", false)) {
>>>>> Display.getInstance().registerPush();Preferences.set("setIt", 
>>>>> true);  }*
>>>>> into my pushRegistrationError(String error, int errorCode).
>>>>>
>>>>> If I kill the app, then open and call Push.getPushKey() the second 
>>>>> time, it gives me a valid id. 
>>>>>
>>>>> I put a log to test what is inside of the registeredForPush(String 
>>>>> deviceId) method, and it seems to work correctly - the *devicePush *is 
>>>>> not null and shows the id.(devicePush = Push.getPushKey();) 
>>>>>
>>>>> This happens only in Android 7, Android 10 and Android 8 devices 
>>>>> register push successfully from the first call. 
>>>>>
>>>>> Thank you. 
>>>>>
>>>>> -- 
>>>>> 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-discu...@googlegroups.com.
>>>>> To view this discussion on the web visit 
>>>>> https://groups.google.com/d/msgid/codenameone-discussions/537ef560-4120-4c47-8309-20d0aa2a5868n%40googlegroups.com
>>>>>  
>>>>> <https://groups.google.com/d/msgid/codenameone-discussions/537ef560-4120-4c47-8309-20d0aa2a5868n%40googlegroups.com?utm_medium=email_source=footer>
>>>>> .
>>>>>
>>>>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/5ee7c5e0-f318-43ca-86ad-f2e2acebccb5n%40googlegroups.com.


Re: [codenameone-discussions] Push key is null

2021-05-20 Thread Shai Almog
You have this: if (!Preferences.get("setIt", false)) which indicates you 
don't call it every time.
However, Push.getPushKey() should work and never turn back to null unless 
you wipe something from storage/preferences. Is there some other code that 
encrypts, wipes, logs out etc?
On Thursday, May 20, 2021 at 5:37:41 PM UTC+3 hana@gmail.com wrote:

> Thank you for your responses. 
>
> *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* - Thank you, I'll do that. Worth to 
> try. 
>
> *You need to call register for push every time the app loads* - It does 
> register every time, at least that what I can see from logs. The 
> registeredForPush() method is called and it shows me the push key in the 
> logs every time I launch the app. However, when I try to use the push key 
> later in my code (sending it in ConnectionRequest to the backend), it 
> doesn't work (the Push.getPushKey() is null), unless I call the  
> registeredForPush() method again (which I do by reopening the app). 
> I want to make sure that it's working after the first loading of the app. 
>
>
>
> On Wednesday, May 19, 2021 at 10:35:40 PM UTC-4 Shai Almog wrote:
>
>> You need to call register for push every time the app loads. Not just the 
>> first time. So even if it fails the first time the app loads it should work 
>> the second time.
>>
>> On Thursday, May 20, 2021 at 12:52:26 AM UTC+3 javier...@gmail.com wrote:
>>
>>> (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.github.com/javieranton-zz/821455be02cf9e899b98f609152e99d4
>>>
>>> On Wed, 19 May 2021 at 22:18, Hannah R  wrote:
>>>
>>>> Hello,
>>>>
>>>> I have the following issue:
>>>> In Android 7.0, when getting Push.getPushKey()  (not in 
>>>> registeredForPush() method) the first time, it's null. 
>>>> I have *callSerially(() -> registerPush());*
>>>> in my start() method and 
>>>> besides that, I added 
>>>>
>>>>
>>>>
>>>> *  if (!Preferences.get("setIt", false)) {
>>>> Display.getInstance().registerPush();Preferences.set("setIt", 
>>>> true);  }*
>>>> into my pushRegistrationError(String error, int errorCode).
>>>>
>>>> If I kill the app, then open and call Push.getPushKey() the second 
>>>> time, it gives me a valid id. 
>>>>
>>>> I put a log to test what is inside of the registeredForPush(String 
>>>> deviceId) method, and it seems to work correctly - the *devicePush *is 
>>>> not null and shows the id.(devicePush = Push.getPushKey();) 
>>>>
>>>> This happens only in Android 7, Android 10 and Android 8 devices 
>>>> register push successfully from the first call. 
>>>>
>>>> Thank you. 
>>>>
>>>> -- 
>>>> 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-discu...@googlegroups.com.
>>>> To view this discussion on the web visit 
>>>> https://groups.google.com/d/msgid/codenameone-discussions/537ef560-4120-4c47-8309-20d0aa2a5868n%40googlegroups.com
>>>>  
>>>> <https://groups.google.com/d/msgid/codenameone-discussions/537ef560-4120-4c47-8309-20d0aa2a5868n%40googlegroups.com?utm_medium=email_source=footer>
>>>> .
>>>>
>>>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/b4db7fc9-0d5f-4be5-a01b-5b1beac130ffn%40googlegroups.com.


[codenameone-discussions] Re: How to center a container?

2021-05-20 Thread Shai Almog
You can use several strategies but the simplest one would be to use 
TableLayout roughly like this:

TableLayout tl = new TableLayout(NUMBER_OF_BUTTONS, 1);
Container f1 =  new Container(tl); 
f1.add(tl.cc().ha(CENTER).wp(100), play);
f1.add(tl.cc().ha(CENTER), movie);

Notice the other lines don't need the widthPercent value since they're in 
the same column.
On Thursday, May 20, 2021 at 9:49:30 AM UTC+3 P5music wrote:

> Maybe you should use BorderLayout so you can place the f1 container in the 
> center of it.
>
> https://www.codenameone.com/javadoc/com/codename1/ui/layouts/BorderLayout.html
>
> Container f1 =  new Container(BoxLayout.y()); 
> Container blContainer =  new Container(new BorderLayout()); 
>
>Button concert=new Button("Concerts");
>
>Button play=new Button("Theatres");
>Button movie=new Button("Movies");
>Button cinema=new Button("Cinemas");
> Button musicien=new Button("Musiciens");
>  Button tactor=new Button("Theatre Actor");
>   Button factor=new Button("Movie Actor");
>  Button logout=new Button("Logout");
>f1.addAll(concert,play,movie,cinema,musicien,tactor,factor,logout);
>
> blContainer.add(BorderLayout.CENTER,f1);
> add(blContainer);
>
> I do not test it but I have some similar code in my app. It should work.
>
> Regards
> Il giorno giovedì 20 maggio 2021 alle 02:36:21 UTC azizaz...@gmail.com ha 
> scritto:
>
>> Having this problem. You'll find the display below,  please how to center 
>> it? 
>>
>> CODE:
>>
>>
>> Container f1 =  new Container(BoxLayout.y()); 
>>
>>Button concert=new Button("Concerts");
>>
>>Button play=new Button("Theatres");
>>Button movie=new Button("Movies");
>>Button cinema=new Button("Cinemas");
>> Button musicien=new Button("Musiciens");
>>  Button tactor=new Button("Theatre Actor");
>>   Button factor=new Button("Movie Actor");
>>  Button logout=new Button("Logout");
>>f1.addAll(concert,play,movie,cinema,musicien,tactor,factor,logout);
>> add(f1);
>>
>>
>> OUTPUT
>> [image: test.png]
>>
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/19dada0c-e721-4641-bf75-e8c34a2f74c3n%40googlegroups.com.


[codenameone-discussions] Re: "Failed to execute goal" - build-ios goal fails in maven very often

2021-05-20 Thread Shai Almog
There's no timeout. I think your install of ruby is broken. Not  an expert 
on Ruby though so I'm not sure.

On Thursday, May 20, 2021 at 9:44:19 AM UTC+3 P5music wrote:

> I checked the error and I realized that there is a corrupted file
> [INFO] : 
> /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/delegate.rb:1:
>  
> invalid multibyte char (UTF-8) (SyntaxError)
>
> it is full of random characters.
> Some other .rb files are normal readable source code, while other are 
> "obfuscated" as well.
> If other files are "obfuscated" can it depend on real obfuscation?
> If there is not obfuscation I have to reinstall Ruby. But what if that's 
> Ruby installation issue itself?
>
> I do not know if this happens when some timeout occurs, 
> while when timeout occurs that file is effectively needed and accessed so 
> the corrupted text causes the error.
> Maybe changing the timeouts somewhere it works again because that file is 
> never needed.
> ?
> Regards
> Il giorno giovedì 20 maggio 2021 alle 02:29:45 UTC Shai Almog ha scritto:
>
>> Yes. I think there's a timeout for some operations. I need to check.
>>
>> On Wednesday, May 19, 2021 at 9:13:44 AM UTC+3 P5music wrote:
>>
>>> Yes, as I said it just fails sometimes, it seems that it is caused by 
>>> some kind of slowness or timeout, but the error is the one I mentioned in 
>>> most recent cases.
>>> Regards
>>>
>>> Il giorno mercoledì 19 maggio 2021 alle 02:34:04 UTC Shai Almog ha 
>>> scritto:
>>>
>>>> Is cocoapods installed?
>>>>
>>>> On Tuesday, May 18, 2021 at 2:01:26 PM UTC+3 P5music wrote:
>>>>
>>>>> I am able to test my CN1 app on the iOS simulator, after the maven 
>>>>> system produces the XCode project.
>>>>> Very often I get this error below, but restoring a fresh system can 
>>>>> help. But it is stuck now. I need that the real problem goes away so that 
>>>>> nothing can end up leading to this error.
>>>>> Thanks in advance
>>>>>
>>>>> …
>>>>> (here are many other parsing lines)
>>>>> …
>>>>> …
>>>>> Parsing: 
>>>>> /Users/mac/sviluppo/myapp/ios/target/codenameone/antProject/dist/ios-build/classes/com/codename1/media/AbstractMedia$2StateChangeListener.class
>>>>> Parsing: 
>>>>> /Users/mac/sviluppo/myapp/ios/target/codenameone/antProject/dist/ios-build/classes/com/codename1/media/AudioBuffer$1.class
>>>>> [INFO] Rewrite 
>>>>> /Users/mac/sviluppo/myapp/ios/target/codenameone/antProject/dist/ios-build/dist/myapp-src/cn1_globals.h
>>>>>  
>>>>> with 1 changes
>>>>> [INFO] 
>>>>> [INFO] outputDirectory is: 
>>>>> /Users/mac/sviluppo/myapp/ios/target/codenameone/antProject/dist/ios-build/dist/myapp-src
>>>>> [INFO] 43 native files
>>>>> [INFO] Native files total 1028K
>>>>> [INFO] 
>>>>> [INFO] unusued Method cull removed 3010 methods in 91 seconds
>>>>> [INFO] 
>>>>> [INFO] Rewrite 
>>>>> /Users/mac/sviluppo/myapp/ios/target/codenameone/antProject/dist/ios-build/dist/myapp.xcodeproj/project.xcworkspace/contents.xcworkspacedata
>>>>>  
>>>>> with 1 changes
>>>>> [INFO] 
>>>>> [INFO] Rewrite 
>>>>> /Users/mac/sviluppo/myapp/ios/target/codenameone/antProject/dist/ios-build/dist/myapp.xcodeproj/project.pbxproj
>>>>>  
>>>>> with 60 changes
>>>>> [INFO] 
>>>>> [INFO] Rewrite 
>>>>> /Users/mac/sviluppo/myapp/ios/target/codenameone/antProject/dist/ios-build/dist/myapp-src/myapp-Info.plist
>>>>>  
>>>>> with 5 changes
>>>>> [INFO] 
>>>>> [INFO] Process return code is 0
>>>>> [INFO] Executing: 
>>>>> [INFO] echo chmod 0755 
>>>>> /Users/mac/sviluppo/myapp/ios/target/codenameone/antProject/dist/ios-build/hooks/fix_xcode_schemes.rb
>>>>>  
>>>>>
>>>>> [INFO] Executing with timeout -1
>>>>> [INFO] chmod 0755 
>>>>> /Users/mac/sviluppo/myapp/ios/target/codenameone/antProject/dist/ios-build/hooks/fix_xcode_schemes.rb
>>>>> [INFO] Process return code is 0
>>>>> [INFO] Executing: 
>>>>> [INFO] chmod 0755 
>>>>> /Users/mac/sviluppo/myapp/ios/target/codenameone/antProject/dist/ios-build/hooks/fix_xc

[codenameone-discussions] Re: Button not being displayed For PieCharts

2021-05-20 Thread Shai Almog
There's no need to cross post. We answer within 24 hours and go over 
everything. 

On Thursday, May 20, 2021 at 5:50:52 AM UTC+3 mongial...@gmail.com wrote:

> Please help me solve here:
>
>
> https://stackoverflow.com/questions/67613290/button-not-showing-codenameone
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/9be7bd04-8c87-4f96-99a4-515a5794f08bn%40googlegroups.com.


Re: [codenameone-discussions] Push key is null

2021-05-19 Thread Shai Almog
You need to call register for push every time the app loads. Not just the 
first time. So even if it fails the first time the app loads it should work 
the second time.

On Thursday, May 20, 2021 at 12:52:26 AM UTC+3 javier...@gmail.com wrote:

> (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.github.com/javieranton-zz/821455be02cf9e899b98f609152e99d4
>
> On Wed, 19 May 2021 at 22:18, Hannah R  wrote:
>
>> Hello,
>>
>> I have the following issue:
>> In Android 7.0, when getting Push.getPushKey()  (not in 
>> registeredForPush() method) the first time, it's null. 
>> I have *callSerially(() -> registerPush());*
>> in my start() method and 
>> besides that, I added 
>>
>>
>>
>> *  if (!Preferences.get("setIt", false)) {
>> Display.getInstance().registerPush();Preferences.set("setIt", 
>> true);  }*
>> into my pushRegistrationError(String error, int errorCode).
>>
>> If I kill the app, then open and call Push.getPushKey() the second time, 
>> it gives me a valid id. 
>>
>> I put a log to test what is inside of the registeredForPush(String 
>> deviceId) method, and it seems to work correctly - the *devicePush *is 
>> not null and shows the id.(devicePush = Push.getPushKey();) 
>>
>> This happens only in Android 7, Android 10 and Android 8 devices register 
>> push successfully from the first call. 
>>
>> Thank you. 
>>
>> -- 
>> 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-discu...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/codenameone-discussions/537ef560-4120-4c47-8309-20d0aa2a5868n%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/dafb80be-1f16-4f2b-8343-02deb7028bcen%40googlegroups.com.


[codenameone-discussions] Re: Android debug with android studio 4

2021-05-19 Thread Shai Almog
I still use 3.x locally but I'm pretty sure 4.0 will work well. I've heard 
bad things on 4.2 so far, people say it's even slower.

On Thursday, May 20, 2021 at 12:18:32 AM UTC+3 a2nd...@gmail.com wrote:

> What version of Android Studio would you recommend ?
>
> On Monday, May 17, 2021 at 10:12:27 PM UTC-4 Shai Almog wrote:
>
>> I doubt we support the beta version of Android Studio at the moment. I 
>> don't think that's normal though.
>>
>> On Monday, May 17, 2021 at 8:09:50 PM UTC+3 a2nd...@gmail.com wrote:
>>
>>> I'm still trying to do an android build but have a new problem. After 
>>> trying to rebuild the code on Android Studio 4.2 beta, I get the message:
>>>
>>> Failed to find Platform SDK with path: platforms;android-0
>>>
>>> I looked into my build.gradle file and see compileSdkVersion and 
>>> targetSdkVersion set to zero. Is that normal? -Dennis
>>>
>>> On Saturday, May 15, 2021 at 4:58:41 PM UTC-4 Dennis Rogers wrote:
>>>
>>>> Never mind the last post. I think I've resolved it :-|
>>>>
>>>> On Saturday, May 15, 2021 at 11:37:29 AM UTC-4 Dennis Rogers wrote:
>>>>
>>>>> I built the project for the device and it said I needed to run the 
>>>>> project, ~/IdeaProject/MyProject/android/target/
>>>>> When I do that, using android-studio, I get the error:
>>>>>
>>>>> Error: Cause 
>>>>> org.jetbrains.plugins.gradle.tooling.util.ModuleComponetnIdentifierimpl.getModuleIdentifier()Lorg/gradle/api/artifacts/ModuleIdentifier
>>>>>
>>>>> Is there another plugin I need for android-studio? 
>>>>>
>>>>> -Dennis
>>>>>
>>>>> On Monday, May 10, 2021 at 11:10:21 PM UTC-4 Shai Almog wrote:
>>>>>
>>>>>> The Codename One menu isn't applicable for the Maven projects. You no 
>>>>>> longer need the plugin when working with Maven. Just select the target 
>>>>>> from 
>>>>>> your IDE.
>>>>>>
>>>>>> On Monday, May 10, 2021 at 8:06:49 PM UTC+3 a2nd...@gmail.com wrote:
>>>>>>
>>>>>>> I've migrated to maven and am able to run the project on the 
>>>>>>> simulator. When I try to run it on a device, however, I can't access 
>>>>>>> the 
>>>>>>> "Codename one" menu. How do I build to a device ?
>>>>>>>
>>>>>>> On Wednesday, April 28, 2021 at 9:56:23 PM UTC-4 Shai Almog wrote:
>>>>>>>
>>>>>>>> Yes. What matters is the gradle version. I suggest using Gradle 6.5 
>>>>>>>> and defining android.appBundle=true in the build hints.
>>>>>>>>
>>>>>>>> Also you can migrate to maven (if you aren't there already) and do 
>>>>>>>> a local build. This will launch Android Studio seamlessly upon build 
>>>>>>>> so you 
>>>>>>>> can debug. See this: 
>>>>>>>> https://shannah.github.io/cn1-maven-archetypes/cn1app-archetype-tutorial/getting-started.html#android
>>>>>>>>
>>>>>>>> On Thursday, April 29, 2021 at 1:43:31 AM UTC+3 a2nd...@gmail.com 
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> Can I debug on an android device with android studio 4+? If not 
>>>>>>>>> which version should I use?
>>>>>>>>
>>>>>>>>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/8971c177-e229-4eeb-979f-52573191428bn%40googlegroups.com.


[codenameone-discussions] Re: Display Youtube Video On Component

2021-05-19 Thread Shai Almog
We can display videos on Components using the MediaManager. Youtube 
specifically prohibits showing videos without embed. 

On Wednesday, May 19, 2021 at 4:04:42 PM UTC+3 azizaz...@gmail.com wrote:

> Is there a way to display a youtube video in a component VideoViewer or 
> something like that? Looking for a response asap 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/5c5a1f27-4073-4c23-90aa-508388ce5018n%40googlegroups.com.


  1   2   3   4   5   6   7   8   9   10   >