[codenameone-discussions] Re: Form title is written twice

2016-09-20 Thread Shai Almog
I'm guessing this relates to dlgFilter blocking the EDT and disrupting the 
event processing.

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/6e700f7e-c8b5-42f0-81bd-7859f1125e50%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: Why does Socket.getHostOrIP() return localhost ?

2016-09-20 Thread Shai Almog
On which OS?
Notice that getting the current host/IP is problematic.

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/2548ff0c-494c-4c57-a3cc-fe5c5811231c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: how to set null date

2016-09-20 Thread Shai Almog
Thanks, we'll fix that for the next update.

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/37f0919b-feb6-4e06-a492-ee8bc00b718a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: programatically go back

2016-09-20 Thread Shai Almog
That's a race condition.
Notice that the error methods are called off the EDT so you need to use 
callSerially().

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/46915acb-6c42-4a83-a362-11f733ba36b9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: Where to download the new codenameOne doc

2016-09-20 Thread Shai Almog
Thanks,
please file an issue on that. I'll try to add the doc update to the weekly 
release process.

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/08cd7115-10f8-42a3-ae23-b24d4f80a632%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: Error compiling on Android

2016-09-20 Thread Shai Almog
Those are the native Android error logs. Unfortunately Google is found of 
making things harder to read.
We are trying to come up with a way to detect or even prevent such failures 
more effectively but for now that's why we have support.

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/317b8e2e-b501-4285-b029-c37ed571717b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Form title is written twice

2016-09-20 Thread howudodat1
When using a side menu and right bar and toastbar, setting the title of the 
window results in overwritten text:
The below code demos the problem.   Click on the filter button (far right, 
then click on apply in the dialog).  The result is below



package com.mycompany.myapp;


import com.codename1.components.ToastBar;
import com.codename1.ui.Command;
import com.codename1.ui.Display;
import com.codename1.ui.FontImage;
import com.codename1.ui.Toolbar;
import com.codename1.ui.layouts.BoxLayout;
import com.codename1.ui.plaf.UIManager;
import com.codename1.ui.table.Table;


public class FrmClients extends com.codename1.ui.Form {
 protected Table table = null;
 protected DlgClientFilter dlgFilter = new DlgClientFilter();
 ToastBar.Status status = ToastBar.getInstance().createStatus();
 
 public FrmClients() {
 initManualComponents();
 }


 protected void initManualComponents() {
Toolbar.setGlobalToolbar(true);
setLayout(new BoxLayout(BoxLayout.Y_AXIS));
 setTitle("Clients");
 setName("FrmClients");


 // sidebar
 if (getToolbar() == null) {
 setToolbar(new Toolbar());
 }
 getToolbar().addCommandToSideMenu(new Command("Dashboard") {
 public void actionPerformed(com.codename1.ui.events.ActionEvent ev) {
 }
 });
 
 Command cmdFilter = new Command("", FontImage.createMaterial(FontImage.
MATERIAL_FILTER_LIST, UIManager.getInstance().getComponentStyle("Command"), 
5)) {
 public void actionPerformed(com.codename1.ui.events.ActionEvent ev) {
 onFilter();
 }
 };
 getToolbar().addCommandToRightBar(cmdFilter);
 
table = new Table();
this.add(table);
 }


 public void refresh() {
 status.setMessage("Test");
 status.setProgress(0);
 status.show();
 
 loadClients(status);
 }


 protected void loadClients(ToastBar.Status prog) {
 prog.clear();
 setTitle("Test Done");
 return;
 }
 
 protected void onFilter() {
 dlgFilter.show(10, 0, (int)(Display.getInstance().getDisplayWidth()*.5), 0
);
 refresh();
 }
}

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/4795c019-67b3-4485-a60c-b1812773de52%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [codenameone-discussions] iOS Certificate Wizard Error

2016-09-20 Thread mcw
That fixed it!

Thank you

On Tuesday, September 20, 2016 at 5:09:49 PM UTC-7, Steve Hannah wrote:
>
> I found an error in the logs that hint at a problem, but I haven't been 
> able to reproduce this with any of the apple IDs I have access to.  I made 
> a change that might fix the issue.  Please give it another shot.
>
> Steve
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/c255d767-b0cd-4a9a-8be7-d81948b9169d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [codenameone-discussions] iOS Certificate Wizard Error

2016-09-20 Thread Steve Hannah
I found an error in the logs that hint at a problem, but I haven't been
able to reproduce this with any of the apple IDs I have access to.  I made
a change that might fix the issue.  Please give it another shot.

Steve

On Tue, Sep 20, 2016 at 4:21 PM, mcw  wrote:

