[codenameone-discussions] Layout not scrolling

2018-02-04 Thread howudodat1
I have an entry dialog that doesn't scroll even though I have set 
scrollable Y to true.  here is a test case that shows the problem.  I have 
tried setting scrollableY on both the outer container and the inner 
container.  NB:  I know the form is really tiny, I have done that on 
purpose to demonstrate the scrolling issue

protected class DLGTest extends Dialog {
protected Button btnApply = new 
Button(FontImage.createMaterial(FontImage.MATERIAL_DONE, 
UIManager.getInstance().getComponentStyle("Command"), 5));
protected Button btnClose = new 
Button(FontImage.createMaterial(FontImage.MATERIAL_CLEAR, 
UIManager.getInstance().getComponentStyle("Command"), 5));
protected TextField tfLine1 = new TextField();
protected TextArea taNotes = new TextArea();
protected CheckBox cbStudy = new CheckBox();
protected TextField tfMaterial = new TextField();
public DLGTest() {
taNotes.setRows(5);

this.setLayout(new BorderLayout());
this.setScrollableY(true);

btnApply.setUIID("Label");
btnClose.setUIID("Label");
btnApply.addActionListener(evt -> dispose());
btnClose.addActionListener(evt -> dispose());

Container cntButtons = new Container(new FlowLayout(RIGHT));
cntButtons.add(btnApply);
cntButtons.add(btnClose);

TableLayout tl = new TableLayout(1,2);
Container cnt2 = new Container(tl);
cnt2.add(tl.createConstraint().horizontalSpan(1).widthPercentage(25), 
new Label());
cnt2.add(tl.createConstraint().horizontalSpan(1).widthPercentage(75), 
new Label());
cnt2.add(tl.createConstraint().horizontalSpan(1), new Label("Line 1"));
cnt2.add(tl.createConstraint().horizontalSpan(1), tfLine1);
cnt2.add(tl.createConstraint().horizontalSpan(1), new 
Label("Material"));
cnt2.add(tl.createConstraint().horizontalSpan(1), tfMaterial);
cnt2.add(tl.createConstraint().horizontalSpan(1), new Label("Study"));

cnt2.add(tl.createConstraint().horizontalSpan(1).horizontalAlign(Component.LEFT),
 
cbStudy);
cnt2.add(tl.createConstraint().horizontalSpan(1), new Label("Notes"));

Container cnt1 = new Container(new BorderLayout());
cnt1.add(BorderLayout.NORTH, cnt2);
cnt1.add(BorderLayout.CENTER, taNotes);
cnt1.setScrollableY(true);
this.add(BorderLayout.NORTH, cntButtons);
this.add(BorderLayout.CENTER, cnt1);
}
}
new DLGTest().show(20, 
(int)(Display.getInstance().getDisplayHeight()*.7)-20, 10, 10, true, 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.
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/edc23f29-1ca2-4c99-bdcc-85daea6ee2cf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Spanbutton doesn't delegate properties through event handlers

2017-11-09 Thread howudodat1
The name attribute set on a span button doesn't get propogated through the 
even handler...see this code:

SpanButton btnLogin = new SpanButton("Test");
btnLogin.setName("Test");
System.out.println(btnLogin.getName() + ":" + btnLogin.toString());
btnLogin.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
Object o = evt.getSource();
System.out.println(o.toString());
}
});


results in the following output:
Test:SpanButton[x=0 y=0 width=0 height=0, layout = BorderLayout, 
scrollableX = false, scrollableY = false, components = [Button, TextArea]]
Button[x=12 y=7 width=0 height=687, text = , gap = 2]


Neither the actual button type nor the name label is propagated through the 
event.

-- 
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/4bf47469-f6f4-4b7d-9f03-c9a01ad0129e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [codenameone-discussions] UWP Build = Black Screen

2017-10-22 Thread howudodat1
I just resent the build and it still crashes.  I'm still not getting crash 
reports.  BTW are you able to reproduce the problem?

On Saturday, October 21, 2017 at 10:55:01 PM UTC-7, Shai Almog wrote:
>
> I think the problem is that the material font didn't update properly. I 
> just pushed an update to that which would hopefully fix this issue. Our 
> Windows server updates are just very flaky because of reliability issues 
> with Windows 10.
>

-- 
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/edfb395d-3ee8-48e1-8302-7f1a07e31eba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [codenameone-discussions] UWP Build = Black Screen

2017-10-21 Thread howudodat1
Log.sendLog() works, or more precisely sends me a log file, 
String s = null; s.compareTo("test"); works

However the below code (which is also in my original post) crashes, and 
does not send a logfile.  BTW, I would rather focus on the crash and not on 
the fact there is no logfile.
Form hi = new Form("Hi World");
hi.setLayout(new BorderLayout());
Button btnLogin = new Button("Test");

btnLogin.setIcon(FontImage.createMaterial(FontImage.MATERIAL_CLOUD_DOWNLOAD, 
UIManager.getInstance().getComponentStyle("Command"), 5));
hi.add(BorderLayout.CENTER, btnLogin);

hi.show();




On Friday, October 20, 2017 at 9:24:13 PM UTC-7, Shai Almog wrote:
>
> If you use something like Log.p("Test"); Log.sendLog(); this should work 
> even in the simulator. If it doesn't it's possible that your local account 
> is building against a different account from the pro account. Notice that 
> the account you are logged into might be a different one from the one you 
> send builds to. You see the former in Codename One Settings. You see the 
> latter printed to the IDE console when sending a 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.
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/26e72833-ea36-4770-9220-caa13ecb4ca9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [codenameone-discussions] UWP Build = Black Screen

2017-10-20 Thread howudodat1
I upgraded to the pro plan, and 27 builds later I still dont have a crash 
report.
Hello World works, so I removed code until it worked and then started to 
add it all back in one line at a time.  Add a line, build, uninstall app, 
install app, watch it crash or not crash, goto Add a line.

Here is the offending line, as well as a hello world app that reproduces 
the problem:

Crash here:

btnLogin.setIcon(FontImage.createMaterial(FontImage.MATERIAL_CLOUD_DOWNLOAD, 
UIManager.getInstance().getComponentStyle("Command"), 5));


Full hello world app:
Form hi = new Form("Hi World");
hi.setLayout(new BorderLayout());
Button btnLogin = new Button("Test");

btnLogin.setIcon(FontImage.createMaterial(FontImage.MATERIAL_CLOUD_DOWNLOAD, 
UIManager.getInstance().getComponentStyle("Command"), 5));
hi.add(BorderLayout.CENTER, btnLogin);

hi.show();


I feel like I was stuck in the shower following the instructions on the 
shampoo...wash, rinse, repeat...wash, rinse, repeat  there's no break in 
that loop :)

Peter

On Thursday, October 19, 2017 at 11:36:32 AM UTC-7, Steve Hannah wrote:
>
> Likely it is crashing on start.  Without the stack trace it is hard to 
> know what is going on there.  If you're a pro user you can turn on crash 
> reporting and it will send you the crash report in email.  Otherwise you 
> can select "include sources", and open the project in Visual Studio if you 
> have that to see the debug log.
>
> Do you also get a black screen if you just build a hello world app?
>
>
>
> On Thu, Oct 19, 2017 at 11:01 AM,  
> wrote:
>
>> I have an app that has been in production for a while on iOS and Android, 
>> now there is one user who wants to run it on their surface pro.  So I did a 
>> windows uwp build following the instructions here:
>> https://www.codenameone.com/manual/appendix-uwp.html
>>
>> I saw the bug report here:
>> https://github.com/codenameone/CodenameOne/issues/2114 but it shows as 
>> closed and fixed.
>>
>> Questions:
>> 1.  Any ideas on the black screen?
>> 2.  The link mentioned somewhere about MS supporting android apk is dead
>> 3.  Would it be easier to implement the new MS iOS app to UWP app bridge? 
>> https://developer.microsoft.com/en-us/windows/bridges
>>
>>
>> 
>>
>>
>> 
>>
>>
>>
>> -- 
>>
> -- 
> 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/3cce7179-8344-4a99-8f0a-52d6152f4c27%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] UWP Build = Black Screen

2017-10-19 Thread howudodat1
I have an app that has been in production for a while on iOS and Android, 
now there is one user who wants to run it on their surface pro.  So I did a 
windows uwp build following the instructions here:
https://www.codenameone.com/manual/appendix-uwp.html

I saw the bug report here:
https://github.com/codenameone/CodenameOne/issues/2114 but it shows as 
closed and fixed.

Questions:
1.  Any ideas on the black screen?
2.  The link mentioned somewhere about MS supporting android apk is dead
3.  Would it be easier to implement the new MS iOS app to UWP app bridge? 
https://developer.microsoft.com/en-us/windows/bridges







-- 
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/37a197ac-9c17-4a6f-ad02-1bbddc22ad22%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] setting label to "" causes height to go to 0

2017-10-17 Thread howudodat1
IDE: Eclipse
Simulator 

When I add a label to BorderLayout.SOUTH and then set the label to "" the 
height of the label shrinks to 0 or maybe 1 pixel.  It seems to happen when 
using the map container.   When I just add it to a simple form, it doesn't 
shrink, however when I add it to a form that also contains mapcontainer 
then it makes the label disappear.

The code below reproduces the problem 
public class FrmMap extends com.codename1.ui.Form {
protected MapContainer cnt = new MapContainer(new 
GoogleMapsProvider("AIzaSyDq8k10JtB2aViAR30rKK-o2zfCAgTQg-0"));
Container cntMain = new Container(new BorderLayout());
protected Label lblStatus = new Label("Status");
public FrmMap() {
this(Resources.getGlobalResources());
}

public FrmMap(Resources resourceObjectInstance) {
initManualComponents();
Display.getInstance().callSerially(() -> { 
centerMapToLocation();
});
}
protected void initManualComponents() {
setLayout(new BorderLayout());
setTitle("Map");
setName("FrmMap");

this.setScrollable(false);
cnt.addMapListener(new MapListener() {
@Override
public void mapPositionUpdated(Component source, int zoom, Coord center) {
onMapUpdate(zoom, center);
}
});

cntMain.add(BorderLayout.CENTER, cnt);
cntMain.add(BorderLayout.SOUTH, lblStatus);

this.add(BorderLayout.CENTER, cntMain);
}
protected void centerMapToLocation() {
LocationManager l = LocationManager.getLocationManager(); 
l.setLocationListener(new LocationListener() {
public void locationUpdated(Location loc) { 
Coord c = new Coord(loc.getLatitude(), loc.getLongitude());
cnt.zoom(c , 13);
l.setLocationListener(null);
onMapUpdate(13, c);
}

public void providerStateChanged(int newState) {
}
}); 
}

protected void onMapUpdate(int zoom, Coord center) {
cnt.clearMapLayers();
cnt.addMarker(null,
center,
"Test", "Test",
new ActionListener() {
public void actionPerformed(ActionEvent evt) {
onClickList();
}
}
);
lblStatus.setText("");
}
protected void onClickList() {
Log.p("Clicked");
}
}


-- 
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/0d508902-8876-49df-842d-cda223bb324b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: MaterialScreensUIKit doesn't show hamburger (sidemenu)

2017-10-15 Thread howudodat1
I am only using the theme from that demo, not all the code.  The code I am 
using was in the first post.  I dont know if that makes a difference or 
not.  In any case it seems only natural to me to provide the response to 
the next question:  how do I turn it on?  and as a followup question, how 
do I chose to not hide the side menu icon so it's on by default?


On Friday, October 13, 2017 at 11:29:29 PM UTC-7, Shai Almog wrote:
>
> I think that in that specific demo I chose to hide the side menu icon so I 
> can add it manually in the code.
>

-- 
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/0561e47a-fb9d-4e2f-8d8f-5b24609a1f53%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: MaterialScreensUIKit doesn't show hamburger (sidemenu)

2017-10-13 Thread howudodat1
I am quite aware of that.  I must not have asked my question clearly 
enough.  When I *start* with material the hamburger icon is *not* visible.  
When I switch from native to material the icon is visible, but there are 
other artifacts (as I mentioned in my first post).

On Thursday, October 12, 2017 at 10:31:33 PM UTC-7, Shai Almog wrote:
>
> Changing themes dynamically can cause issues with some theme constant 
> behaviors.
>

-- 
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/ed0ca4bf-48dc-43df-8e2e-40cabb22867f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] MaterialScreensUIKit doesn't show hamburger (sidemenu)

2017-10-12 Thread howudodat1
using MaterialScreensUIKit and the following code:
 public void init(Object context) {
try {
  theme = UIManager.initNamedTheme("/theme", "material");
} catch (Exception e) {
}

// Enable Toolbar on all Forms by default
Toolbar.setGlobalToolbar(true);

}

