[codenameone-discussions] Re: Problem with Date Picker Pervious & Next Month Days Selection

2019-06-28 Thread Shai Almog
Hi,
this worked for me. Did you click "Done"?

Form hi = new Form("Test");
Picker A3TimeSheetDate = new Picker();
A3TimeSheetDate.setUseLightweightPopup(true);
A3TimeSheetDate.setDate(new Date());
A3TimeSheetDate.setType(Display.PICKER_TYPE_CALENDAR);
hi.add(A3TimeSheetDate);


-- 
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/0f24ed03-8c4f-4bc7-b16e-526063fe2c9d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: is there an API to view tasks like Windows Task Manager

2019-06-28 Thread Shai Almog
Yes devices also have energy management tools as well to see energy usage. 
You can see these in the developer tools on Android devices. In iOS you can 
see this information via the xcode profiler tools.

-- 
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/09fb29b1-cefd-4bdd-8fe7-ab5a4ba83fb8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: Android API 28

2019-06-28 Thread Shai Almog
Hi,
I see the problem. It's a bit tricky. It seems Android killed support for 
enlarging the clipping area which is a bit insane... 

-- 
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/1335d4a4-409c-4c7b-a747-2725b7cd6526%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: The links that have pages with gif animations are not shown

2019-06-28 Thread Shai Almog
https://www.codenameone.com/blog/animated-gif-support.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/d0747052-fc71-4b32-b57a-4e1a03f3cc65%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Problem with Date Picker Pervious & Next Month Days Selection

2019-06-28 Thread shop . service . assistant
If you are experiencing an issue please mention the full platform your 
issue applies to:
IDE: NetBeans/Eclipse/IDEA NetBeans 8.2
Desktop OS Windows 10 Pro
Simulator Latest
Device PC, Android& IOS

I am using this Picker:
A3TimeSheetDate = new Picker();
A3TimeSheetDate.setUseLightweightPopup(true);

A3TimeSheetDate.setDate(inc.getDateObjectFromMMDD(a3Scheduler.ApptDate));
A3TimeSheetDate.setType(Display.PICKER_TYPE_CALENDAR);
SimpleDateFormat formatter = new SimpleDateFormat("E 
MM-dd-");
A3TimeSheetDate.setFormatter(formatter);
FontImage.setMaterialIcon(A3TimeSheetDate, 
FontImage.MATERIAL_DATE_RANGE, iconSize - 2);

However Days in previous and next months are visible however not selectable.

Attached is the Visible calendar.
Note 26th - 31 of May and 1st - 6th of July are not selectable.

Thoughts?

Thanks in advance
Regards

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
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/47f200c8-cf3a-4ee2-a579-a782628c8d3e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] is there an API to view tasks like Windows Task Manager

2019-06-28 Thread shop . service . assistant
If you are experiencing an issue please mention the full platform your 
issue applies to:
IDE: NetBeans/Eclipse/IDEA NetBeans 8.2
Desktop OS Windows 10 Pro
Simulator Latest
Device Android, IOS

Is there a similar process where we can see the cup usage, ram etc. for 
running apps?

Like Windows Task Manager.

Or anything else that would help me understand the load my app is placing 
on the device.

Thanks in advance

Regards

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
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/aa038a6c-cce7-4b51-8f9f-ca11ad48133f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: Class instantiation

2019-06-28 Thread shop . service . assistant
Thanks.

On Thursday, June 27, 2019 at 11:33:28 PM UTC-4, Shai Almog wrote:
>
> This is valid in Java and should work without a problem.
>

-- 
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/fcd13975-f570-4328-9282-0165c7dc91a9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: getBytesFromImage conversion always off by one byte (source is one byte greater)

2019-06-28 Thread shop . service . assistant


On Thursday, June 27, 2019 at 5:03:51 PM UTC-4, shop.servi...@gmail.com 
wrote:
>
> If you are experiencing an issue please mention the full platform your 
> issue applies to:
> IDE: NetBeans/Eclipse/IDEA NetBeans 8.2
> Desktop OS Windows 10 Pro
> Simulator Latest
> Device PC, Android & IOS
>
> I am creating an Image from bytes: 
> Image CustomerPicture = Image.createImage(vehiclepicture, 0, 
> vehiclepicture.length);
> A3VehiclePhotoImageViewer = new ImageViewer(CustomerPicture)
> Source bytes are 303981, getBytesFromImage returns 303980
>
>
> public byte[] getBytesFromImage(com.codename1.ui.Image image) {
> ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
> byte[] BytesFromImage = new byte[0];
> try {
> if (image != null) {
> ImageIO.getImageIO().save(image, outputStream, 
> ImageIO.FORMAT_PNG, 1f);
> BytesFromImage = outputStream.toByteArray();
> }
> } catch (Exception e) {
> e.printStackTrace();
> MyLog.e(e);
> }
> return BytesFromImage;
> }
>
> Thoughts?
>
> Regards
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
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/1a1e0adb-a1ae-4a80-b768-866f16c1e573%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: getBytesFromImage conversion always off by one byte (source is one byte greater)