>
> 
>
>
> 
>
>
> 
> When I run the iOS Certificate Wizard and enter my login info I get image1
> and image 2
>
>
> When I click OK and login to the Apple web site I get image 3.
>
> Any ideas?
>
> Thanks
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> Visit this group at https://groups.google.com/grou
> p/codenameone-discussions.
> To view this discussion on the web visit https://groups.google.com/d/ms
> gid/codenameone-discussions/7db89a11-11a4-4539-8dfd-433b64ed
> e11c%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
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.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKVZX8D36S_rpR7NJdnxz-kLPp4t%2Bma-WJw%3DPfW3oSPPMg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] iOS Certificate Wizard Error

2016-09-20 Thread mcw







When I run the iOS Certificate Wizard and enter my login info I get image1 
and image 2


When I click OK and login to the Apple web site I get image 3.

Any ideas?

Thanks




-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/7db89a11-11a4-4539-8dfd-433b64ede11c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] how to set null date

2016-09-20 Thread howudodat1
for the date picker, I dont want it to be today's date.  I want it to be 
"...", or empty

 if (client.getDC_Date() != null) cmbDate1.setDate(client.getDC_Date());
 cmbDate2.setDate(client.getDC_Date2());


if I dont call setDate, the picker defaults to today's date, and there is 
no way to leave the field blank if needed
if I call setDate(null) then when the picker is selected it get's a 
nullpointerexception

java.lang.NullPointerException
 at java.util.Calendar.setTime(Calendar.java:1770)
 at com.codename1.ui.spinner.Picker$1.actionPerformed(Picker.java:108)
 at com.codename1.ui.util.EventDispatcher.fireActionEvent(EventDispatcher.
java:349)
 at com.codename1.ui.Button.fireActionEvent(Button.java:411)
 at com.codename1.ui.Button.released(Button.java:442)
 at com.codename1.ui.Button.pointerReleased(Button.java:530)
 at com.codename1.ui.Form.pointerReleased(Form.java:2623)
 at com.codename1.ui.Form.pointerReleased(Form.java:2559)
 at com.codename1.ui.Component.pointerReleased(Component.java:3226)
 at com.codename1.ui.Display.handleEvent(Display.java:2022)
 at com.codename1.ui.Display.edtLoopImpl(Display.java:1067)
 at com.codename1.ui.Display.mainEDTLoop(Display.java:996)
 at com.codename1.ui.RunnableWrapper.run(RunnableWrapper.java:120)
 at com.codename1.impl.CodenameOneThread.run(CodenameOneThread.java:176)



-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/368296b6-8e22-4c5e-bf39-fcd075d7e38f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: programatically go back

2016-09-20 Thread howudodat1
ok, this solution works for an error situation.  However I am seeing 
similar weird behaviour when I do:
Form1 visible, click on button to show Form 2
Form2 during constructor calls toastbar and retrieves information from the 
server
Form2 click on "back" calls parent.showBack()
Form1 is reloaded but with toastbar visible and blocking.

Peter

On Monday, August 29, 2016 at 9:34:40 PM UTC-7, Shai Almog wrote:
>
> When a Dialog is disposed it goes to the form that showed it. ToastBar is 
> bound to a specific form so it won't work as expected either.
>
> The solution is to showBack() and use an addShowListener before that. 
> Within the show listener show your toastbar or dialog. This will do the 
> back transition first and then show the dialog/toast.
>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/a8b3316d-0a67-4089-9225-744bc7471bbe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: scrollComponentToVisible

2016-09-20 Thread howudodat1
Yes I ran it on a device both iOS and Android.  Both pickers are a joke for 
large lists, so my original question still stands.

On Thursday, September 1, 2016 at 10:19:33 PM UTC-7, Shai Almog wrote:
>
> Did you run it on the device?
> We don't have a screenshot of an iOS device in the javadoc 
> https://www.codenameone.com/javadoc/com/codename1/ui/spinner/Picker.html 
> but it does look/feel very different...
>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/46ed6962-b5a4-4677-bb35-bc1fee6200da%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Where to download the new codenameOne doc

2016-09-20 Thread Housseini Moussa
I am using the following link to download codenameone doc 
https://www.codenameone.com/files/CodenameOne_Docs_Demos.zip

But the doc I had is the old codenameone doc. What is the new link to 
download the new codenameone documentation


Thank

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/92e3b48e-db11-4917-a1fb-78d6bbc7ccab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: Error compiling on Android

2016-09-20 Thread Rocotoco Rodriguez
thanks!

so, its any way to make more clear the error's log?

thanks, again

On Tuesday, September 20, 2016 at 1:14:15 AM UTC-3, Shai Almog wrote:
>
> I'm assuming that this is with the bluetooth support?
> Did you include the required JSON cn1lib?
>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/ee4227bf-8a16-4fab-9390-ea8425203930%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.