[codenameone-discussions] Re: LikeButton

2016-05-25 Thread Gareth Murfin
Went through added website platform and a url and then app domains accepted the domain but what domain do I use? I was just entering the website address for the app but that doesnt seem to do it. The error in simulator is now " The domain of this URL isn't included in the app's domains. To be

[codenameone-discussions] Re: LikeButton

2016-05-25 Thread Gareth Murfin
I installed the fb app and it reacted (should work without though surely?) but then it said "cant load url : the domain of this url isnt included in the apps domains. to be able to load this url add al l domands and subdomains of your app to the app domains field in your app settings" My App

[codenameone-discussions] Re: LikeButton

2016-05-25 Thread Gareth Murfin
So I think I added it all correctly unfortunately I just see the spinning icon thing, and it goes no where. Im thinking it might be best to embed a like button using a webview and this https://developers.facebook.com/docs/plugins/like-button On Wednesday, May 25, 2016 at 10:34:05 PM UTC+8,

[codenameone-discussions] Re: Toolbar and back command issues

2016-05-25 Thread pejo0100
Ok great! I'll wait for that fix then. I noticed that the android hardware back-button does'n work with the solution that I tried. On Wednesday, May 25, 2016 at 7:01:47 AM UTC+2, Shai Almog wrote: > > There is a regression there which we've fixed already. It will be in this > Friday

[codenameone-discussions] Re: Deal with null value in sqlite database

2016-05-25 Thread Shai Almog
What I was trying to say is this: Use your number code as before without a problem. However, when you need to check if a value is null use the getString() method to check that special case. -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions"

Re: [codenameone-discussions] Why foreign key support is not enable (SQLite) ?

2016-05-25 Thread Jérémy MARQUER
Yes. I forgot here the "S" at the end of "KEY" ... (but same problem) On Tuesday, May 24, 2016 at 10:02:06 PM UTC+2, Steve Hannah wrote: > > Do you mean "PRAGMA FOREIGN_KEYS" ? (Not FOREIGN_KEY) > https://www.sqlite.org/pragma.html#pragma_foreign_keys > > > > On Tue, May 24, 2016 at 6:33 AM,

[codenameone-discussions] Re: How to set up and connect to sql database backend for my app & how to bill app users

2016-05-25 Thread Shai Almog
I suggest posting a new question with a more detailed explanation of what it is you are trying to do and where you are stuck. -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails

[codenameone-discussions] Re: Class.forName and class.getConstructor

2016-05-25 Thread Shai Almog
Correct. The main problem is that even on devices like Android we obfuscate the binaries as Google explicitly recommends so the class names will be garbled. Since iOS doesn't allow dynamic code download there will be no class that is "unknown" on build time and thus there is no reason for class

[codenameone-discussions] Class.forName and class.getConstructor

2016-05-25 Thread dario . licci
Hi, I espone two question: - why Class.forName has been deprecated? Class cls = Class.forName(classname); - and why getConstructor has been removed? AppController controller = (AppController) cls.getConstructor(RoutingContext .class, Logger.class).newInstance(context, logger); How I

[codenameone-discussions] Re: Class.forName and class.getConstructor

2016-05-25 Thread Jérémy MARQUER
1) I believe Class.forName(String name) is deprecated because classes names are rename on differents way according to the platform. 2) It require Java reflection which is not supported by CN1. 3) I think you could use "Class.newInstance()" method (not sure about that) On Wednesday, May 25,

[codenameone-discussions] Re: Display another dialog when closing one

2016-05-25 Thread Gareth Murfin
Going crazy here, for some reason any time I try to show a new dialog the old one opens, even when I put it on a different screen and thread etc, whats happening to cause this, its weird cause its never happened before. On Wednesday, May 25, 2016 at 7:52:28 PM UTC+8, Gareth Murfin wrote: > > I

[codenameone-discussions] Display another dialog when closing one

2016-05-25 Thread Gareth Murfin
I have a dialog with an OK button, when I hit that I dispose of the dialog, and show the next dialog. Strangely the same dialog comes up, I have tried uitimers etc and everything I can think of but I cannot get around this. How do I make the correct dialog come up ? -- You received this

[codenameone-discussions] Re: Class.forName and class.getConstructor

2016-05-25 Thread dario . licci
thank you very much jeremy On Wednesday, 25 May 2016 13:36:10 UTC+2, Jérémy MARQUER wrote: > > 1) I believe Class.forName(String name) is deprecated because classes > names are rename on differents way according to the platform. > > 2) It require Java reflection which is not supported by CN1. >

[codenameone-discussions] LikeButton

2016-05-25 Thread Gareth Murfin
On Android when I hit a like button I see a circular thing spinning but it never does anything after that. On the simulator it seemed to work. Any ideas why it may not work on device? -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group.

[codenameone-discussions] Re: How to set up and connect to sql database backend for my app & how to bill app users

2016-05-25 Thread st . deemene
am new to codenameone and i want to register users into the database and also allow for login to their profile page, 1.database configuration and connection (netbeans and SQLyog) writing to database and reading from database -- You received this message because you are subscribed to the

[codenameone-discussions] Re: LikeButton

2016-05-25 Thread Gareth Murfin
Also how do I specify a page? only seems to let me specify a post? Any tutorials on this.. or is it just out of date now and slightly broken? Is it actually proven to still work. On simulator it just says i need to login buttheres no way to, on device it just keeps spinning. There isnt much I