Perhaps in your app’s init method.

On Thu, Dec 14, 2017 at 12:34 PM Mario Barón <[email protected]> wrote:

> Hey guys,
>
> I'm working with the parse4cn1 lib, and looking throuh the library's
> documentation. I was wondering, since Sidiabale made his test app using the
> old Gui Builder, he had to initialize the parse sdk within the initvars
> method of the Statemachine, like this:
>
> /**
>      * this method should be used to initialize variables instead of
>      * the constructor/class scope to avoid race conditions
>      */
>     protected void initVars(Resources res) {
>         Parse.initialize("https://parseapi.back4app.com";,
> "OiTzm1ivZovdmMktQnqk8ajqBVIPgl4dlgUxw4dh",
>                 "fHquv9DA0SA5pd7VPO38tNzOrzrgTgfd7yY3nXbo");
>         ParsePush.setPushCallback(this);
>     }
>  What would be the optimal place to put this lines of code when using the
> new GUI Builder, since the main Class doesn't contain?
>
>
> I greatly appreciate your answer.
>
> --
> 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/ae96e7bd-3d19-423f-bf78-36e9965cb384%40googlegroups.com
> <https://groups.google.com/d/msgid/codenameone-discussions/ae96e7bd-3d19-423f-bf78-36e9965cb384%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
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/CAGOYrKVcJzpoALJVg_pnaaMB-iJXjZ8zz9-XNF7vUtUeOLigbQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to