public void start() {
  if(current != null){
current.show();
return;
}
Form hi = new Form("Toolbar", new BoxLayout(BoxLayout.Y_AXIS));
hi.getToolbar().addCommandToLeftBar("Native", null, (e) -> 
setTheme("Native"));
hi.getToolbar().addCommandToRightBar("Material", null, (e) -> 
setTheme("material"));
 hi.getToolbar().addCommandToSideMenu("Test", null, (e) -> 
setTheme("test"));

hi.show();
}

public void setTheme(String theme) {
Resources res = null;
try {
res = Resources.openLayered("/theme");
} catch (IOException e) {
Log.p(e.toString());
}
if (res != null) {
UIManager.getInstance().setThemeProps(res.getTheme(theme));
Display.getInstance().getCurrent().refreshTheme();
}

}



shows no side menu.  




and yes, I have the themes in my .res file




However starting with "Native" (I renamed Theme1 from when the project was 
created) and then switch to the material theme it shows the hamburger icon, 
but then of course there are a ton of other artifacts.

Peter

-- 
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/c366d8b4-656f-4e7a-a686-69e95f3c7807%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] iOS 11

2017-09-13 Thread howudodat1
Just curious how to go about making sure our apps will run on iOS 11?  Is 
there a test build environment setup for this?  Has any testing been done?  

-- 
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/b90640ea-0bfe-43a2-87e4-be37a71b0fbb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] contacts group

2017-06-06 Thread howudodat1
Is there a way to retrieve contacts by group?  I want to present a chooser 
of contacts but I want to present first a chooser of groups (ie: work, 
family, etc)  ContactsManager#getContacts will get me all the contacts, is 
there a similar getGroups?

Peter

-- 
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/2baec9d2-64de-4dab-836c-3d4791beaafd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2017-05-24 Thread howudodat1
I'm curious if this has been fixed?  If I setDate(null) on the simulator 
it's ok, on iOS it gives a null pointer exception.

On Tuesday, September 20, 2016 at 9:46:38 PM UTC-7, Shai Almog wrote:
>
> 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/f3128a8a-a697-4db0-8cc8-27ac9b99203c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: Login Buttons and Action Listeners, can you help me please?

2017-03-24 Thread howudodat1
look at TextField#getText / setText  ie: user1 = username.getText()

On Friday, March 24, 2017 at 4:56:50 AM UTC-7, TheHyng wrote:
>
> If you are experiencing an issue please mention the full platform your 
> issue applies to:
> IDE: NetBeans/Eclipse/IDEA
> Desktop OS
> Simulator 
> Device
>
> Hello, I've created a button called "login" and added an actionlistener 
> for when its clicked, but above that I have 2 textfields, the password and 
> the username, how do I add the text input from username and password to the 
> actual variables and verify it?
>
> String user1 = null, pass1 = null;
> Form login = new Form("Login");
> setBackCommand(login);
> TextField username = new TextField("","Username", 20, TextField.
> INITIAL_CAPS_WORD);
> TextField password = new TextField("", "Password", 20, TextField.
> PASSWORD);
> Button userlogin = new Button("Login");
> userlogin.addActionListener(new ActionListener(){
> @Override
> public void actionPerformed(ActionEvent evt){
> if (user1==null && pass1==null)
> Dialog.show("Warning!", "Please, fill all the ", "Ok",
> "Cancel");
> else
> //How do I add the textfield content to the variables 
> user1 and pass1?
> Dialog.show("Logged in!", "Log in successful! ", "Ok", 
> "Close 
> Dialog");
> }
> });
> login.addComponent(username);
> login.addComponent(password);
> login.addComponent(userlogin);
>
> There is no actual Login system going on, on background
>

-- 
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/d0ddb1c0-20c6-4018-a336-b2777b9756f0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: strange build server glitch

2017-03-17 Thread howudodat1
No changes to Log.  However, for whatever reason, it started building 
consistently this morning


On Thursday, March 16, 2017 at 10:49:48 PM UTC-7, Shai Almog wrote:
>
> This is totally unrelated. Dave's issue happens sometimes and is probably 
> related to an errant build server process that didn't get the right set of 
> updates so it grabs stray builds and fails "sometimes". 
> You are describing a consistent failure related to the Log class. Did you 
> do something special with the Log class?
>

-- 
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/a0dbb25f-b01c-4a6c-b130-4806e8fc952b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: Google maps now in simulator: thanks!

2017-03-15 Thread howudodat1
Never mind...sorry to resurrect this thread
GoogleMapsProvider provider = new GoogleMapsProvider(api);
MapComponent map = new MapComponent(provider);



On Wednesday, March 15, 2017 at 5:46:41 PM UTC-7, howud...@gmail.com wrote:
>
> Can you make it an option and we use our API key?
>
> On Saturday, March 12, 2016 at 7:56:45 PM UTC-8, Shai Almog wrote:
>>
>> We can't make Google maps the default as that requires an API key, we 
>> can't use ours as it will be depleted rather quickly and you would all see 
>> a blank screen.
>>
>

-- 
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/5bde2cfd-da7a-4224-b6fa-088967330160%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: Are the build servers down?

2017-03-15 Thread howudodat1
I should have saved my wireshark trace for you.  It showed DNS resolution, 
then connection with full SSL negotiation.  Then, of course, no further 
examination of the data is possible as it's encrypted, however about 
another 20 packets or so were exchanged after which the connection was 
reset (TCP RST).  This is highly unlikely that it's a problem on my side. 
 In any case it's working this morning

On Tuesday, March 14, 2017 at 11:25:31 PM UTC-7, Shai Almog wrote:
>
> That means you are having an issue connecting to S3 servers on AWS. This 
> is probably a connection hiccup on your side as I don't see downtime from 
> Amazon.
>

-- 
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/bb4168d3-64c4-4f34-b62a-1cc100b0db72%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: strange build server glitch

2017-03-15 Thread howudodat1
Not that I know of




On Tuesday, March 14, 2017 at 11:28:49 PM UTC-7, Shai Almog wrote:
>
> Do you have something within your native/android directory?
>

-- 
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/86dbf38c-ee26-4bf5-b5f7-84d87a3a7f4b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Are the build servers down?

2017-03-14 Thread howudodat1
[codeNameOne] java.net.ConnectException: Connection timed out (Connection 
timed out)
[codeNameOne] at java.net.PlainSocketImpl.socketConnect(Native Method)
[codeNameOne] at 
java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
[codeNameOne] at 
java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
[codeNameOne] at 
java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
[codeNameOne] at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
[codeNameOne] at java.net.Socket.connect(Socket.java:589)
[codeNameOne] at 
sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:668)
[codeNameOne] at 
sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:173)
[codeNameOne] at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
[codeNameOne] at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)
[codeNameOne] at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)
[codeNameOne] at 
sun.net.www.protocol.https.HttpsClient.(HttpsClient.java:264)
[codeNameOne] at 
sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:367)
[codeNameOne] at 
sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191)
[codeNameOne] at 
sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1138)
[codeNameOne] at 
sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1022)
[codeNameOne] at 
sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1020)
[codeNameOne] at java.security.AccessController.doPrivileged(Native Method)
[codeNameOne] at 
java.security.AccessController.doPrivilegedWithCombiner(AccessController.java:782)
[codeNameOne] at 
sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1019)
[codeNameOne] at 
sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177)
[codeNameOne] at 
sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(HttpURLConnection.java:1316)
[codeNameOne] at 
sun.net.www.protocol.http.HttpURLConnection.access$100(HttpURLConnection.java:91)
[codeNameOne] at 
sun.net.www.protocol.http.HttpURLConnection$8.run(HttpURLConnection.java:1283)
[codeNameOne] at 
sun.net.www.protocol.http.HttpURLConnection$8.run(HttpURLConnection.java:1281)
[codeNameOne] at java.security.AccessController.doPrivileged(Native Method)
[codeNameOne] at 
java.security.AccessController.doPrivilegedWithCombiner(AccessController.java:782)
[codeNameOne] at 
sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1280)
[codeNameOne] at 
sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:250)
[codeNameOne] at 
com.codename1.build.client.BuildProcess.uploadToS3(BuildProcess.java:305)
[codeNameOne] at 
com.codename1.build.client.BuildProcess.sendS3Build(BuildProcess.java:366)
[codeNameOne] at 
com.codename1.build.client.BuildProcess.sendRequestToServer(BuildProcess.java:432)
[codeNameOne] at 
com.codename1.build.client.CodeNameOneBuildTask.execute(CodeNameOneBuildTask.java:507)
[codeNameOne] at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
[codeNameOne] at sun.reflect.GeneratedMethodAccessor80.invoke(Unknown 
Source)
[codeNameOne] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[codeNameOne] at java.lang.reflect.Method.invoke(Method.java:498)
[codeNameOne] at 
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[codeNameOne] at org.apache.tools.ant.Task.perform(Task.java:348)
[codeNameOne] at org.apache.tools.ant.Target.execute(Target.java:435)
[codeNameOne] at org.apache.tools.ant.Target.performTasks(Target.java:456)
[codeNameOne] at 
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
[codeNameOne] at 
org.apache.tools.ant.Project.executeTarget(Project.java:1376)
[codeNameOne] at 
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
[codeNameOne] at 
org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:36)
[codeNameOne] at 
org.apache.tools.ant.Project.executeTargets(Project.java:1260)
[codeNameOne] at 
org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:705)
[codeNameOne] at 
org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:527)
[codeNameOne] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[codeNameOne] at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[codeNameOne] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[codeNameOne] at java.lang.reflect.Method.invoke(Method.java:498)
[codeNameOne] at org.eclipse.ant.core.AntRunner.run(AntRunner.java:371)
[codeNameOne] at org.eclipse.ant.core.AntRunner.run(AntRunner.java:473)

[codenameone-discussions] Contact Editor

2017-03-08 Thread howudodat1
if I have a ContactID, is there a way to launch the native contact editor / 
viewer?

Something similar to:

Intent intent = new Intent(Intent.ACTION_VIEW);
Uri uri = Uri.withAppendedPath(ContactsContract.Contacts.CONTENT_URI, 
String.valueOf(contactID));
intent.setData(uri);
context.startActivity(intent);


but for all platforms?

-- 
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/d73e4349-7004-4745-a3ff-9f400752bc2f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] phoenix theme differences

2017-03-04 Thread howudodat1
I have noticed some theme differences between the simulator (iOS base I 
assume) and what appears on my android device.  The differences so far are 
with MultiLine2 and Tabs.  I believe all I need to do is copy the elements 
from the iOS theme.  So I copied MultiLine1-4 and that worked.  I copied 
Tab, Tabs and TabContainer and it still doesn't match.  What else do I need 
to copy so that on Android the tabs are on the bottom and look like they 
would on iOS?  

Also on the simulator for android, the title bar is white with white 
lettering.  However on my actual Samsung, it shows ok.





-- 
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/cea018d9-c7bf-4215-924c-987ccfa2d380%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: error with uwp build and google maps

2017-03-03 Thread howudodat1
Just curious when cn1libs are updated, are they downloaded automatically to 
the project as is CLDC11?  or do I have to go look for it all the time?

On Thursday, March 2, 2017 at 11:11:37 PM UTC-8, Shai Almog wrote:
>
> Thanks, can you please file an issue on that?
> We are releasing an update to this cn1lib soon and it will probably 
> resolve that too.
>

-- 
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/9cd16397-001c-4ee3-b206-3d07dd6f0b24%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] error with uwp build and google maps

2017-03-02 Thread howudodat1
I am getting the following error trying to build a uwp app.  The app builds 
and runs fine so far on Android.  Another app I have that uses google maps 
builds and runs fine on iOS. 

[exec] Done Building Project 
"C:\Users\CODENA~1\AppData\Local\Temp\build7766042901287633407xxx\TestProject\UWPProject\UWPApp\UWPApp.csproj"
 (default targets) -- FAILED.
 [exec] 
 [exec] Build FAILED.
 [exec] 
 [exec] 
"C:\Users\CODENA~1\AppData\Local\Temp\build7766042901287633407xxx\TestProject\UWPProject\UWPApp\UWPApp.csproj"
 (default target) (1) ->
 [exec] (XamlPreCompile target) -> 
 [exec]   src\com\codename1\googlemaps\InternalNativeMapsImpl.cs(8,55): 
error CS1001: Identifier expected 
[C:\Users\CODENA~1\AppData\Local\Temp\build7766042901287633407xxx\TestProject\UWPProject\UWPApp\UWPApp.csproj]



Is there anything in particular I need to set for a UWP 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.
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/6d8b1f68-2422-4778-b636-cf2bfb9ba9df%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Theme Gallery

2017-03-02 Thread howudodat1
It would be nice if there were some form of a theme gallery where the cone 
community can share themes

-- 
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/64d344f9-e720-46aa-84ae-f69606403e10%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] default email account

2017-03-02 Thread howudodat1
Is it possible to get the default email account associated with the device? 
 if so how?

-- 
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/1cb95f28-b328-44b8-ac41-8b51fd3d6550%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] calling finalize() on db objects

