I more or less meant porting over the StateMachine code in the parse4cn1 
test app to the regular Main class (/src/com/mycompany/myapp) created by 
the new GUI builder. I guess it was fairly straightforward, I just 
implemented IPushCallback in my main instead of in the StateMachine. 

On a side note, is it possible to use the StateMachine class in a new 
project with only new GUI builder forms? It seems like the StateMachine is 
for the older version and it would get too complicated mixing the two, if 
it's even possible. 

I'm wondering because the StateMachineBase (SMB) has methods like 
beforeMain, postMain, etc. Can I do all my activity lifecycle calls in the 
regular Main class created with the new GUI builder such as start(), 
stop(), destroy() or does the SMB somehow add more functionality? So far, I 
haven't touched the StateMachine, because I thought it was for the old 
version, and I don't think I've needed a reason to, until now with using 
the parse4cn1 lib. So I've just been trying to figure out the correct way 
to port/refactor it into my existing app, which uses all new GUI builder 
forms.

On Tuesday, May 2, 2017 at 9:51:47 PM UTC-7, Shai Almog wrote:
>
> There is no such dependency in parse4cn1 and even if there were the old 
> GUI builder didn't add dependencies.
>

-- 
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 [email protected].
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/1556edb4-6178-4c12-a407-34c76edb69b6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to