[codenameone-discussions] Dates handled different on different devices?

2016-11-28 Thread Gareth Murfin
I keep getting bug reports about dates being worked out wrong, they are 
mostly from galaxy android devices. Is there some known work around for 
working with dates across different android devices? trying to work out 
what it does but my phone is not booting, I think on them devices its 
swapping month and day around somehow. 

-- 
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/ffa94abd-e57f-449e-812f-657a7f14795f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: Anyone ever get camera on ios issues?

2016-11-28 Thread mcellinpaul
Hi,

For what it's worth, he's running on original iPad mini, which I believe 
won't upgrade to ios 10 so it's one of the ios 9 versions. Also my code is 
built against version 3.5.

One thing I'm thinking though if something say on another thread causes my 
app to crash when the camera is open, would that only become apparent when 
I return from the camera back to the app (which has gone?) This could 
explain why it appears to crash in the Camera app. Just a thought though I 
woud have thought it would take everything down but not sure how it works 
on ios.

One thing I have noticed recently is that I wa getting a crash when a class 
cast exception should have been thrown and handled. Just thought it might 
be worth mentioning.

regards,

Paul

On Saturday, November 26, 2016 at 5:55:37 AM UTC, Shai Almog wrote:
>
> Hi,
> we didn't get such reports recently so I'm not sure what can be causing 
> it. If you can get in contact with a user to whom this is happening and see 
> if this can be reproduced with a simple test case on his device and if so 
> what if different about the device that would be helpful.
>

-- 
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/60972326-82f9-42ea-a4ee-5808f32b4c36%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] My list is not displayed in tab component.

2016-11-28 Thread ruben_vg via CodenameOne Discussions
Hi,

In my application I use the tab component with 3 tabs. In tab # 1 I show a 
list (see figure 1) and when selecting a record I have the opportunity to 
create information for tab 2 (see figure 2 and 3). ¨ For each tab I have a 
container that I load with the methods "muestraLista1" (tab1) and 
"muestraCompra1" (tab2).

For some reason the list on tab 2 is not displayed (see figure 4). Then I 
run a test by creating a test form by moving the container that generates 
the "muestraCompra1" method. To my surprise the form shows the list.

I tried using the addSelectionListener on the tab to force the container to 
load when tab 2 is selected but I get nothing.

*Question: How do I make the second tab show the list?*

My Code:
// Método que muestra la  Forma Principal
private void muestraLiber() {

final Form fmLiber = new Form();
fmLiber.setTitle(Constantes.APLICACION);
fmLiber.setLayout(new BorderLayout());


final Toolbar tbMenu = new Toolbar();
fmLiber.setToolBar(tbMenu);
Style s = UIManager.getInstance().getComponentStyle("Title");
FontImage iSincronizar = 
FontImage.createMaterial(FontImage.MATERIAL_CACHED, s);

Command cmdInventario = new Command(idioma.getMensaje23()) {
public void actionPerformed(ActionEvent ev) {
muestraInventario(fmLiber);
}
};
Command cmdValidacion = new Command(idioma.getValidar()) {
public void actionPerformed(ActionEvent ev) {
  *  muestraPrueba(fmLiber);*
}
};
tbMenu.addCommandToOverflowMenu(cmdValidacion);
menuLateral(fmLiber);

cnLiber1 = muestraLista1(fmLiber);
*cnLiber2 = muestraCompra1(fmLiber);*
cnLiber3 = new Container();

final Tabs tsMenu = new Tabs();
tsMenu.addTab(idioma.getListas(), null, cnLiber1);
tsMenu.addTab(idioma.getCompras(), null, cnLiber2);
tsMenu.addTab(idioma.getNovedades(), null, cnLiber3);

tsMenu.addSelectionListener(new SelectionListener() {
@Override
public void selectionChanged(int oldSelected, int newSelected) {
if (newSelected == 2) {
cnLiber2 = muestraCompra1(fmLiber);
fmLiber.forceRevalidate();
}
}

});
fmLiber.addComponent(BorderLayout.CENTER, tsMenu);
fmLiber.addComponent(BorderLayout.SOUTH, banner);
fmLiber.setBackCommand(cmdSalir);

fmLiber.setTransitionOutAnimator(CommonTransitions.createSlide(CommonTransitions.SLIDE_VERTICAL,
 
true, 500));
fmLiber.revalidate();
fmLiber.show();
}