2017-02-15 Thread howudodat1
I am getting the following errors on Database object that "supposedly" 
hasn't been closed yet.  I have a helper class that I use to retrieve the 
Database (all db calls go through this class) and in it's finalize I call 
close() on the db.  you can see from my log that it is being called. 
 Interestingly if I sprinkle my code with System.gc() I never get the 
warnings, only my Created/Finalized messages.

 I'm not sure what I am doing wrong
>
> MySQLiteDatabase Created:com.myapp.db.MySQLiteDatabase@7e9eb29
>
> MySQLiteDatabase Created:com.myapp.db.MySQLiteDatabase@35618bac
>
> MySQLiteDatabase Created:com.myapp.db.MySQLiteDatabase@5d07ff0
>
>  WARNING! Database object was released by the GC without being closed 
>> first! This might cause crashes on iOS *
>
> MySQLiteDatabase Finalized:com.myapp.db.MySQLiteDatabase@5d07ff0
>
> MySQLiteDatabase Finalized:com.myapp.db.MySQLiteDatabase@35618bac
>
>  WARNING! Database object was released by the GC without being closed 
>> first! This might cause crashes on iOS *
>
> MySQLiteDatabase Finalized:com.myapp.db.MySQLiteDatabase@7e9eb29
>
>
Here is the class that I use to wrap all my db calls:
public class MySQLiteDatabase extends Object {
 protected Database db = null;
 
 public void setDb(Database db) {
   this.db = db;
 }
 
 public MySQLiteDatabase() {
   System.out.println("MySQLiteDatabase Created:" + this);
 }
 
 protected void finalize() throws Throwable {
   System.out.println("MySQLiteDatabase Finalized:" + this);
   try {
 db.close();
   } catch (IOException e) {
 e.printStackTrace();
   }
 }
... }


Peter 

-- 
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/92385781-756b-415b-b889-82b2b8a6a2e1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] read/write sqlite db using sd card

2017-02-15 Thread howudodat1
My program allows users to store their db in any writeable portiion of the 
sd card (or external sd card).  or if they are on iOS or dont have any 
saved DBs, it uses getAppHomePath()
However Database.openOrCreate(sDB) appears to be dependant on 
/database for example when I provide a full path to the db I get 
this error: path to '/home/peter/.cn1/database/file://home//Peter 
Carlson.db3': '/home/peter/.cn1/database/file:' does not exist
How can I read/write to a DB that is on the SD Card?

-- 
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/1dedd571-5f9e-4d36-83bc-fe5b7f29b806%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: logfile

2016-12-04 Thread howudodat1

The problem though, unless I'm missing something, is in a thread, with an 
unhandled crash the code checks isCrashBound, 
(CodenameOneThread#handleException) which would be false and so would never 
call the newly installed logger (Log.e())
public static void handleException(Throwable err) {
if(Log.isCrashBound()) {
Log.e(err);
Log.sendLog();
}
}


On Sunday, December 4, 2016 at 5:05:22 PM UTC-8, Dave Dyer wrote:
>
>
> See this post, which includes a snippet that extracts stack traces using a 
> temporary logfile.
> You can adapt this to capture all the log events - but except for stack 
> traces I think you're
> better off using a private mechanism to log info.
>
>
> https://groups.google.com/forum/#!searchin/codenameone-discussions/logfile%7Csort:relevance/codenameone-discussions/kCbXGCqmt2o/N6vvLXtECQAJ
>
>

-- 
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/056f3090-e2d6-4f36-a5fe-483edcd717e7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: logfile

2016-12-02 Thread howudodat1
ok, so I have a situation that requires some flexibility.  The tablets are 
air gapped so using the "cloud based crash reporting" wont work.  We can 
use email based reporting (they can save the logfile as a draft and then 
send when they are connected)

However the sendlog function is static (not instance based) so I cant 
override it.  Can the following, or similar, change be made?  Or is there 
another way to send the log?

public static void sendLog() {
if (instance != null) instance._sendLog();
}

protected void _sendLog() {
    current sendLog continues here .





On Tuesday, October 4, 2016 at 8:04:02 PM UTC-7, Shai Almog wrote:
>
> Not much beyong the javadocs as far as I recall. Our official way for 
> reading is the sendLog() method which we use a lot but it's a pro feature.
> Writing is just Log.p(),Log.e() where you can just write whatever you want 
> into the log. I don't have experience in reading the log other than sendLog 
> since that works for us.
>

-- 
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/15ee2403-664e-45ea-9997-ca96ce09b615%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [codenameone-discussions] Re: error with in house profile

2016-11-17 Thread howudodat1
actually ios.distributionMethod=enterprise did the trick.  ad-hoc didn't 
work either

On Wednesday, November 16, 2016 at 10:54:46 PM UTC-8, Steve Hannah wrote:
>
> You need to use ios.distributionMethod=ad-hoc in your build hints.
>
> https://www.codenameone.com/manual/advanced-topics.html
>
> Steve
>
> On Wed, Nov 16, 2016 at 7:44 PM,  wrote:
>
>> I have checked that the WWDR certificate  is up to date, this is verified 
>> in the screenshot I posted that shows that the distribution certificate is 
>> valid.  tried build again...failed.
>>
>> On Wednesday, November 16, 2016 at 7:32:47 PM UTC-8, Shai Almog wrote:
>>>
>>> We don't have a one time support plan and even if we did the cost would 
>>> probably exceed the annual pro subscription service. 
>>> Manual certificate generation is always a painful process. Check that 
>>> your apple internal apple WWDR certificate is up to date: 
>>> http://docs.buddybuild.com/docs/installing-apples-updated-intermediate-wwdr-certificate
>>>
>> -- 
>> 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/6ed81dee-2c70-4afd-9b3f-d60acfd84629%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/4610d644-dc3e-4689-b272-1729f3d1bf69%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: error with in house profile

2016-11-16 Thread howudodat1
I have checked that the WWDR certificate  is up to date, this is verified 
in the screenshot I posted that shows that the distribution certificate is 
valid.  tried build again...failed.

On Wednesday, November 16, 2016 at 7:32:47 PM UTC-8, Shai Almog wrote:
>
> We don't have a one time support plan and even if we did the cost would 
> probably exceed the annual pro subscription service. 
> Manual certificate generation is always a painful process. Check that your 
> apple internal apple WWDR certificate is up to date: 
> http://docs.buddybuild.com/docs/installing-apples-updated-intermediate-wwdr-certificate
>

-- 
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/6ed81dee-2c70-4afd-9b3f-d60acfd84629%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: error with in house profile

2016-11-16 Thread howudodat1
I have performed all these steps more times than I can count.  wash rinse 
repeat...wait 10 minutes for the build to fail.  
Could it be the fact that it is an In-House certificate.  BTW, can I pay 
for a *one time* support incident?  I cant afford to keep waiting 24 hours 
in between questions?
Here are screenshots of the settings












On Tuesday, November 15, 2016 at 9:25:26 PM UTC-8, Shai Almog wrote:
>
> Check out this post about the different ways the era before the wizard 
> could fail: 
> https://www.codenameone.com/blog/ios-code-signing-fail-checklist.html
> Also make sure your apple wwdr certificate is valid and up to date.
>

-- 
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/3273a96f-1805-4e29-8bc6-7e15afc35138%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: Certificate Wizard Error

2016-11-16 Thread howudodat1
There are none.  I can generate all the certs, and apps and profiles as 
needed.  The release one just wont work (see other thread).

On Tuesday, November 15, 2016 at 9:23:08 PM UTC-8, Shai Almog wrote:
>
> Try going thru the process of creating a distribution certificate in the 
> Apple website, you can revoke it later with the wizard.
> See if there are any restrictions or license dialogs you need to accept.
>

-- 
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/e4af4e35-f7b3-487c-892f-97894637b99b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] certificate wizard

2016-11-15 Thread howudodat1
If you are experiencing an issue please mention the full platform your 
issue applies to:
IDE: NetBeans/Eclipse/IDEA
Desktop OS
Simulator 
Device

-- 
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/a494ef67-d401-49d1-ad6a-6674350f56eb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] sendmessage friendly display name

2016-11-11 Thread howudodat1
I am curious how to call sendMessage with a friendly display name?  ie: 
 Peter Carlson  when I send that I get Illegal 
character in opaque part at index 7: mailto:"Peter Ca...

-- 
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/8ba7dcba-ce13-4a0e-8e48-3730fa48515b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] tab order

2016-11-10 Thread howudodat1
Is there a way to set the tab order?  Is it possible to jump a control 
uwing the "next" on the ios keyboard?
I have a list of textfields (LastName, FirstName, Age) then a Picker 
(Gender), then more textfields (email, phone, ...)  
When the user taps in LastName they can hit next and it moves to the next 
field, but next is never visible at Age because the next field is a picker. 
 How can I make it so next is visible and that it skips the picker and 
jumps to email?

-- 
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/f888056d-48d5-4c9c-b704-d83c1a11f23d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: Is there a way to add a textfield to the command bar?

2016-11-10 Thread howudodat1
This is a nice feature and I will use it.   I have three questions:
1.  How can I know if the enter key or search key was pressed?  I dont want 
to process every single change...remember this is going to be sending 
requests off to google to plot on the map
2.  After the user presses enter/search on their keyboard and I present the 
results fro google, how can I hide the searchbar and go back to the normal 
title bar
3.  What if I dont want to use the search mode and want a textfield in the 
titlebar for another reason?

Finally this is not a question but a bug.  when activating the search bar 
in the emulator the keyboard doesn't popup

Peter

On Wednesday, November 9, 2016 at 8:48:28 PM UTC-8, Shai Almog wrote:
>
> Why not use the search feature:
> https://www.codenameone.com/blog/toolbar-search-mode.html
>

-- 
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/9297919c-3cf0-42c3-bddb-32f135a1baac%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Is there a way to add a textfield to the command bar?

2016-11-09 Thread howudodat1
I have a form with a map component.  I want to add a simple search field to 
the map and dont want to use the entire NORTH section, just a small part 
between the title and the right command  
this.getToolbar().addCommandToRightBar(cmdList);
How can I add a textfield to the toolbar?  I tried:
Command cmd = new Command("");
cmd.putClientProperty(SideMenuBar.COMMAND_SIDE_COMPONENT, 
tfGoogleSearch);
cmd.putClientProperty(SideMenuBar.COMMAND_ACTIONABLE, 
Boolean.FALSE);
cmd.putClientProperty("TitleCommand", Boolean.TRUE);
this.getToolbar().addCommandToRightBar(cmd);


but that didn't work.  I also tried:

this.getToolbar().addComponentToSideMenu(tfGoogleSearch);



but that put it in the left fly out menu and I want it in the titlebar

-- 
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/21307385-4efe-44bb-b086-7b35062ca101%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: hide notification

2016-10-15 Thread howudodat1
I will look into UITimer.  What I have done for now is in showListener I 
create a timer.  In the timer event i check if 
(Display.getInstance().getCurrent() != this) and kill the timer.  That 
seems to work so far.

On Saturday, October 15, 2016 at 7:47:24 PM UTC-7, Shai Almog wrote:
>
> If you use UITimer it will not invoke if the form is hidden. However it 
> will keep counting down so it might invoke immediately if the form is shown.
>

-- 
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/c4fc5804-f70f-4fa9-8fc1-a274a06cc7e9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] hide notification

2016-10-15 Thread howudodat1
I can override onShow or cal addShowListener() in order to know when a form 
is being displayed.  I use this to start a timer.  I'd like to cancel the 
timer when the form is not visible (ie user went home, or turned the 
display off, or selected another form).  How can I do this?

-- 
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/18484563-0ca8-4c06-a4a7-a37288109bd1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: Multibutton selected

2016-10-07 Thread howudodat1

>
>
> You can create your own lead component whose lead is a ToggleButton and 
> work with that.
>

Beautiful that worked like a charm 

-- 
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/56bdf468-454e-4c23-acde-ae14dbba680c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: mapobject nullpointer exception

2016-10-06 Thread howudodat1
I was able to get the behavior I wanted by clearing the maplayer and 
re-adding all the markers.  Is there a better way?

On Wednesday, October 5, 2016 at 8:30:43 PM UTC-7, Peter Carlson wrote:
>
> So how can I change the icon? Remove the market and add another?
>
> On Oct 5, 2016 8:14 PM,
>
>> That's an internal API that's specifically hidden. I don't recall the 
>> exact implementation but if something is package protected it isn't meant 
>> for external usage and there is probably a reason
>>
>

-- 
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/c806a70c-0e8c-4589-849e-e508d4462598%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] mapobject nullpointer exception

2016-10-05 Thread howudodat1
Simulator:no error
Android: crash with null point exception
iOS: crash with null pointer exception

re-using a mapobject causes a null pointer exception.   in the code below 
onRefresh() and onList() are dummy functions that simply change the icon of 
a map marker based upon user selection.  calling  mo.point.setIcon(image1); 
 results in the error because point is null;

