[codenameone-discussions] is there a longpress event for button click
in the button click action , event.islognpress() always returns true. is the button.longress functionality supported? -- 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/5e302172-cf2c-472a-bec1-ee2e87df09b2%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [codenameone-discussions] Re: USB Serial Communication
Hello Shai, Thank you so much for your help. I was finally able to make it work. Now I have an app developed with Codename1 communicating with other devices, such as Arduino, through USB with serial communication. If you think it's interesting I can prepare a sample so it can be shared with other CN1 users. Just let me know the procedures. Best regards, David Em quarta-feira, 25 de janeiro de 2017 03:10:25 UTC-2, Shai Almog escreveu: > > Hi, > Use: > import com.codename1.impl.android.AndroidNativeUtil; > > Then use: > AndroidNativeUtil.getActivity().getApplicationContext() > > > -- 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/89dbdae2-a3f0-42a1-81ca-a94c03076f98%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [codenameone-discussions] Re: USB Serial Communication
Hi, I'm sure that would be interesting to some developers. If you can convert it to a cn1lib I can walk you thru the steps of doing that and submitting it to our extensions UI via a pull request: http://github.com/codenameone/CodenameOneLibs/ -- 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/fe74da35-cb8a-47c0-9bd6-adfbc09df5aa%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[codenameone-discussions] Re: is there a longpress event for button click
Hi override longPointerPress of Button as shown in below Button longPressedButton = new Button(){ @Override public void longPointerPress(int x, int y) { //super.longPointerPress(x, y); //To change body of generated methods, choose Tools | Templates. System.out.println(" long pointer pressed"); } }; On Wednesday, January 25, 2017 at 7:58:19 PM UTC+5:45, CODENAME1 wrote: > > in the button click action , event.islognpress() always returns true. > is the button.longress functionality supported? > -- 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/aba49ede-d88a-44b2-87f4-83358a84b243%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.