[codenameone-discussions] Re: get bytes from Image and back complete code example

2019-02-11 Thread Shai Almog
That's a bug in signature component, we'll fix it for 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/4b5132bf-b469-43b8-b053-0cf9d4a8c1ea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: recommended Tablets

2019-02-11 Thread Shai Almog
I had quite a few Android tablets. Not one of them is functioning by now. I 
have 3 functioning iPads including two old one (original iPad 2 and 3) both 
still working despite abuse from myself and kids... (to be fair they have a 
heavy duty case for the kids but I cracked the iPad 3 and I don't use 
cases). I'm sure some Android tablets improved by now but I haven't run 
into such tablets as it's been a race to the bottom in that field.

-- 
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/d3a3b3f4-43df-4dde-8db2-73c6e594e337%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: Push Notification without value

2019-02-11 Thread Shai Almog
Our builtin support assumes the Codename One push server. We didn't spend 
any time building support for something else.

-- 
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/e7c03cd2-d403-4029-ba07-cbb8dc840d91%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] get bytes from Image and back complete code example

2019-02-11 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
Simulator Latest
Device PS, Android, IOS

Can you please provide complete code listing where we get bytes from Image 
(which I store in DB)
The convert those bytes to Image

I have these methods:
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;
}


public Image getImageFromBytes(byte[] img) {
Image image = null;
try {
int width = 978;
int height = 550;
image = Image.createImage(img, 0, img.length);
if (image.getHeight() > height || image.getWidth() > width) {
image = image.scaled(height, width);
}
} catch (Exception e) {
e.printStackTrace();
MyLog.e(e);
}
return image;
}


java.lang.IllegalArgumentException: Width (-35) and height (-20) cannot be 
<= 0
 at 
java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:1016)
 at java.awt.image.BufferedImage.(BufferedImage.java:333)
 at 
com.codename1.impl.javase.JavaSEPort.createTrackableBufferedImage(JavaSEPort.java:5081)
 at 
com.codename1.impl.javase.JavaSEPort.createTrackableBufferedImage(JavaSEPort.java:5064)
 at com.codename1.impl.javase.JavaSEPort.createImage(JavaSEPort.java:5089)
 at com.codename1.impl.javase.JavaSEPort.scale(JavaSEPort.java:5277)
 at com.codename1.ui.Image.scale(Image.java:1021)
 at com.codename1.ui.Image.scaledImpl(Image.java:967)
 at com.codename1.ui.Image.scaled(Image.java:932)
 at com.codename1.ui.Image.scaledSmallerRatio(Image.java:898)
 at 
com.codename1.components.SignatureComponent.setSignatureImage(SignatureComponent.java:261)


Please Advise:

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/1b8f0ff7-e9fd-4e85-a40a-805676714d0b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] recommended Tablets

2019-02-11 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

Being intentionally non specific.
Curious, I have several challenges/issues with IOS where Android 7+ does 
not exhibit.


We prefer screen size in the 9 to 10 inch with approximate screen 
resolutions 1600 X 2560 / 2048 X 1536
4GB RAM
32GB SSD Min
Cellular enabled
4+ cores

Can you please let us know your thoughts on reasonably priced Models of 
Tablets that you are particularly in favor of using.

Our Customers are Automotive shops (Dealerships etc.)

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/cf7d124f-ea84-49c3-ab10-5a22fcaa0ba8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [codenameone-discussions] Re: long press in Javascript in browser component

2019-02-11 Thread Steve Hannah
It is possible that there is a conflict with event dispatching on Android,
since all pointer events in webviews are handled by CN1 and routed to the
webview.  I took a quick look at the jquery longpress plugin and it doesn't
look like it uses anything special (other than just regular touch start/end
events and timers) for detecting a long press, so our event dispatching
should work properly.  Please file an issue in the issue tracker.  If you
can provide a smaller, self-contained test case that will help to ensure a
faster fix.  E.g. Create a simple page that only includes a single button
that is set up to detect a longpress event, and make it easy to demonstrate
whether the event is received or not.

On Fri, Feb 8, 2019 at 9:57 PM Shai Almog  wrote:

> Not sure. Maybe Steve has an 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/0a708247-3916-42d1-b52b-5d5f461fee82%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/CAGOYrKWL%3DRHyWo4Mn-cT183hXK35b9Kwf6qnTm65Q0Ygw7%3DUdw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: Push Notification without value

2019-02-11 Thread tobias.semmet via CodenameOne Discussions
Hi,

no i use simple firebase, no codenameon push server.

On Saturday, February 9, 2019 at 6:58:00 AM UTC+1, Shai Almog wrote:
>
> Hi,
> are you using our push servers?
>

-- 
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/0b0846b3-a061-495d-ba88-5d2922354eb4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.