Full code with most everything removed just enough to show the error

package com.howudodat.test.ui;

import com.codename1.googlemaps.MapContainer;
import com.codename1.googlemaps.MapContainer.MapObject;
import com.codename1.location.Location;
import com.codename1.location.LocationListener;
import com.codename1.location.LocationManager;
import com.codename1.maps.Coord;
import com.codename1.maps.MapListener;
import com.codename1.ui.Command;
import com.codename1.ui.Component;
import com.codename1.ui.Display;
import com.codename1.ui.EncodedImage;
import com.codename1.ui.FontImage;
import com.codename1.ui.Image;
import com.codename1.ui.Toolbar;
import com.codename1.ui.events.ActionEvent;
import com.codename1.ui.events.ActionListener;
import com.codename1.ui.layouts.BorderLayout;
import com.codename1.ui.plaf.UIManager;
import com.codename1.ui.util.Resources;

public class FrmMap extends com.codename1.ui.Form {
protected MapContainer cnt = new MapContainer();
protected MapObject mo = null;
protected Image image0 = FontImage.createMaterial(FontImage.MATERIAL_HOME, 
UIManager.getInstance().getComponentStyle("Command"), 5);
protected Image image1 = 
FontImage.createMaterial(FontImage.MATERIAL_REFRESH, 
UIManager.getInstance().getComponentStyle("Command"), 5);
protected Image image2 = FontImage.createMaterial(FontImage.MATERIAL_LIST, 
UIManager.getInstance().getComponentStyle("Command"), 5);
public FrmMap() {
this(Resources.getGlobalResources());
}

public FrmMap(Resources resourceObjectInstance) {
initManualComponents();
Display.getInstance().callSerially(() -> { 
   centerMapToLocation();
});
}
protected void initManualComponents() {
setLayout(new BorderLayout());
setTitle("Map");
setName("FrmMap");
// sidebar
if (getToolbar() == null) {
setToolbar(new Toolbar());
}
FrmSideMenu.CreateToolbar(getToolbar());

this.setScrollable(false);
this.addComponent(BorderLayout.CENTER, cnt);
cnt.addMapListener(new MapListener() {
@Override
public void mapPositionUpdated(Component source, int zoom, Coord center) {
}
});

Command cmdRefresh = new 
Command("",FontImage.createMaterial(FontImage.MATERIAL_REFRESH, 
UIManager.getInstance().getComponentStyle("Command"), 5)) {
public void actionPerformed(com.codename1.ui.events.ActionEvent ev) {
onRefresh();
}
};
Command cmdList = new 
Command("",FontImage.createMaterial(FontImage.MATERIAL_LIST, 
UIManager.getInstance().getComponentStyle("Command"), 5)) {
public void actionPerformed(com.codename1.ui.events.ActionEvent ev) {
onList();
}
};
this.getToolbar().addCommandToRightBar(cmdRefresh);
this.getToolbar().addCommandToRightBar(cmdList);
}
protected void centerMapToLocation() {
LocationManager l = LocationManager.getLocationManager(); 
l.setLocationListener(new LocationListener() {
public void locationUpdated(Location loc) { 
Coord c = new Coord(loc.getLatitude(), loc.getLongitude());
cnt.zoom(c , 13);
l.setLocationListener(null);
onMapUpdate(13, c);
}

public void providerStateChanged(int newState) {
}
}); 
}

protected void onMapUpdate(int zoom, Coord center) {
mo = cnt.addMarker(EncodedImage.createFromImage(image0, false),
center,
"test",
"test",
new ActionListener() {
public void actionPerformed(ActionEvent evt) {
onClickMap();
}
}
);
}
protected void onRefresh() {
mo.point.setIcon(image1);
repaint();
}
protected void onList() {
mo.point.setIcon(image2);
repaint();
}
protected void onClickMap() {
System.out.println("whoohoo");
}
}


-- 
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/bf1e354f-8d6b-4445-b3c9-7c3d46a26357%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: ToastBar questions

2016-09-27 Thread howudodat1
ok, nice I mimicked the ToastBar showConnectionProgress in my class and it 
worked fine.  
I'll look into interactiondialog to see about spinning my own that blocks 
user input
finally I noticed that the progress bar never becomes visible using the 
native theme in the simulator with ios 7

On Monday, September 26, 2016 at 10:24:24 PM UTC-7, Shai Almog wrote:
>
> No. You can however use either a dialog with show on the south or probably 
> more appropriately an InteractionDialog.
>
> See this for progress indicators: 
> https://www.codenameone.com/blog/toast-downloads.html
>

-- 
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/21c4d9a7-96a7-40ce-988f-3aa6d49f4fb0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2016-09-25 Thread howudodat1
Did you take the time to read my message?  Apparently not as you 
*completely* *ignored* the question.  

On Saturday, September 24, 2016 at 9:22:46 PM UTC-7, Shai Almog wrote:
>
> The developer guide is a wiki, it helps being proactive and actually 
> fixing stuff:
>
> https://www.codenameone.com/blog/wiki-parparvm-performance-actionevent-type.html
> http://github.com/codenameone/CodenameOne/wiki
>

-- 
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/c68ff2d0-c404-45c3-b1a0-3d9c414f5a81%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: How to force width / height of a dialog

2016-09-25 Thread howudodat1
did you even look at my code?  It is the *content* that I set the preferred 
size on

On Saturday, September 24, 2016 at 9:21:26 PM UTC-7, Shai Almog wrote:
>
> The preferred size of the dialog doesn't matter as it always takes up the 
> entire screen.
> What matters is the preferred size of its content.
>

-- 
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/42d1ecf8-9e5b-43a9-9f28-4a7ca6f56daf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2016-09-24 Thread howudodat1
I have read the developer guide, more times than I'd like to admit, 
although I must admit I haven't made it past miscellaneous functions.  In 
fact I can tell you that you have so far 26 navigation errors in your 
document and numerous typos as well as outdated code and samples that no 
longer work.  Dont believe me that's ok, here's the list of navigation 
errors:

https://www.codenameone.com/manual/basics.html#_component/container_hierarchy
https://www.codenameone.com/manual/basics.html#_layout_managers
https://www.codenameone.com/manual/advanced-theming.html#_theme_constants
https://www.codenameone.com/manual/advanced-theming.html#_how_does_a_theme_work?
https://www.codenameone.com/manual/advanced-theming.html#_understanding_images_multi-images
https://www.codenameone.com/manual/advanced-theming.html#_use_millimeters_for_padding/margin_font_sizes
https://www.codenameone.com/manual/components.html#_label
https://www.codenameone.com/manual/components.html#_button
https://www.codenameone.com/manual/components.html#_checkbox/radiobutton
https://www.codenameone.com/manual/components.html#_spanlabel
https://www.codenameone.com/manual/components.html#_list,_multilist,_renderers_models
https://www.codenameone.com/manual/components.html#_table
https://www.codenameone.com/manual/components.html#_tree
https://www.codenameone.com/manual/components.html#_sharebutton
https://www.codenameone.com/manual/components.html#_mediamanager_mediaplayer
https://www.codenameone.com/manual/components.html#_picker
https://www.codenameone.com/manual/animations.html#_layout_animations
https://www.codenameone.com/manual/edt.html#_call_serially_(and_wait)
https://www.codenameone.com/manual/edt.html#_invoke_and_block
https://www.codenameone.com/manual/graphics.html#_images
https://www.codenameone.com/manual/misc-features.html#_localization_internationalization_(l10n_i18n)
https://www.codenameone.com/manual/misc-features.html#_location_-_gps
https://www.codenameone.com/manual/misc-features.html#_capture_-_photos,_video,_audio
https://www.codenameone.com/manual/misc-features.html#_google_login
https://www.codenameone.com/manual/misc-features.html#_lead_component
https://www.codenameone.com/manual/misc-features.html#_running_3rd_party_apps_using_display's_execute

Now getting back to getting some technical support.  I am mostly positive 
this is *NOT* and EDT problem.  For some reason you remove the center 
component from the title bar and never replace it.  This happens during the 
out animation of the toastbar.  stack:


Thread [EDT] (Suspended (breakpoint at line 202 in BorderLayout)) 
 BorderLayout.removeLayoutComponent(Component) line: 202 
 Toolbar(Container).removeComponentImplNoAnimationSafety(Component) line: 
929 
 Container$3.updateState() line: 913 
 Container$3(ComponentAnimation).updateAnimationState() line: 80 
 AnimationManager.updateAnimations() line: 69 
 FrmMain(Form).repaintAnimations() line: 1350 
 Display.edtLoopImpl() line: 1078 
 Display.invokeAndBlock(Runnable, boolean) line: 1204 
 Display.invokeAndBlock(Runnable) line: 1242 
 AnimationManager.addAnimationAndBlock(ComponentAnimation) line: 105 
 Container.animateHierarchy(int, boolean, int) line: 2476 
 Container.animateHierarchyAndWait(int) line: 2196 
 ToastBar.setVisible(boolean) line: 724 
 ToastBar.updateStatus() line: 468 
 ToastBar.removeStatus(ToastBar$Status) line: 680 
 ToastBar.access$700(ToastBar, ToastBar$Status) line: 76 
 ToastBar$Status.clear() line: 348 
 FrmMain.refresh() line: 73 
 FrmMain.onClick() line: 64 
 FrmMain$2.actionPerformed(ActionEvent) line: 52 
 EventDispatcher.fireActionEvent(ActionEvent) line: 349 
 Button.fireActionEvent(int, int) line: 403 
 Button.released(int, int) line: 442 
 Button.pointerReleased(int, int) line: 530 
 FrmMain(Form).pointerReleased(int, int) line: 2599 
 FrmMain(Form).pointerReleased(int, int) line: 2563 
 FrmMain(Component).pointerReleased(int[], int[]) line: 3154 
 Display.handleEvent(int) line: 2024 
 Display.edtLoopImpl() line: 1066 
 Display.mainEDTLoop() line: 995 
 RunnableWrapper.run() line: 120 
 CodenameOneThread.run() line: 176 

Then when setTitle is called, the center component is null and a new 
component is created:

public void setTitle(String title) {
checkIfInitialized();
Component center = ((BorderLayout) getLayout()).getCenter();
if (center instanceof Label) {
((Label) center).setText(title);
} else {
titleComponent = new Label(title);
titleComponent.setUIID("Title");
if (center != null) {
replace(center, titleComponent, null);
} else {
addComponent(BorderLayout.CENTER, titleComponent);
}
}
}

Using callSeriallyandWait on setTitle results in an error because we are 
already on the EDT.  Here is a full test sample.  It is not complicated. 
and has only the minimum required.  

package com.mycompany.myapp;

import 

[codenameone-discussions] Re: How to force width / height of a dialog

2016-09-24 Thread howudodat1
This is so frustrating...
Which component does the preferred size need to be set on?  Here is a VERY 
SIMPLE test case.  Look at it, use it, test it, then please explain what's 
wrong.  It respects the preferred height but not width.


package com.mycompany.myapp;


import com.codename1.ui.Button;
import com.codename1.ui.Component;
import com.codename1.ui.Container;
import com.codename1.ui.Dialog;
import com.codename1.ui.FontImage;
import com.codename1.ui.Label;
import com.codename1.ui.TextArea;
import com.codename1.ui.geom.Dimension;
import com.codename1.ui.plaf.UIManager;
import com.codename1.ui.table.TableLayout;


public class DlgClientFilter extends Dialog {
 protected TableLayout layout = new TableLayout(10,3);
 protected Button btnApply = new Button(FontImage.createMaterial(FontImage.
MATERIAL_DONE, UIManager.getInstance().getComponentStyle("Command"), 5));


 protected TextArea taNotes = new TextArea() {


 @Override
 protected Dimension calcPreferredSize() {
 return new Dimension(800, 500);
 }
 
 };


 public DlgClientFilter() {
initManualComponents();
}

protected void initManualComponents() {
this.setLayout(layout);


taNotes.setPreferredSize(new Dimension(800, 500));

Container content = getContentPane();
content.add(layout.createConstraint().widthPercentage(33), new Label
(""));
content.add(layout.createConstraint().widthPercentage(33), new Label
(""));
content.add(layout.createConstraint().widthPercentage(33), new Label
(""));


Container cnt2 = new Container();
cnt2.add(btnApply);
btnApply.addActionListener(evt -> onApply());
content.add(layout.createConstraint().horizontalSpan(3).horizontalAlign(
Component.RIGHT), cnt2);
content.add(layout.createConstraint().horizontalSpan(3), taNotes);


}

protected void onApply() {
  dispose();
}

}


On Friday, September 23, 2016 at 10:57:36 PM UTC-7, Shai Almog wrote:
>
> It is. You are setting the preferred size to the wrong component.
>

-- 
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/57cc4125-50a4-4ae6-8a16-d95a170ed437%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: How to force width / height of a dialog