2019-06-28 Thread shop . service . assistant
Thank you very much!

On Thursday, June 27, 2019 at 11:38:46 PM UTC-4, Shai Almog wrote:
>
> That method re-encodes a PNG which can have a different byte count than 
> the one in your original image. If you use EncodedImage you can use use 
> getData() to get the original image file.
>

-- 
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/ac55af98-18c9-4227-841c-a262a29df72a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: Android API 28

2019-06-28 Thread Kandy Bitxenio
Hi Shai

there are no errors on the console, the app start and close suddenly, if 
you want I can send you the apk or the source code. Send me a private 
contact (ka...@bitxenio.com)

Best Regards

On Friday, June 28, 2019 at 5:24:47 AM UTC+2, Shai Almog wrote:
>
> I dropped the ball on this. I have an issue assigned to me to handle the 
> migration before July and I got distracted.
> We'll do the migration to 28 before July 28th. 
>
> Can you connect your phone to a cable and post the error messages you get 
> under Pie?
>

-- 
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/e11d3327-8bd8-42ef-a307-a253f37af0ab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: The links that have pages with gif animations are not shown

2019-06-28 Thread Fuad Nassar
I have like this problem and I know that depends on the size of the gif 
image but what the solution for that.
 I need to load and show 1000kb GifImage without seeing black screen  Or 
anything fishy. 

On Tuesday, July 24, 2018 at 3:51:45 AM UTC+3, rdvg...@gmail.com wrote:
>
> Excuse me, I discovered the problem
>
> Thanks.
>
>
> On Monday, July 23, 2018 at 7:20:11 PM UTC-5, rdvg...@gmail.com wrote:
>>
>> Hi,
>>
>> Hello,
>>  
>> I have an app that shows an ad matrix (buttons). For each ad there is a 
>> different link. When a link with a gif animation is activated, only a black 
>> screen is displayed, otherwise the page will be displayed without any 
>> problem.
>>
>>
>> 
>>
>>
>> My code.
>>
>> private void muestraOfertas(Container cnOfertas, Vector vAnuncios) {
>>
>> cnOfertas.removeAll();
>> cnOfertas.setScrollableY(true);
>> Container cntB = new Container();
>> int size = Display.getInstance().convertToPixels(15);
>> int ancho = Display.getInstance().getDisplayWidth();
>> ancho = (int) (ancho - (ancho * 0.03d));
>> boolean ciclo = true;
>> int c = 2;
>> while (ciclo) {
>> c++;
>> size = (int) (ancho / c);
>> int r = ancho % c;
>> if (r <= 0 || c >= vAnuncios.size()) {
>> ciclo = false;
>> }
>> };
>> vAnuncios = priorizaCampanas(vAnuncios);
>> Button bt[];
>> bt = new Button[vAnuncios.size()];
>> for (int i = 0; i < vAnuncios.size(); i++) {
>> Campana1 cM1 = (Campana1) vAnuncios.elementAt(i);
>> bt[i] = new Button();
>> bt[i].setUIID("Label");
>> Image img;
>> if (cM1.getRutaLogo().equals("") || 
>> cM1.getRutaLogo().equals("null")) {
>> img = res.getImage("promo.png").scaled(size, size);
>> } else {
>> EncodedImage lugar = 
>> EncodedImage.createFromImage(Image.createImage(size, size, 0xffcc), 
>> true);
>> img = URLImage.createToStorage(lugar, 
>> Integer.toString(cM1.getCampana()), cM1.getRutaLogo());
>> }
>> bt[i].setIcon(img);
>> cntB.addComponent(bt[i]);
>>
>> *bt[i].addActionListener(new ActionListener() {*
>> *public void actionPerformed(ActionEvent ae) {*
>> *Display.getInstance().execute(cM1.getEnlace());*
>> *}*
>> *});*
>> }
>> Container cnCentro = new Container(new 
>> BoxLayout(BoxLayout.Y_AXIS)).add(cntB);
>> cnOfertas.add(BorderLayout.CENTER, cnCentro);
>> }
>>
>> How can i solve this problem?
>>
>> regards
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
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/ef35644a-690a-48d1-b4e0-401893f978c1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.