// Método que muestra que devuelve un contenedor con la información de 
las Compras1
private Container muestraCompra1(final Form fmLiber) {

Container cn = new Container(new BorderLayout());
final List compra1 = new List();
compra1.setUIID("Form");

Vector vCompra1 = dT.getCompra1();
ListModel lmCompra1 = new DefaultListModel(vCompra1);
final FilterProxyListModel proxyModel = new 
FilterProxyListModel(lmCompra1);
compra1.setModel(proxyModel);
compra1.setListCellRenderer(new 
FormatoLista1(Constantes.LISTA_COMPRA1));
compra1.setSmoothScrolling(true);

compra1.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent ae) {
if (ae.isLongEvent()) {
actualizaCompra1(fmLiber, compra1);
} else {
muestraCompra2((Compra1) 
compra1.getModel().getItemAt(compra1.getModel().getSelectedIndex()), 
fmLiber);
}
}
});;
cn.addComponent(BorderLayout.CENTER, compra1);
return cn;
}

   * private void muestraPrueba(final Form fmLiber) {*
final Form fmPrueba = new Form();
fmPrueba.setLayout(new BorderLayout());
fmPrueba.setScrollable(false);


Command cmdVolver = new Command(idioma.getVolver()) {
public void actionPerformed(ActionEvent ev) {
fmLiber.showBack();
}
};
Container cn2 = muestraCompra1(fmLiber);
fmPrueba.addComponent(BorderLayout.CENTER, cn2);
fmPrueba.setBackCommand(cmdVolver);
fmPrueba.setTransitionOutAnimator(CommonTransitions.createSlide(
CommonTransitions.SLIDE_HORIZONTAL, true, 500));
fmPrueba.show();
}


 

 


[codenameone-discussions] Re: Dates handled different on different devices?

2016-11-28 Thread Shai Almog
Yes month and day might be swapped and quite a few other things depending 
on the type of formatting you used to show the dates. 

-- 
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/e684aca4-7aff-4062-a4b8-cbde54fa87c9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: Anyone ever get camera on ios issues?

2016-11-28 Thread Shai Almog
Hi,
when you say 3.5 do you mean actual 3.5 or latest? 
Those are very different things!
If you don't understand what I mean by this check out this: 
https://www.codenameone.com/how-do-i---get-repeatable-builds-build-against-a-consistent-version-of-codename-one-use-the-versioning-feature.html

You need to build against the latest if you experience an issue to ensure 
that the issue wasn't already resolved.

We don't support class cast exception in the iOS VM as it's assumed that 
this is an exception that wouldn't survive into production. Adding class 
cast exception tests will enlarge and slow down the final binary.

-- 
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/4682fa5c-bc8c-4693-99f5-7cd9601cbf87%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: My list is not displayed in tab component.

2016-11-28 Thread Shai Almog
Hi,
what's the content of that tab?

The forceRevalidate() approach is probably wrong.
You are calling revalidate() before show() which is also problematic. 
Neither of those should be the cause.

I'm guessing something within the tab 2 content is problematic e.g. if you 
replace it with a label then the problem won't happen right?

-- 
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/c8c95cfd-bf38-47f0-9488-dc8ba51ca6c0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] iOS alert message

2016-11-28 Thread CODENAME1
This message is shown only while installing iOS build on OS 10.1.1. Any 
idea?

-- 
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/624c9e3e-d162-4328-a921-2918ac970b16%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.