2016-09-23 Thread howudodat1
yes, I know I can do that and it is a *workaround, and not a very good on 
at that*.

   - Why isn't the layout manager respecting the preferred sizes?
   - When I walk through your code, I see that the width / height of the 
   components are being calculated (or at least it seems), but preferred size 
   is never changing for the container.  then in showPackedImpl(), you use 
   preferred size instead of what appears to be a calculated size (width / 
   height)
   - In the documentation for setPreferredsize() you state: override 
   calcPreferredSize(), yet this value is not being respected, neither for the 
   textarea that I want larger, nor for the container.  
   - Additionally using showAt with 4 ints stretches the textarea 
   horizontally but not vertically.
   

Finally, while this BUG is easy to test when you want a single field 
larger, it is similarly present whenever you layout a dialog with 
tablelayout and textfields.  The programmer has to manually hard code the 
dialog size.   

On Thursday, September 22, 2016 at 11:03:12 PM UTC-7, Shai Almog wrote:
>
> Use the show() method of a dialog that accepts 4 ints to determine the 
> exact distance from the edge of the screen.
>

-- 
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/b132c318-e71e-4f58-94af-b92efbad3397%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2016-09-23 Thread howudodat1
*obviously I have more going on?*

I would say obviously your framework has a bug.  I would say my use 
scenario is not that unusual...*obviously*
Displaying a dialog, and then when that dialog is disposed displaying a 
progress indication (toastbar) and then updating an element on the form is 
*NOT* unusual.
Fix it or dont fix it, I dont care.  Having bugs that programmers have to 
work around only hurts your product's reputation.

Peter

On Thursday, September 22, 2016 at 11:00:47 PM UTC-7, Shai Almog wrote:
>
> Not practical. You have a chain of calls that you implicitly rely on, we 
> try to hide some of that complexity but obviously you have more going on.
>

-- 
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/fd472ac3-92da-4bb5-8d2c-313044f7495a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] How to force width / height of a dialog

2016-09-22 Thread howudodat1
I override calcPreferredSize to force a dialog to be larger (for a large 
textarea).  However it still shows up as a small dialog packed to the 
minimum 

package com.howudodat.sdcpmobile.ui;


import com.codename1.ui.Button;
import com.codename1.ui.Dialog;
import com.codename1.ui.FontImage;
import com.codename1.ui.TextArea;
import com.codename1.ui.geom.Dimension;
import com.codename1.ui.layouts.BorderLayout;
import com.codename1.ui.plaf.UIManager;
import com.codename1.ui.spinner.Picker;
import com.codename1.ui.table.TableLayout;



public class DlgClientHistory extends Dialog {
 public boolean Cancelled = false;
 protected Button btnApply = new Button(FontImage.createMaterial(FontImage.
MATERIAL_DONE, UIManager.getInstance().getComponentStyle("Command"), 5));
 protected Button btnClose = new Button(FontImage.createMaterial(FontImage.
MATERIAL_CLEAR, UIManager.getInstance().getComponentStyle("Command"), 5));
 
 protected Picker cmbDate = new Picker();
 protected TextArea taNotes = new TextArea();
 protected TableLayout layout = new TableLayout(4,3);
 
 protected FrmClient parent = null;


 public DlgClientHistory(FrmClient frm) {
 parent = frm;
initManualComponents();
}

protected void initManualComponents() {
// taNotes.setPreferredSize(new Dimension(800, 150));

 this.setLayout(layout);
this.setUIID("Form");
this.setDialogUIID("Form");
this.getStyle().setBgTransparency(255);
this.getDialogStyle().setBgTransparency(255);


 Container cnt2 = new Container();
 cnt2.add(btnApply);
 cnt2.add(btnClose);
btnApply.addActionListener(evt -> onApply());
 btnClose.addActionListener(evt -> onClose());
 add(layout.createConstraint().horizontalSpan(3).horizontalAlign(
Component.RIGHT), cnt2);
 add(layout.createConstraint().horizontalSpan(1).horizontalAlign(
Component.RIGHT), new Label("Date:"));
 add(layout.createConstraint().horizontalSpan(1), cmbDate);
 add(layout.createConstraint().horizontalSpan(1), new Label());
 add(layout.createConstraint().horizontalSpan(3), taNotes);
}


 @Override
 protected Dimension calcPreferredSize() {
 // TODO Auto-generated method stub
 return new Dimension(800, 500);
 }
 


}


-- 
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/3171d964-4322-4954-a891-db282a232c1f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] togglebutton one pixel too wide, missing right border

2016-09-22 Thread howudodat1
IDE: Eclipse
Simulator 
native theme

Toggle button appears to be one pixel too wide.  In the screenshots you can 
see that the right border is not being drawn.  The screenshot includes the 
main app as well as a small test app.

 protected void initManualComponents() {
setLayout(new BorderLayout());

Container cntRoom = new Container(new GridLayout(12,2));
Label lblPreferred = new Label("Room:"); 
lblPreferred.setAlignment(Label.RIGHT);
cntRoom.add(lblPreferred);
cntRoom.add(CheckBox.createToggle("Test1"));
cntRoom.add(new Label());
cntRoom.add(CheckBox.createToggle("Test2"));
cntRoom.add(new Label());
cntRoom.add(CheckBox.createToggle("Test3"));
cntRoom.add(new Label());
add(BorderLayout.CENTER, cntRoom);
 }




-- 
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/41675c5d-b43e-4175-9547-15d7cf4759d6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2016-09-22 Thread howudodat1
The title is displayed correctly when I dont show the dialog, *obviously* 
this is not a solution
The title is also correct when I show the dialog modeless.  This is a 
*possible* solution but requires now that I implement some form of a 
callback to inform the calling form that the dialog is disposed of.
The *ideal* solution would be to fix the bug that is causing the title to 
be displayed twice when the dialog is shown modal.


On Wednesday, September 21, 2016 at 8:48:03 PM UTC-7, Shai Almog wrote:
>
> Try it without the dialog.
> Try showing the dialog as modless.
>

-- 
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/c89e4fbe-6ba0-490f-9ba7-37ee0ebf305f%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.


[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] native maps defaulting to openstreet on android, crashing on ios

2016-09-15 Thread howudodat1
I am using the googlemaps.MapContainer and testing on android and ios. 
 when I run in android it loads OSM instead of googlemaps, which means it's 
falling back.  On ios it just crashes.  What am I missing?

here are my build hints:
codename1.ios.appid=7WG765AP54.com.howudodat.testapp
codename1.ios.release.provision=
codename1.arg.java.version=8
codename1.arg.ios.objC=true
codename1.j2me.nativeTheme=nativej2me.res
codename1.displayName=TESTAPP
codename1.arg.ios.pods.platform=7.0
codename1.android.keystoreAlias=
codename1.ios.release.certificate=
codename1.android.keystorePassword=
codename1.ios.provision=
codename1.arg.ios.glAppDelegateHeader=\n\#import "GoogleMaps/GoogleMaps.h"
codename1.arg.android.includeGPlayServices=true
codename1.languageLevel=5
codename1.android.keystore=
codename1.arg.ios.pods=,GoogleMaps
ios.afterFinishLaunching=[GMSServices provideAPIKey\:@"MY_API_KEY_IS_HERE"];
codename1.vendor=CodenameOne
codename1.mainName=TESTAPP

codename1.arg.ios.pods.sources=,https\://github.com/CocoaPods/Specs.git
codename1.ios.release.certificatePassword=
codename1.ios.debug.certificate=
libVersion=127
codename1.arg.android.xpermissions= 
android.xapplication=
codename1.ios.debug.provision=

codename1.rim.certificatePassword=
codename1.version=1.0
codename1.ios.certificate=
codename1.icon=icon.png
codename1.rim.signtoolCsk=
ios.add_libs=libc++.dylib;libicucore.dylib;libz.dylib;CoreData.framework;
CoreText.framework;GLKit.framework;ImageIO.framework;SystemConfiguration.
framework
codename1.rim.signtoolDb=



here is most of my UI code:
import com.codename1.googlemaps.MapContainer;
import com.codename1.maps.Coord;

import com.codename1.ui.*;


public class FrmHomes extends com.codename1.ui.Form {
 
public FrmHomes() {
this(com.codename1.ui.util.Resources.getGlobalResources());
}


public FrmHomes(com.codename1.ui.util.Resources resourceObjectInstance) 
{
initGuiBuilderComponents(resourceObjectInstance);
initManualComponents();
}

//-- DON'T EDIT BELOW THIS LINE!!!




//  
 
private void initGuiBuilderComponents(com.codename1.ui.util.Resources 
resourceObjectInstance) {
setLayout(new com.codename1.ui.layouts.BorderLayout());
 }// 



 // -- DON'T EDIT ABOVE THIS LINE!!!
 protected void initManualComponents() {
 this.setScrollable(false);


 final MapContainer cnt = new MapContainer();
this.addComponent(BorderLayout.CENTER, cnt);
this.addCommand(new Command("Move Camera") {
public void actionPerformed(ActionEvent ev) {
cnt.setCameraPosition(new Coord(-33.867, 151.206));
}
});
this.addCommand(new Command("Add Marker") {
 public void actionPerformed(ActionEvent ev) {
 cnt.setCameraPosition(new Coord(41.889, -87.622));
 Image img = Resources.getGlobalResources().getImage("flag_red.png");
 cnt.addMarker(EncodedImage.createFromImage(img, false), new Coord(41.889, -
87.622), "Hi marker",
 "Optional long description", new ActionListener() {
 public void actionPerformed(ActionEvent evt) {
 Dialog.show("Marker Clicked!", "You clicked the marker", "OK", null);
 }
 });
 }
});
this.addCommand(new Command("Add Path") {
public void actionPerformed(ActionEvent ev) {
cnt.setCameraPosition(new Coord(-18.142, 178.431));
cnt.addPath(new Coord(-33.866, 151.195), // Sydney
new Coord(-18.142, 178.431),  // Fiji
new Coord(21.291, -157.821),  // Hawaii
new Coord(37.423, -122.091)  // Mountain View
);
}
});
this.addCommand(new Command("Clear All") {
public void actionPerformed(ActionEvent ev) {
cnt.clearMapLayers();
}
});
}


and here is the project showing the library is included:



-- 
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/a19da332-55b5-402d-8dde-921e497f7752%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: date span / addition

2016-08-31 Thread howudodat1
well look at that...I thought Calendar was a UI object.  I see 
java.util.Calendar now :)

On Monday, August 29, 2016 at 9:36:24 PM UTC-7, Shai Almog wrote:
>
> What's not working with this?
> Notice that DATE is really DAY_OF_MONTH.
>

-- 
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/41b7f117-2314-4866-afe2-acbfe3814e5b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] scrollComponentToVisible

2016-08-31 Thread howudodat1
I am building a picker replacement that uses a dialog to display a list of 
buttons.  (the iOS picker of only 3 lines is a joke)
The picker is a Dialog component with an associated button.  When the 
button is pressed, the dialog is shown.  I would like to scroll to the last 
selected item (even better would be to put it in the middle of the dialog).
when the button is clicked, my code does:
protected void onButton() {
cnt.removeAll();
for (T t : vData) {
Button b = new Button(t.toString());
b.setAlignment(LEFT);
   b.addActionListener(e -> { onClick(t); });
   cnt.add(b);
   if (t == selectedObject)
cmpLastVisible = b;
}

if (cmpLastVisible != null)
cnt.scrollComponentToVisible(cmpLastVisible);
this.show();
}

however I believe it is too early to scrollComponent since the dialog is 
not shown and is not layed out.

1:  How can I scroll to component?
2:  How can I scroll the component to the middle of the screen?

Here is the whole dialog:
package com.howudodat.pts.ui;

import java.util.ArrayList;

import com.codename1.ui.Button;
import com.codename1.ui.Component;
import com.codename1.ui.Container;
import com.codename1.ui.Dialog;
import com.codename1.ui.FontImage;
import com.codename1.ui.Label;
import com.codename1.ui.layouts.BorderLayout;
import com.codename1.ui.layouts.BoxLayout;
import com.codename1.ui.plaf.UIManager;

