parse.com - Change Parse Application when App is running -
i have android application works locals instalations , want use diferents parse applications. each instalation administrator contract parse directly. when app start keys parse.
i wonder how change parse app linkeded in android app once running
i have tried call parse.initialize (context, apllicationid, clientkey) twice doesn't work. have tried app register in diferent parse app every time start app link different parse app
it´s linked first application
public void oncreate(final bundle icicle){ super.oncreate(icicle); final context context = this; setcontentview(r.layout.ssa); getactionbar().hide(); // getting global variables fmglobalsbean = utilities.getglobals(this); if(!"".equals(fmglobalsbean.geturl_server())){ parse.initialize(contexto, "p4iwktrc0wtdkkmh6r60hjyzwx1tixchy8vcdvpb", "khkcx4g3dqvprawhyiyfnhawqj1h2vyhwd3winlq"); parseinstallation.getcurrentinstallation().saveinbackground(); parsepush.subscribeinbackground(fmglobalsbean.geturl_server()); } else { parse.initialize(this, "y3xgz58u4qcn9trovfqcoe4pbzhurjxooz3vdkgb", "ealo3nm4wa4lbj7krsr2osf60dziujeujdujtqzs"); parseinstallation.getcurrentinstallation().saveinbackground(); parsepush.subscribeinbackground("initial"); } }
Comments
Post a Comment