[codenameone-discussions] Re: Native interfaces in Intellij

2021-06-12 Thread Shai Almog
The plugin is only applicable to Ant projects not to maven projects. For maven Generate Native Interfaces is one of the run configurations. On Sunday, June 13, 2021 at 12:01:09 AM UTC+3 a2nd...@gmail.com wrote: > I'm trying to create a native interface to access android's >

[codenameone-discussions] Re: Problems using PUT method with Restful api

2021-06-12 Thread Shai Almog
Hi, PUT defaults to sending parameters as POST within the Rest API. I'll add a way to override that behavior with a postParameters(false) method. This will be there next week. A potential workaround might be to use a "hack" like this: Response r = Rest.put(SERVER_URL +

[codenameone-discussions] Native interfaces in Intellij

2021-06-12 Thread Dennis Rogers
I'm trying to create a native interface to access android's SpeechRecognitionHelper. Following the manual I created andinterface that extends NativeInterface i.e. import com.codename1.system.NativeInterface; public interface MyNative extends NativeInterface { String getSpeech(String hi); }

[codenameone-discussions] Problems using PUT method with Restful api

2021-06-12 Thread rdvg...@gmail.com
Hi, I am trying to update a record by sending parameters to a Webservice. When I run it it returns the code 400 (Bad Request). The method used is the following: public static Response aceptarCarga(Long cargaId, Long fecha) { Response r = Rest.put(SERVER_URL +