public class DlgPicker extends Dialog {
// was the dialog canceled?
public boolean Cancelled = false;

// the data and container for the list
protected ArrayListvData = null;
protected Container cnt = new Container();

// last selected objects
protected T selectedObject = null;
protected Component cmpLastVisible = null;

// this is the field that can be placed into the parent container
protected Button btnField = new Button();
// title bar for the dialog with a cancel button
protected Label lblTitle = new Label();
Button cmdClose = new 
Button("",FontImage.createMaterial(FontImage.MATERIAL_CLEAR, 
UIManager.getInstance().getComponentStyle("Command")));
/**
* constructor - Create a new DlgPicker with no parameters
*/
public DlgPicker() {
initManualComponents();
}

/**
* constructor - Create a new DlgPicker
* @param sTitle - title of the dialog
*/
public DlgPicker(String sTitle) {
lblTitle.setText(sTitle);
initManualComponents();
}

/**
* constructor - Create a new DlgPicker
* @param sTitle - title of the dialog
* @param vData - data for the list
*/
public DlgPicker(String sTitle, ArrayList vData) {
this.vData = vData;
lblTitle.setText(sTitle);
initManualComponents();
}

/**
* create the base gui Note:  the list is created when showing the dialog
*/
protected void initManualComponents() {
this.setLayout(new BorderLayout());
lblTitle.setAlignment(CENTER); 
cmdClose.addActionListener(e->onClose());
btnField.addActionListener(e->onButton());

Container title = new Container();
title.setLayout(new BorderLayout());
title.add(BorderLayout.CENTER, lblTitle);
title.add(BorderLayout.EAST, cmdClose);

cnt.setLayout(new BoxLayout(BoxLayout.Y_AXIS));
cnt.setScrollableY(true);

this.add(BorderLayout.NORTH, title);
this.add(BorderLayout.CENTER, cnt);
}

/**
 * retrieve the component to place in the parent (this is a button)
 * @return Component
 */
public Component getComponent() {
return btnField;
}

/**
 * set the title of the dialog
 */
public void setTitle(String sTitle) {
lblTitle.setText(sTitle);
}

/**
 * set the data for the list
 * @param vData
 */
public void setData(ArrayListvData) {
this.vData = vData;
}

/**
 * called when the button is clicked.  This is where we load the data 
and display the dialog
 */
protected void onButton() {
cnt.removeAll();
for (T t : vData) {
Button b = new Button(t.toString());
b.setAlignment(LEFT);
   b.addActionListener(e -> { onClick(t); });
   cnt.add(b);
   if (t == selectedObject)
cmpLastVisible = b;
}

if (cmpLastVisible != null)
cnt.scrollComponentToVisible(cmpLastVisible);
this.show();
}

/**
 * called when a list item is clicked.  we save the object and set the 
button text
 * @param t
 */
protected void onClick(T t) {
selectedObject = t;
btnField.setText(t.toString());
this.dispose();
}

/**
 * closed by clicking the cancel button
 */
protected void onClose() {
Cancelled = true;
dispose();
}

public void setSelectedObject(T t) {
selectedObject = t;
}

public T getSelectedObject() {
return selectedObject;
}
}



-- 
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] date span / addition

2016-08-29 Thread howudodat1
how can I add N days or N years to a date?
Normally I would do:

Calendar c = Calendar.getInstance();
c.setTime(new Date()); // Now use today date.
c.add(Calendar.DATE, 5); // Adding 5 days



Peter

-- 
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/42c227cb-0634-485d-a5fe-405daaed70b7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: programatically go back

2016-08-29 Thread howudodat1
As far as I understand it the "StateMachine" no longer exists, or at least 
not in the form to which you refer.  At the minimum it does not exist in my 
project.
I have noticed this weird behaviour:
if I store a handle to the parent form and then call parent.showBack()

   - Just call parent.showBack() with no notification it will nicely go 
   back to the previous form.  
   - If I call Dialog.show() first and then call parent.showBack() it 
   doesn't go back.  
   - If I use ToastBar it does go back, but the ToastBar disappears 
   immediately.
   

ConnectionRequest r = new ConnectionRequest() {
@Override
protected void readResponse(InputStream input) throws IOException {
//parse result for error
}
@Override
protected void postResponse() {
if (sResult.equals("error"))
MessageBox.OK(sErrorMsg, "Unable to Save");
else {
MessageBox.OK("Data Saved", "Info");  <<< Wont go back
MessageBox.TOAST("Data Saved");   <<< goes back but Toast disappears 
immediately
parent.showBack();
}
}
};

public class MessageBox {

public static void OK(String msg, String title) {
Dialog.show(title, msg, "OK", null);
}
public static boolean OKCANCEL(String msg, String title) {
return Dialog.show(title, msg, "OK", "Cancel");
}
public static void TOAST(String msg) {
TOAST(msg, 2500);
}
public static void TOAST(String msg, int delay) {
ToastBar.Status status = ToastBar.getInstance().createStatus();
status.setMessage(msg);
status.setExpires(delay);
status.show();
}
}




Peter

