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

2016-05-25 Thread pejo0100
Ok I have fixed the override and now it's working, thanks! Here is the code if anyone else is looking for the same solution. // Added this to the statemachine class @Override protected void setBackCommand(Form f, Command backCommand) {// added this override 20160526 to fix bug in navig

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

2016-05-25 Thread Shai Almog
Sqlite is REALLY unportable. We use the native implementation which is the epitome of device fragmentation... Just googling "PRAGMA FOREIGN_KEYS ios" indicated that foreign keys is problematic on Android and on iOS it seems to only work when executed outside of a transaction. Ideally we'd just

[codenameone-discussions] Re: LikeButton

2016-05-25 Thread Shai Almog
A like button will only work if you are authenticated to Facebook. Did you go thru the FacebookConnect authentication? -- 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,

[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 fr

[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] Re: Display another dialog when closing one

2016-05-25 Thread Shai Almog
Don't open a dialog from a thread that isn't the EDT. If you show the next dialog before disposing the previous dialog then the previous form for the next dialog is the first dialog... So when you dispose the next dialog it "goes back" to the previous form... -- You received this message becaus

[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" g

[codenameone-discussions] Re: Singular problem in ConnectionRequest object

2016-05-25 Thread Shai Almog
Hi, is this happening on the simulator or only on the device? You can reproduce a background behavior by using the suspend/resume functionality of the simulator and also track the incoming/outgoing network calls vial the network monitor tool. -- You received this message because you are subscri

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

2016-05-25 Thread Shai Almog
Did you override the setBackCommand method? -- 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. Visi

Re: [codenameone-discussions] Re: Google Maps in WebWiew - problems

2016-05-25 Thread ruben_vg via CodenameOne Discussions
Hi, Sorry for my English 1. How to get the position (latitude and longitude) of a map in a WebBrowser component when pressed click? 2. As I take the list of all locations that has google maps to load in a autocomplete component? On Tuesday, May 24, 2016 at 2:23:13 PM UTC-5, Steve Hannah wrote:

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

2016-05-25 Thread Jérémy MARQUER
I see it on SqliteBrowser (Windows). And I test delete cascade on simulator and iOS. On Wednesday, May 25, 2016 at 5:44:10 PM UTC+2, Steve Hannah wrote: > > What device are you seeing this on? > > On Wed, May 25, 2016 at 12:04 AM, Jérémy MARQUER > wrote: > >> Yes. I forgot here the "S" at the

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

2016-05-25 Thread Steve Hannah
What device are you seeing this on? On Wed, May 25, 2016 at 12:04 AM, Jérémy MARQUER wrote: > 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)

[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 h

[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, Gare

[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 Goog

[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 i

[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: 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] 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 h

[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 messag

[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, 2016

[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 can

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

2016-05-25 Thread Jérémy MARQUER
Thanks for both your responses. Sure I know I can save null values with custom queries. In fact, my code is already adapted to invoke framework's method (eg : update/save/find), so I don't use custom query (and prefer don't use it). When I initialize my database, Integer/Long column contains NU

[codenameone-discussions] Singular problem in ConnectionRequest object

2016-05-25 Thread dario . licci
Hi, I have e singular problem in ConnectionRequest: The follow code send a login request to server and work fine, but once authenticated if I stop and run the application another time, in the next login request allow me to access and return the correct json even if I wrong the password. It's v

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, Jéré