[codenameone-discussions] About the Chinese characters in the URL request

2019-04-03 Thread greensoter
If you are experiencing an issue please mention the full platform your issue applies to: IDE: NetBeans/Eclipse/IDEA Desktop OS Simulator Device String nickName="网名"; String url =“http://localhost:8080/updateUser/+userID+"/"+nickName+"/"+email+”/“; 1) Solution one: Response jsonData =

[codenameone-discussions] Re: About the Chinese characters in the URL request

2019-04-03 Thread greensoter
Thanks for replying, but I received error message return after encode with UTF-8. java.lang.IllegalArgumentException: Invalid character found in the request target. The valid characters are defined in RFC 7230 and RFC 3986 at

[codenameone-discussions] Re: About the Chinese characters in the URL request

2019-04-06 Thread greensoter
I did use the method which you gave, but receive the error. And the solution which given by Shai is working. The problem is solved by using "String utf8nickName = Util.encodeUrl( nickName);". Thanks! On Friday, April 5, 2019 at 5:46:21 AM UTC+2, Shai Almog wrote: > > Did you use the methods

[codenameone-discussions] Trying to use third party lib (PubNub) to handle messaging

2019-04-06 Thread greensoter
It seems that CodenameOne doesn't support the third party lib, can anyone give advice for this? 39: error: package com.pubnub.api does not exist [javac] import com.pubnub.api.PNConfiguration; 40: error: package com.pubnub.api does not exist [javac] import com.pubnub.api.PubNub;

[codenameone-discussions] Re: Trying to use third party lib (PubNub) to handle messaging

2019-04-11 Thread greensoter
Hi Shai, I am making a chat app, with PubNub latest library is working perfectly, the lib version is : pubnub-gson-4.22.0-beta-all.jar , it is very simple to connect to PubNub server to publish and subscribe message. So my question here is, can I directly generate cn1lib for that PubNub

Re: [codenameone-discussions] Re: Trying to use third party lib (PubNub) to handle messaging

2019-04-11 Thread greensoter
Thanks! It works for me now. On Thursday, April 11, 2019 at 4:53:37 AM UTC+2, shannah wrote: > > There is also a WebSocket sample in the SampleRunner > https://github.com/codenameone/CodenameOne/tree/master/Samples > > The sample (a chat app), should run out of the box. Just download the CN1 >

[codenameone-discussions] Re: play notification sound

2019-04-15 Thread greensoter
Solved, used LocalNotification On Monday, April 15, 2019 at 4:21:40 AM UTC+2, Shai Almog wrote: > > In which OS+version? > Which API do you use to play the sound and how? > -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To

[codenameone-discussions] play notification sound

2019-04-14 Thread greensoter
For my app, the notification sound is working perfectly now, but when the screen is locked to black then doesn't work, the cell phone is not powered off yet. -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this

[codenameone-discussions] Re: Trying to use third party lib (PubNub) to handle messaging

2019-04-10 Thread greensoter
Where can I get the Websockets document and sample code? Then I can implement in my app as well, thanks! On Wednesday, April 10, 2019 at 6:36:58 AM UTC+2, Shai Almog wrote: > > Hi, > I think pubnub cut support for older libraries they implemented. I haven't > paid much attention since

[codenameone-discussions] Re: Trying to use third party lib (PubNub) to handle messaging

2019-04-09 Thread greensoter
Hi Shai, I used below code to receive the message, but it didn't come. Do I need to execute this subscribe somewhere like original PubNub needs to execute after subscribe. public void subMessage() { Pubnub pubnub = new Pubnub(publishKey, subscribeKey); try

Re: [codenameone-discussions] About SSL certificate

2019-04-25 Thread greensoter
I am using: openjdk version "1.8.0_191" OpenJDK Runtime Environment (build 1.8.0_191-8u191-b12-2ubuntu0.16.04.1-b12) OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode) On Wednesday, April 24, 2019 at 1:48:52 PM UTC+2, Steve Hannah wrote: > > Which JDK are you using? Some older (even early

Re: [codenameone-discussions] About SSL certificate

2019-04-25 Thread greensoter
openjdk version "11.0.1" 2018-10-16 OpenJDK Runtime Environment 18.9 (build 11.0.1+13) OpenJDK 64-Bit Server VM 18.9 (build 11.0.1+13, mixed mode) On Wednesday, April 24, 2019 at 1:48:52 PM UTC+2, Steve Hannah wrote: > > Which JDK are you using? Some older (even early 1.8.x) versions don't >

[codenameone-discussions] Re: Trying to use third party lib (PubNub) to handle messaging

2019-04-11 Thread greensoter
Hi Shai, I changed to Websocket, and it works perfectly for me now. Thanks! On Thursday, April 11, 2019 at 4:14:53 AM UTC+2, Shai Almog wrote: > > Here: https://github.com/shannah/cn1-websockets/ > -- You received this message because you are subscribed to the Google Groups "CodenameOne

[codenameone-discussions] About SSL certificate

2019-04-24 Thread greensoter
Setup tomcat with SSL certificate, via the browser Fireforx and Safari both working perfect, but in the App doesn't work with error below: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed:

Re: [codenameone-discussions] About SSL certificate

2019-04-26 Thread greensoter
issued by: Let's Encrypt Authority X3 www.sslforfree.com On Friday, April 26, 2019 at 6:33:29 AM UTC+2, Shai Almog wrote: > > Which certificate authority signed your certificate? > It's not a self signed certificate by any chance right? If it is this > obviously won't work anywhere... > -- You