On Sunday, August 28, 2016 at 7:40:07 PM UTC-7, shyam tha wrote:
>
> Please check this and hope there will not be any problem now
>
> public void connection(final *StateMachine sm* ){
>
> ConnectionRequest r = new ConnectionRequest() {
>   protected void readResponse(InputStream input) throws IOException {
>  String sError = "This would be set by server";
>   }
>   protected void postResponse() {
>  if (!sError.equals("error")
>sm.back();
>   }
> };
> }
>
> On Monday, August 29, 2016 at 8:17:37 AM UTC+5:45, Peter Carlson wrote:
>>
>> ConnectionRequest does not have a constructor with StateMachine
>>
>> ConnectionRequest r = new ConnectionRequest(*StateMachine sm* )
>>
>> ^^^ StateMachine cannot be resolved to a variable.  
>>
>>
>> There are no available imports for StateMachine.
>>
>> On 08/28/2016 06:39 PM, shyam tha wrote:
>>
>> Hi 
>> Hope the following code will help you so please check it
>> ConnectionRequest r = new ConnectionRequest(*StateMachine sm* ) {
>>   protected void readResponse(InputStream input) throws IOException {
>>  String sError = "This would be set by server";
>>   }
>>   protected void postResponse() {
>>  if (!sError.equals("error")
>>  * sm.back();*
>>   }
>> };
>>
>> On Monday, August 29, 2016 at 5:33:23 AM UTC+5:45, howud...@gmail.com 
>> wrote: 
>>>
>>> Is there a way to programatically go back?  Before in the old state 
>>> machine there was back().  Now with the newest framework, I cant find 
>>> back().  I'm not using the new GUI builder, I am coding all by hand 
>>>
>>> ConnectionRequest r = new ConnectionRequest() {
>>>   protected void readResponse(InputStream input) throws IOException {
>>>  String sError = "This would be set by server";
>>>   }
>>>   protected void postResponse() {
>>>  if (!sError.equals("error")
>>>goBack();
>>>   }
>>> };
>>>
>>>
>>>
>>

-- 
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/4e97be19-db06-4b2b-92e0-ca27db4bc077%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] programatically go back

2016-08-28 Thread howudodat1
Is there a way to programatically go back?  Before in the old state machine 
there was back().  Now with the newest framework, I cant find back().  I'm 
not using the new GUI builder, I am coding all by hand

ConnectionRequest r = new ConnectionRequest() {
  protected void readResponse(InputStream input) throws IOException {
 String sError = "This would be set by server";
  }
  protected void postResponse() {
 if (!sError.equals("error")
   goBack();
  }
};


-- 
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/8b053d6b-eba6-4844-91d3-204b083674f8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: bizarre result with tablelayout

2016-07-25 Thread howudodat1
here is the smallest possible I could get to reproduce the problem.  There 
is only a one line difference between the two dialogs.  It is that one line 
that causes MyDlg2 to break.
test1 (MyDlg) the X is chopped off on the right
test2 (MyDlg2) the 4th column is completely gone.


public class FrmMain extends com.codename1.ui.Form {
public FrmMain() {
this(com.codename1.ui.util.Resources.getGlobalResources());
}

public FrmMain(com.codename1.ui.util.Resources resourceObjectInstance) {
initManualComponents();
}
protected void initManualComponents() {
this.setLayout(new BorderLayout());
Button btn = new Button("Test");
btn.addActionListener(evt -> onClick());
this.add(BorderLayout.NORTH, btn);

Button btn2 = new Button("Test2");
btn2.addActionListener(evt -> onClick2());
this.add(BorderLayout.SOUTH, btn2);
}

protected void onClick() {
new MyDlg().show();
}
protected void onClick2() {
new MyDlg2().show();
}
class MyDlg extends Dialog {
protected Button btnClose = new 
Button(FontImage.createMaterial(FontImage.MATERIAL_CLEAR, 
UIManager.getInstance().getComponentStyle("TitleCommand")));
public MyDlg() {
initManualComponents();
}

protected void initManualComponents() {
this.setLayout(new BorderLayout());
btnClose.addActionListener(evt -> dispose());

TableLayout layout = new TableLayout(10,4);
Container cnt1 = new Container(layout);
cnt1.add(layout.createConstraint().widthPercentage(15), new 
Label("A"));
cnt1.add(layout.createConstraint().widthPercentage(35), new 
Label("B"));
cnt1.add(layout.createConstraint().widthPercentage(35), new 
Label("C"));
cnt1.add(layout.createConstraint().widthPercentage(15), new 
Label("D"));

cnt1.add(layout.createConstraint().horizontalSpan(4).horizontalAlign(Component.RIGHT),
 
btnClose);

cnt1.add(layout.createConstraint().horizontalSpan(1), new 
Label(""));
cnt1.add(layout.createConstraint().horizontalSpan(1), new 
Label("Span 1"));
cnt1.add(layout.createConstraint().horizontalSpan(1), new 
Label("Textfield"));
cnt1.add(layout.createConstraint().horizontalSpan(1), new 
Label("X"));

this.add(BorderLayout.CENTER, cnt1);
}
}
class MyDlg2 extends Dialog {
protected Button btnClose = new 
Button(FontImage.createMaterial(FontImage.MATERIAL_CLEAR, 
UIManager.getInstance().getComponentStyle("TitleCommand")));
public MyDlg2() {
initManualComponents();
}

protected void initManualComponents() {
this.setLayout(new BorderLayout());
btnClose.addActionListener(evt -> dispose());

TableLayout layout = new TableLayout(10,4);
Container cnt1 = new Container(layout);
cnt1.add(layout.createConstraint().widthPercentage(15), new 
Label("A"));
cnt1.add(layout.createConstraint().widthPercentage(35), new 
Label("B"));
cnt1.add(layout.createConstraint().widthPercentage(35), new 
Label("C"));
cnt1.add(layout.createConstraint().widthPercentage(15), new 
Label("D"));

cnt1.add(layout.createConstraint().horizontalSpan(4).horizontalAlign(Component.RIGHT),
 
btnClose);

cnt1.add(layout.createConstraint().horizontalSpan(1), new 
Label(""));
cnt1.add(layout.createConstraint().horizontalSpan(1), new 
Label("Span 1"));
cnt1.add(layout.createConstraint().horizontalSpan(1), new 
TextField());
cnt1.add(layout.createConstraint().horizontalSpan(1), new 
Label("X"));
this.add(BorderLayout.CENTER, cnt1);
}
}
}



Peter

On Monday, July 25, 2016 at 9:02:44 PM UTC-7, Shai Almog wrote:
>
> This is a complex problem to debug and the code requires an understanding 
> of what you are trying to achieve. Try reproducing it with the smallest 
> possible table and just buttons then file an issue with something like that.
>
> We are entering the 3.5 codefreeze and have a lot of issues after that so 
> I'm not sure when I'll be able to dig into that more closely.
>

-- 
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/ea5f79be-c36e-4a00-aa6c-177353f440a7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: string picker width is 0

2016-07-25 Thread howudodat1
thanks, will look forward to the update, for now I do:
protected void setStrings (Picker picker, String[] strs) {
picker.setStrings(strs);
String sLongest = "";
for (String s : strs)
if (s.length() > sLongest.length())
sLongest = s;
picker.setRenderingPrototype(sLongest);
}




On Monday, July 25, 2016 at 8:58:55 PM UTC-7, Shai Almog wrote:
>
> Just use a longer value than you are ever likely to have. FYI I've set a 
> default prototype to the picker which makes sense so this should not behave 
> like that in the coming 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/cef99092-21ed-450d-9be1-dd51ea571586%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] special character and non native theme

2016-07-25 Thread howudodat1
When using special characters, they display just fine on native theme, but 
on non native they display with a box/x charater

 columnNames[1] = "Name \u25BC";



-- 
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/16d3f9b4-86f6-4399-9331-7ed187b9a64c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: bizarre result with tablelayout

2016-07-25 Thread howudodat1
And the problems keep getting weirder.  Now the 4th column is disappearing. 
 Here is a complete test app you can copy / paste.  Click on test1 and you 
see all 4 columns, click on test2 and the 4th column disappears.  The 
difference is a textfield is in test2
public class FrmMain extends Form {
public FrmMain() {
initManualComponents();
}

protected void initManualComponents() {
this.setLayout(new BorderLayout());
Button btn = new Button("Test");
btn.addActionListener(evt -> onClick());
this.add(BorderLayout.NORTH, btn);

Button btn2 = new Button("Test2");
btn2.addActionListener(evt -> onClick2());
this.add(BorderLayout.SOUTH, btn2);

}

protected void onClick() {
new MyDlg().show();
}
protected void onClick2() {
new MyDlg2().show();
}
class MyDlg extends Dialog {
protected Button btnClose = new 
Button(FontImage.createMaterial(FontImage.MATERIAL_CLEAR, 
UIManager.getInstance().getComponentStyle("TitleCommand")));
public MyDlg() {
initManualComponents();
}

protected void initManualComponents() {
this.setLayout(new BorderLayout());
this.getDialogStyle().setBgColor(0xFF);
this.getStyle().setBgColor(0xFF);
this.getContentPane().getStyle().setBgColor(0xFF);
btnClose.addActionListener(evt -> dispose());

TableLayout layout = new TableLayout(10,4);
Container cnt1 = new Container(layout);

cnt1.add(layout.createConstraint().horizontalSpan(4).horizontalAlign(Component.RIGHT),
 
btnClose);
cnt1.add(layout.createConstraint().widthPercentage(15), new 
Label("A"));
cnt1.add(layout.createConstraint().widthPercentage(35), new 
Label("B"));
cnt1.add(layout.createConstraint().widthPercentage(35), new 
Label("C"));
cnt1.add(layout.createConstraint().widthPercentage(15), new 
Label("D"));

cnt1. add(layout.createConstraint().horizontalSpan(2), new 
Label("Span 2"));
cnt1.add(layout.createConstraint().horizontalSpan(1), new 
Label("A"));
cnt1.add(layout.createConstraint().horizontalSpan(1), new 
Label("X"));

cnt1.add(layout.createConstraint().horizontalSpan(3), new 
Label("Span 3"));
cnt1.add(layout.createConstraint().horizontalSpan(1), new 
Label("X"));

cnt1.add(layout.createConstraint().horizontalSpan(1), new 
Label(""));
cnt1.add(layout.createConstraint().horizontalSpan(1), new 
Label("Span 1"));
cnt1.add(layout.createConstraint().horizontalSpan(1), new 
Label("Span 1"));
cnt1.add(layout.createConstraint().horizontalSpan(1), new 
Label("X"));

this.add(BorderLayout.CENTER, cnt1);
}
}
class MyDlg2 extends Dialog {
protected Button btnClose = new 
Button(FontImage.createMaterial(FontImage.MATERIAL_CLEAR, 
UIManager.getInstance().getComponentStyle("TitleCommand")));
public MyDlg2() {
initManualComponents();
}

protected void initManualComponents() {
this.setLayout(new BorderLayout());
this.getDialogStyle().setBgColor(0xFF);
this.getStyle().setBgColor(0xFF);
this.getContentPane().getStyle().setBgColor(0xFF);
btnClose.addActionListener(evt -> dispose());

TableLayout layout = new TableLayout(10,4);
Container cnt1 = new Container(layout);

cnt1.add(layout.createConstraint().horizontalSpan(4).horizontalAlign(Component.RIGHT),
 
btnClose);
cnt1.add(layout.createConstraint().widthPercentage(15), new 
Label("A"));
cnt1.add(layout.createConstraint().widthPercentage(35), new 
Label("B"));
cnt1.add(layout.createConstraint().widthPercentage(35), new 
Label("C"));
cnt1.add(layout.createConstraint().widthPercentage(15), new 
Label("D"));

cnt1. add(layout.createConstraint().horizontalSpan(2), new 
Label("Span 2"));
cnt1.add(layout.createConstraint().horizontalSpan(1), new 
Label("A"));
cnt1.add(layout.createConstraint().horizontalSpan(1), new 
Label("X"));

cnt1.add(layout.createConstraint().horizontalSpan(3), new 
Label("Span 3"));
cnt1.add(layout.createConstraint().horizontalSpan(1), new 
Label("X"));

cnt1.add(layout.createConstraint().horizontalSpan(1), new 
Label(""));
cnt1.add(layout.createConstraint().horizontalSpan(1), new 
Label("Span 1"));
cnt1.add(layout.createConstraint().horizontalSpan(1), new 
Label("Span 1"));
cnt1.add(layout.createConstraint().horizontalSpan(1), new 
Label("X"));

cnt1.add(layout.createConstraint().horizontalSpan(1), new 
Label(""));
cnt1.add(layout.createConstraint().horizontalSpan(1), new 
Label("Span 1"));
cnt1.add(layout.createConstraint().horizontalSpan(1), new 
TextField());
cnt1.add(layout.createConstraint().horizontalSpan(1), new 

[codenameone-discussions] Re: bizarre result with tablelayout

2016-07-25 Thread howudodat1
You can see the problem in your sample, why is there  a textfield laying on 
top of your vertically spanned container?

On Sunday, July 24, 2016 at 9:00:06 PM UTC-7, Shai Almog wrote:
>
> This is what I got when I ran something similar:
>
>
> 
> The sample is overly complex so it's kind of hard to see what goes wrong 
> or if something goes wrong and it seems to be working fine. I suggest 
> reducing this to as small a test case as possible and using something I can 
> just paste into a standard barebones hello world.
>
> TableLayout layout = new TableLayout(5,3);
> Form f = new Form("Table", layout);  
>
> f.add(layout.createConstraint().widthPercentage(20), new Label());
> f.add(layout.createConstraint().widthPercentage(40), new Label());
> f.add(layout.createConstraint().widthPercentage(40), new Label());
> f.add(layout.createConstraint().horizontalSpan(1), new Label(
> "Last:"));
> f.add(layout.createConstraint().horizontalSpan(1), new TextField
> ());
> f.add(layout.createConstraint().horizontalSpan(1), new TextField
> ());
>
> f.add(layout.createConstraint().horizontalSpan(1), new Label(
> "First:"));
> f.add(layout.createConstraint().horizontalSpan(1), new TextField
> ());
> f.add(layout.createConstraint().horizontalSpan(1).verticalSpan(4),
> new SpanLabel("Long text\nThat should\nBreak lines\nIn spanning..."));
>
> f.add(layout.createConstraint().horizontalSpan(1), new Label(
> "Age:"));
> f.add(layout.createConstraint().horizontalSpan(1), new TextField
> ());
>
> f.add(layout.createConstraint().horizontalSpan(1), new Label(
> "Height:"));
> f.add(layout.createConstraint().horizontalSpan(1), new TextField
> ());
>
> f.add(layout.createConstraint().horizontalSpan(1), new Label(
> "Weight:"));
> f.add(layout.createConstraint().horizontalSpan(1), new TextField
> ());
> f.add(layout.createConstraint().horizontalSpan(1), new TextField
> ()); 
>
> f.add(layout.createConstraint().horizontalSpan(3), new Label("Some 
> Really Long Text that represents a button panel that should span"));
>
> f.show();
>
>
>
>

-- 
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/487c73f3-710d-4d3a-ae34-423824dd050a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: dialog transparency in the emulator

2016-07-25 Thread howudodat1
I still dont think it is working.  As a test I changed to using 
setBgColor()  I tried all three:
 this.getDialogStyle().setBgColor(0xFF);
this.getStyle().setBgColor(0xFF);
this.getContentPane().getStyle().setBgColor(0xFF);

And the result I get is:




On Sunday, July 24, 2016 at 9:01:04 PM UTC-7, Shai Almog wrote:
>
> Try using an iOS 7 or newer simulator. This is an iOS 6 simulator.
>

-- 
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/cefedf4e-21af-4233-8129-adad6e3525f5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: bizarre result with tablelayout

2016-07-24 Thread howudodat1
comment out the adding of the last text field.  The the container should 
span 4 rows, and the text field should NOT be overlayed on top of the 
container that spans 4 rows.  The sample really isn't that complex.

On Sunday, July 24, 2016 at 9:00:06 PM UTC-7, Shai Almog wrote:
>
> This is what I got when I ran something similar:
>
>
> 
> The sample is overly complex so it's kind of hard to see what goes wrong 
> or if something goes wrong and it seems to be working fine. I suggest 
> reducing this to as small a test case as possible and using something I can 
> just paste into a standard barebones hello world.
>
> TableLayout layout = new TableLayout(5,3);
> Form f = new Form("Table", layout);  
>
> f.add(layout.createConstraint().widthPercentage(20), new Label());
> f.add(layout.createConstraint().widthPercentage(40), new Label());
> f.add(layout.createConstraint().widthPercentage(40), new Label());
> f.add(layout.createConstraint().horizontalSpan(1), new Label(
> "Last:"));
> f.add(layout.createConstraint().horizontalSpan(1), new TextField
> ());
> f.add(layout.createConstraint().horizontalSpan(1), new TextField
> ());
>
> f.add(layout.createConstraint().horizontalSpan(1), new Label(
> "First:"));
> f.add(layout.createConstraint().horizontalSpan(1), new TextField
> ());
> f.add(layout.createConstraint().horizontalSpan(1).verticalSpan(4),
> new SpanLabel("Long text\nThat should\nBreak lines\nIn spanning..."));
>
> f.add(layout.createConstraint().horizontalSpan(1), new Label(
> "Age:"));
> f.add(layout.createConstraint().horizontalSpan(1), new TextField
> ());
>
> f.add(layout.createConstraint().horizontalSpan(1), new Label(
> "Height:"));
> f.add(layout.createConstraint().horizontalSpan(1), new TextField
> ());
>
> f.add(layout.createConstraint().horizontalSpan(1), new Label(
> "Weight:"));
> f.add(layout.createConstraint().horizontalSpan(1), new TextField
> ());
> f.add(layout.createConstraint().horizontalSpan(1), new TextField
> ()); 
>
> f.add(layout.createConstraint().horizontalSpan(3), new Label("Some 
> Really Long Text that represents a button panel that should span"));
>
> f.show();
>
>
>
>

-- 
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/6349c652-b306-4f37-bdb9-b0005abc8b87%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] string picker width is 0

2016-07-24 Thread howudodat1
the string picker is showing with no width, so the items can't be chosen?
 Picker picker = new Picker();
picker.setStrings("", "String 1", "String 2");
TableLayout layout = new TableLayout(5,3);

Container cnt1 = new Container(layout);
cnt1.add(layout.createConstraint().widthPercentage(20), new 
Label());
cnt1.add(layout.createConstraint().widthPercentage(40), new 
Label());
cnt1.add(layout.createConstraint().widthPercentage(40), new 
Label());
cnt1.add(layout.createConstraint().horizontalSpan(1), new 
Label("Last:"));
cnt1.add(layout.createConstraint().horizontalSpan(1), new TextField());
cnt1.add(layout.createConstraint().horizontalSpan(1),picker);



result:



-- 
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/f0fdb1c9-dc68-46d3-a708-d8820931ad61%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] position dialog at upper right

2016-07-24 Thread howudodat1
I have a dialog (filter options) that shows when a command button on the 
right of the title bar get pressed.  Currently it pops to the center of the 
screen, how can I get it to pop to the upper right?
Command cmdFilter = new Command("", 
FontImage.createMaterial(FontImage.MATERIAL_FILTER_LIST, 
UIManager.getInstance().getComponentStyle("Command"))) {
public void actionPerformed(com.codename1.ui.events.ActionEvent ev) {
onFilter();
}
};
this.getToolbar().addCommandToRightBar(cmdFilter);

protected void onFilter() {
dlgFilter.show();
MessageBox.OK("canceled:" + dlgFilter.Cancelled, "Result");
}


I tried showPacked, but that only supports NORTH or EAST not NORTHEAST

-- 
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/7f712b1f-a5c4-4415-bc4d-e365cb883ca5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] dialog transparency in the emulator

2016-07-24 Thread howudodat1
the emulator shows the dialog as semi transparent which looks bizzare.  I 
even tried setting bgTransparency with:
 this.getDialogStyle().setBgTransparency(255);
this.getContentPane().getStyle().setBgTransparency(255);





Here is a screenshot:



-- 
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/f2a6a8e1-a45e-40b7-9c98-a749ec74471d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: bizarre result with tablelayout

2016-07-24 Thread howudodat1
oops forgot to add the screenshot



-- 
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/a23dc29b-a94e-410d-84c2-e92ef71eb2b5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: tablelayout not spanning

2016-07-20 Thread howudodat1
Of course I dont quite understand the idea...that's why I am asking for 
help, maybe what you dont quite understand is that I am asking for help??? 
 All I am looking for is a very simple table layout (I preferr to walk 
before I run)
[ cell 1][ cell 2][ cell 3][ cell4 ]
[Version][String that spans 3 cells]
[ button 1  ][ button 2]

So now I tried this way:
 layout.setGrowHorizontally(true);
Constraint c1 = layout.createConstraint().horizontalSpan(1); 
c1.setWidthPercentage(25);
cnt1.add(c1, new Label("Version:"));
  Constraint c2 = layout.createConstraint().horizontalSpan(3); 
c2.setWidthPercentage(75);
cnt1.add(c2, "Test");
Constraint c3 = layout.createConstraint().horizontalSpan(2); 
c1.setWidthPercentage(50);
cnt1.add(c3, btnSave);
Constraint c4 = layout.createConstraint().horizontalSpan(2); 
c1.setWidthPercentage(50);
cnt1.add(c4, btnSave2);

this.add(BorderLayout.CENTER, cnt1);


The problem is the same as always, it never shows anything beyond the first 
column.
And 2nd problem is that you dont allow function chaining on 
setWidthPercentage() :(



Peter

On Tuesday, July 19, 2016 at 10:26:24 PM UTC-7, Shai Almog wrote:
>
> I don't think you quite understand the idea of spanning here. If you want 
> to increase the width of the table spanning will make no difference. You 
> need to use the width constraint.
>

-- 
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/fce468c9-77a0-475d-9ef0-a52144ab14cf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: tablelayout not spanning

2016-07-19 Thread howudodat1
I think that the problem is somewhere else as using new constraints did not 
help any
TableLayout layout = new TableLayout(4,4);
private Label lblVersion = new Label();
private Label lblEmployee = new Label();
Picker cmbTheme = new Picker();
private Container cnt1 = new Container(layout);
Button btnSave = new Button("Save", 
FontImage.createMaterial(FontImage.MATERIAL_FOLDER, 
UIManager.getInstance().getComponentStyle("Command")));

protected void initManualComponents() {
cmbTheme.setType(Display.PICKER_TYPE_STRINGS);
cmbTheme.setStrings("Native", "Blue", "Chrome", "Dark", "Green");
lblVersion.setText(GLOBALS.version);
lblEmployee.setText(GLOBALS.employee.toString());
btnSave.addActionListener(e -> onSave());
layout.setGrowHorizontally(true);
cnt1.add(layout.createConstraint().horizontalSpan(1), new 
Label("Version:"));
cnt1.add(layout.createConstraint().horizontalSpan(3), lblVersion);
cnt1.add(layout.createConstraint().horizontalSpan(1), new 
Label("Employee:"));
cnt1.add(layout.createConstraint().horizontalSpan(3), lblEmployee);
cnt1.add(layout.createConstraint().horizontalSpan(1), new Label("Theme:"));
cnt1.add(layout.createConstraint().horizontalSpan(3), cmbTheme);
cnt1.add(layout.createConstraint().horizontalSpan(4), new Label("Note: 
Theme changes require a restart"));
cnt1.add(layout.createConstraint().horizontalSpan(2), btnSave);
this.add(BorderLayout.CENTER, cnt1);
}




On Monday, July 18, 2016 at 9:18:16 PM UTC-7, Shai Almog wrote:
>
> You can't reuse a constraint for two separate components. We should 
> probably detect and fail on such cases.
>

-- 
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/2d9ffc30-9aa8-4f84-8729-84a68b0b4b30%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] tablelayout not spanning

2016-07-18 Thread howudodat1
The following code doesn't render as I would have expected.  Not sure how 
many columns it's actually showing:


TableLayout layout = new TableLayout(4,4);
private Label lblVersion = new Label();
private Label lblEmployee = new Label();
Picker cmbTheme = new Picker();
private Container cnt1 = new Container(layout);
Button btnSave = new Button("Save", 
FontImage.createMaterial(FontImage.MATERIAL_FOLDER, 
UIManager.getInstance().getComponentStyle("Command")));
Button btnRestart = new Button("Restart", 
FontImage.createMaterial(FontImage.MATERIAL_SWAP_VERTICAL_CIRCLE, 
UIManager.getInstance().getComponentStyle("Command")));

protected void initManualComponents() {
TableLayout.Constraint cn1 = 
layout.createConstraint().horizontalSpan(1).widthPercentage(25);
TableLayout.Constraint cn2 = 
layout.createConstraint().horizontalSpan(2).widthPercentage(25);
TableLayout.Constraint cn3 = 
layout.createConstraint().horizontalSpan(3).widthPercentage(25);
TableLayout.Constraint cn4 = 
layout.createConstraint().horizontalSpan(4).widthPercentage(25);
cmbTheme.setType(Display.PICKER_TYPE_STRINGS);
cmbTheme.setStrings("Native", "Blue", "Chrome", "Dark", "Green");
lblVersion.setText(GLOBALS.version);
lblEmployee.setText(GLOBALS.employee.toString());
layout.setGrowHorizontally(true);
cnt1.add(cn1, new Label("Version:"));
cnt1.add(cn3, lblVersion);
cnt1.add(cn1, new Label("Employee:"));
cnt1.add(cn3, lblEmployee);
cnt1.add(cn1, new Label("Theme:"));
cnt1.add(cn3, cmbTheme);
cnt1.add(cn4, new Label("Note: Theme changes require a restart"));
cnt1.add(cn2, btnSave);
cnt1.add(cn2, btnRestart);
this.add(BorderLayout.CENTER, cnt1);
}


 

-- 
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/6f6d61ff-3d8a-4052-93c2-a2a64766a46d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] pull to refresh not working on tab component

2016-07-05 Thread howudodat1
tested in the simulator with the below code, pullToRefresh runnable is not 
getting called
Form hi = new Form("Hi World");
hi.setLayout(new BorderLayout());
 Tabs t = new Tabs();
t.addTab("Test1", new com.codename1.ui.Label("Test1"));
t.addTab("Test2", new com.codename1.ui.Label("Test2"));
t.setScrollableY(true);
t.addPullToRefresh(new Runnable() {
@Override
public void run() {
System.out.println("Tab Refresh");
}
});

hi.add(BorderLayout.CENTER, t);
hi.show();


I dont necessarily want the tab to be pull to refresh, but only the content 
of tab "Test1" which is actually a container.

-- 
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/2dd5c516-d183-4115-a59f-bfa480c75eab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: JSONParser returns longs as doubles

2016-06-29 Thread howudodat1
while we're at it, booleans shouldn't be added to the Map as Strings

On Wednesday, June 29, 2016 at 3:16:57 PM UTC-7, howud...@gmail.com wrote:
>
> the json parser needs line 549 fixed.  even when useLongsDefault is set to 
> true, the code parses as a double.  The reason is on line 549 of JSONParser:
>
> public void longToken(long tok) {
> if (isStackHash()) {
> getStackHash().put(currentKey, new Double(tok));  <<< not new 
> Double, should be new Long(tok)
> currentKey = null;
> } else {
> getStackVec().add(new Long(tok));
> }
> }
>
>
>
>

-- 
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/72c39dab-e22a-4888-9c00-66954359fc41%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] GUI Builder sidemenu bugs

2016-06-29 Thread howudodat1
new gui builder side menu bugs:

   - setToolBar is deprecated, use setToolbar (lowercase b)
   - com.codename1.ui.Command cmd_ ... line needs indented one tab
   - after closing brace on the same line after anonymous actionPerformed() 
   needs a ;
   - cnlToolbar.addCommandToSideMenu is adding cmd_null instead of the 
   created variable
   
private void initGuiBuilderComponents(com.codename1.ui.util.Resources 
resourceObjectInstance) {
setLayout(new com.codename1.ui.layouts.FlowLayout());
setTitle("FrmMain");
setName("FrmMain");
com.codename1.ui.Toolbar cn1Toolbar = getToolbar();
if(cn1Toolbar == null) {
cn1Toolbar = new com.codename1.ui.Toolbar();
setToolBar(cn1Toolbar);
}
com.codename1.ui.Command cmd_cmdDashboard = new 
com.codename1.ui.Command("Dashboard") {
public void 
actionPerformed(com.codename1.ui.events.ActionEvent ev) {
oncmdDashboard(ev, this);
}
}
cn1Toolbar.addCommandToSideMenu(cmd_null);
addComponent(gui_Label_1);
gui_Label_1.setText("Label");
gui_Label_1.setName("Label_1");
}// 



-- 
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/e8cb934e-5355-42e1-aae6-d3794ead9ce5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] InfiniteProgress not showing in simulator or on android

2016-06-29 Thread howudodat1
the below code (using slow network connection) makes the simulator and 
android tablet dim, but the spinner never shows

public void onbtnLoginCommand(com.codename1.ui.events.ActionEvent ev
, Command cmd) {
// show a wait dialog
InfiniteProgress prog = new InfiniteProgress();
Dialog dlg = prog.showInifiniteBlocking();
dlg.setTitle("Logging On");
login();

dlg.dispose();
}

protected void login() {
ConnectionRequest r = new ConnectionRequest() {
@Override
protected void readResponse(InputStream input) throws IOException {
json = new JSONParser().parseJSON(new InputStreamReader(input));
}
@Override
protected void postResponse() {
MessageBox.OK("yay", "it worked");
}
};
r.setUrl(GLOBALS.BASEURL + "/validateLogin");
r.setPost(true);
r.addArgument("user", gui_Text_Field_UserName.getText());
r.addArgument("password", gui_Text_Field_Password.getText());
NetworkManager.getInstance().addToQueueAndWait(r);
}
protected void loadCurrentActivity() {
ConnectionRequest r = new ConnectionRequest() {
@Override
protected void readResponse(InputStream input) throws IOException {
// parse it
}
@Override
protected void postResponse() {
//display it
}
};
r.setUrl(GLOBALS.BASEURL + "/getCurrentActivity");
r.setPost(true);
r.addArgument("hash", GLOBALS.employee.getPassword());
NetworkManager.getInstance().addToQueueAndWait(r);
}
protected void loadStats() {
ConnectionRequest r = new ConnectionRequest() {
@Override
protected void readResponse(InputStream input) throws IOException {
// parse it
}
@Override
protected void postResponse() {
//display it
}
};
r.setUrl(GLOBALS.BASEURL + "/getStats");
r.setPost(true);
r.addArgument("hash", GLOBALS.employee.getPassword());
NetworkManager.getInstance().addToQueueAndWait(r);
}

Also if I need to then do a sequence of network calls, what is the best way 
to handle that?  onbtnLoginCommand is in the EDT as is postResponse().  do 
I just chain them all together in subsequent readResponse()?  Where do I 
call loadCurrentActivity and loadStats()?

-- 
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/97a9f498-2413-4bd3-90b1-2c78d14dbc1a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] JSONParser returns longs as doubles

2016-06-29 Thread howudodat1
the json parser needs line 549 fixed.  even when useLongsDefault is set to 
true, the code parses as a double.  The reason is on line 549 of JSONParser:

public void longToken(long tok) {
if (isStackHash()) {
getStackHash().put(currentKey, new Double(tok));  <<< not new 
Double, should be new Long(tok)
currentKey = null;
} else {
getStackVec().add(new Long(tok));
}
}



-- 
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/8ff89e98-c7c2-4a6b-89ea-9a1b5a3b0643%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: how to run/debug in eclipse

2016-06-29 Thread howudodat1
new one.

On Wednesday, June 29, 2016 at 8:07:49 AM UTC-7, Kaya TC wrote:
>
> Are you using the old GUI BUILDER or the old one? as the new one may 
> differ. I didnt even know that they even released the new GUI Builder until 
> i saw a post on Stackoverflow two hours ago.
>
>
>>

-- 
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/7a0cfbee-bdf7-4d16-a2cb-ea46cf985a84%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: new GUI Builder error creating new form

2016-06-22 Thread howudodat1
ok, the latest plugin fixes this problem.

On Tuesday, June 21, 2016 at 9:27:31 PM UTC-7, Shai Almog wrote:
>
> I was talking about OS system path but it seems you use Mac OS which makes 
> a difference here.
> Please check if this was resolved in the latest plugin 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/64cbe6b6-eff1-429e-8658-8436a5f256be%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: new GUI Builder error creating new form

2016-06-21 Thread howudodat1
And I just checked, there is no update available


On Tuesday, June 21, 2016 at 9:27:31 PM UTC-7, Shai Almog wrote:
>
> I was talking about OS system path but it seems you use Mac OS which makes 
> a difference here.
> Please check if this was resolved in the latest plugin 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/e697edc7-e79e-420e-b758-4dd23772155f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: new GUI Builder error creating new form

2016-06-21 Thread howudodat1
actually I use ubuntu 16.04

On Tuesday, June 21, 2016 at 9:27:31 PM UTC-7, Shai Almog wrote:
>
> I was talking about OS system path but it seems you use Mac OS which makes 
> a difference here.
> Please check if this was resolved in the latest plugin 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/2474de24-b6ae-4b87-be78-34d7070ad7e8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] new GUI Builder error creating new form

2016-06-20 Thread howudodat1
This was posted on StackOverflow with no working answer so I thought I'd 
try here:
Create a  new project: Hello World (Bare Bones)
add new: Gui Builder, form, hit finish
error: Unresolved compilation problem: '<>' operator is not allowed for 
source level below 1.7

java version is oracle's 1.8.0_91
eclipse.ini includes: -Dosgi.requiredJavaVersion=1.8
build.xml has all source and target lines set to 1.8  (they were that way 
already)
CodenameOne build hints java.version is set to 8 (it was that way already)

CodenameOne 3.4
IDE: Eclipse Mars
Desktop OS: Ubunut 16.04
Simulator : none yet
Device: none yet

-- 
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/ea9d27e6-ffcb-4370-af58-7e5fb17ca04d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.